# ion-checkbox

URL: https://ionicframework.com/docs/api/checkbox

**Encapsulation**: [shadow](/docs/reference/glossary.md#shadow)

Checkboxes allow the selection of multiple options from a set of options. They appear as checked (ticked) when activated. Clicking on a checkbox will toggle the `checked` property. They can also be checked programmatically by setting the `checked` property.

## Basic Usage

**JavaScript**

```html
<ion-checkbox>I agree to the terms and conditions</ion-checkbox>
```

**Angular**

`src/app/example.component.html`

```html
<ion-checkbox>I agree to the terms and conditions</ion-checkbox>
```

`src/app/example.component.ts`

```ts
import { Component } from '@angular/core';
import { IonCheckbox } from '@ionic/angular';

@Component({
  selector: 'app-example',
  templateUrl: 'example.component.html',
  styleUrls: ['example.component.css'],
  imports: [IonCheckbox],
})
export class ExampleComponent {}
```

**React**

```tsx
import React from 'react';
import { IonCheckbox } from '@ionic/react';

function Example() {
  return <IonCheckbox>I agree to the terms and conditions</IonCheckbox>;
}
export default Example;
```

**Vue**

```vue
<template>
  <ion-checkbox>I agree to the terms and conditions</ion-checkbox>
</template>

<script setup lang="ts">
import { IonCheckbox } from '@ionic/vue';
</script>
```

## Label Placement

Developers can use the `labelPlacement` property to control how the label is placed relative to the control. This property mirrors the flexbox `flex-direction` property.

**JavaScript**

```html
<ion-checkbox label-placement="start">Label at the Start</ion-checkbox>

<br />

<ion-checkbox label-placement="end">Label at the End</ion-checkbox>

<br />

<ion-checkbox label-placement="fixed">Fixed Width Label</ion-checkbox>

<br />

<ion-checkbox label-placement="stacked">Stacked Label</ion-checkbox>
```

**Angular**

`src/app/example.component.html`

```html
<ion-checkbox labelPlacement="start">Label at the Start</ion-checkbox>

<br />

<ion-checkbox labelPlacement="end">Label at the End</ion-checkbox>

<br />

<ion-checkbox labelPlacement="fixed">Fixed Width Label</ion-checkbox>

<br />

<ion-checkbox labelPlacement="stacked">Stacked Label</ion-checkbox>
```

`src/app/example.component.ts`

```ts
import { Component } from '@angular/core';
import { IonCheckbox } from '@ionic/angular';

@Component({
  selector: 'app-example',
  templateUrl: 'example.component.html',
  styleUrls: ['example.component.css'],
  imports: [IonCheckbox],
})
export class ExampleComponent {}
```

**React**

```tsx
import React from 'react';
import { IonCheckbox } from '@ionic/react';

function Example() {
  return (
    <>
      <IonCheckbox labelPlacement="start">Label at the Start</IonCheckbox>

      <br />

      <IonCheckbox labelPlacement="end">Label at the End</IonCheckbox>

      <br />

      <IonCheckbox labelPlacement="fixed">Fixed Width Label</IonCheckbox>

      <br />

      <IonCheckbox labelPlacement="stacked">Stacked Label</IonCheckbox>
    </>
  );
}
export default Example;
```

**Vue**

```vue
<template>
  <ion-checkbox label-placement="start">Label at the Start</ion-checkbox>

  <br />

  <ion-checkbox label-placement="end">Label at the End</ion-checkbox>

  <br />

  <ion-checkbox label-placement="fixed">Fixed Width Label</ion-checkbox>

  <br />

  <ion-checkbox label-placement="stacked">Stacked Label</ion-checkbox>
</template>

<script setup lang="ts">
import { IonCheckbox } from '@ionic/vue';
</script>
```

## Alignment

Developers can use the `alignment` property to control how the label and control are aligned on the cross axis. This property mirrors the flexbox `align-items` property.

**Note**

Stacked checkboxes can be aligned using the `alignment` property. This can be useful when the label and control need to be centered horizontally.

**JavaScript**

```html
<ion-list>
  <ion-item>
    <ion-checkbox label-placement="stacked" alignment="start">Aligned to the Start</ion-checkbox>
  </ion-item>

  <ion-item>
    <ion-checkbox label-placement="stacked" alignment="center">Aligned to the Center</ion-checkbox>
  </ion-item>
</ion-list>
```

**Angular**

`src/app/example.component.html`

```html
<ion-list>
  <ion-item>
    <ion-checkbox label-placement="stacked" alignment="start">Aligned to the Start</ion-checkbox>
  </ion-item>

  <ion-item>
    <ion-checkbox label-placement="stacked" alignment="center">Aligned to the Center</ion-checkbox>
  </ion-item>
</ion-list>
```

`src/app/example.component.ts`

```ts
import { Component } from '@angular/core';
import { IonCheckbox, IonItem, IonList } from '@ionic/angular';

@Component({
  selector: 'app-example',
  templateUrl: 'example.component.html',
  styleUrls: ['example.component.css'],
  imports: [IonCheckbox, IonItem, IonList],
})
export class ExampleComponent {}
```

**React**

```tsx
import React from 'react';
import { IonCheckbox, IonItem, IonList } from '@ionic/react';

function Example() {
  return (
    <>
      <IonList>
        <IonItem>
          <IonCheckbox labelPlacement="stacked" alignment="start">
            Aligned to the Start
          </IonCheckbox>
        </IonItem>

        <IonItem>
          <IonCheckbox labelPlacement="stacked" alignment="center">
            Aligned to the Center
          </IonCheckbox>
        </IonItem>
      </IonList>
    </>
  );
}
export default Example;
```

**Vue**

```vue
<template>
  <ion-list>
    <ion-item>
      <ion-checkbox label-placement="stacked" alignment="start">Aligned to the Start</ion-checkbox>
    </ion-item>

    <ion-item>
      <ion-checkbox label-placement="stacked" alignment="center">Aligned to the Center</ion-checkbox>
    </ion-item>
  </ion-list>
</template>

<script setup lang="ts">
import { IonCheckbox } from '@ionic/vue';
</script>
```

## Justification

Developers can use the `justify` property to control how the label and control are packed on a line. This property mirrors the flexbox `justify-content` property.

**JavaScript**

```html
<ion-list>
  <ion-item>
    <ion-checkbox justify="start">Packed at the Start of Line</ion-checkbox>
  </ion-item>

  <ion-item>
    <ion-checkbox justify="end">Packed at the End of Line</ion-checkbox>
  </ion-item>

  <ion-item>
    <ion-checkbox justify="space-between">Space Between Label and Control</ion-checkbox>
  </ion-item>
</ion-list>
```

**Angular**

`src/app/example.component.html`

```html
<ion-list>
  <ion-item>
    <ion-checkbox justify="start">Packed at the Start of Line</ion-checkbox>
  </ion-item>

  <ion-item>
    <ion-checkbox justify="end">Packed at the End of Line</ion-checkbox>
  </ion-item>

  <ion-item>
    <ion-checkbox justify="space-between">Space Between Label and Control</ion-checkbox>
  </ion-item>
</ion-list>
```

`src/app/example.component.ts`

```ts
import { Component } from '@angular/core';
import { IonCheckbox, IonItem, IonList } from '@ionic/angular';

@Component({
  selector: 'app-example',
  templateUrl: 'example.component.html',
  styleUrls: ['example.component.css'],
  imports: [IonCheckbox, IonItem, IonList],
})
export class ExampleComponent {}
```

**React**

```tsx
import React from 'react';
import { IonCheckbox, IonItem, IonList } from '@ionic/react';

function Example() {
  return (
    <IonList>
      <IonItem>
        <IonCheckbox justify="start">Packed at the Start of Line</IonCheckbox>
      </IonItem>

      <IonItem>
        <IonCheckbox justify="end">Packed at the End of Line</IonCheckbox>
      </IonItem>

      <IonItem>
        <IonCheckbox justify="space-between">Space Between Label and Control</IonCheckbox>
      </IonItem>
    </IonList>
  );
}
export default Example;
```

**Vue**

```vue
<template>
  <ion-list>
    <ion-item>
      <ion-checkbox justify="start">Packed at the Start of Line</ion-checkbox>
    </ion-item>

    <ion-item>
      <ion-checkbox justify="end">Packed at the End of Line</ion-checkbox>
    </ion-item>

    <ion-item>
      <ion-checkbox justify="space-between">Space Between Label and Control</ion-checkbox>
    </ion-item>
  </ion-list>
</template>

<script setup lang="ts">
import { IonCheckbox, IonItem, IonList } from '@ionic/vue';
</script>
```

**Note**

`ion-item` is only used in the demos to emphasize how `justify` works. It is not needed in order for `justify` to function correctly.

## Indeterminate Checkboxes

**JavaScript**

```html
<ion-checkbox indeterminate="true">Indeterminate checkbox</ion-checkbox>
```

**Angular**

`src/app/example.component.html`

```html
<ion-checkbox [indeterminate]="true">Indeterminate checkbox</ion-checkbox>
```

`src/app/example.component.ts`

```ts
import { Component } from '@angular/core';
import { IonCheckbox } from '@ionic/angular';

@Component({
  selector: 'app-example',
  templateUrl: 'example.component.html',
  styleUrls: ['example.component.css'],
  imports: [IonCheckbox],
})
export class ExampleComponent {}
```

**React**

```tsx
import React from 'react';
import { IonCheckbox } from '@ionic/react';

function Example() {
  return <IonCheckbox indeterminate={true}>Indeterminate checkbox</IonCheckbox>;
}
export default Example;
```

**Vue**

```vue
<template>
  <ion-checkbox :indeterminate="true">Indeterminate checkbox</ion-checkbox>
</template>

<script setup lang="ts">
import { IonCheckbox } from '@ionic/vue';
</script>
```

## Links inside of Labels

Checkbox labels can sometimes be accompanied with links. These links can provide more information related to the checkbox. However, clicking the link should not check the checkbox. To achieve this, we can use [stopPropagation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation) to prevent the click event from bubbling. When using this approach, the rest of the label still remains clickable.

**JavaScript**

```html
<ion-checkbox>I agree to the <a href="#" onclick="event.stopPropagation()">terms and conditions</a></ion-checkbox>
```

**Angular**

`src/app/example.component.html`

```html
<ion-checkbox>I agree to the <a href="#" (click)="$event.stopPropagation()">terms and conditions</a></ion-checkbox>
```

`src/app/example.component.ts`

```ts
import { Component } from '@angular/core';
import { IonCheckbox } from '@ionic/angular';

@Component({
  selector: 'app-example',
  templateUrl: 'example.component.html',
  styleUrls: ['example.component.css'],
  imports: [IonCheckbox],
})
export class ExampleComponent {}
```

**React**

```tsx
import React, { useEffect, useRef } from 'react';
import { IonCheckbox } from '@ionic/react';

function Example() {
  const ref = useRef<HTMLAnchorElement>(null);

  /**
   * IonCheckbox will be listening for the native click event here so we need
   * to call stopPropagation when the native click event instead of when the
   * synthetic click event fires.
   */
  useEffect(() => {
    ref.current?.addEventListener('click', (event) => {
      event.stopPropagation();
    });
  }, [ref]);

  return (
    <IonCheckbox>
      I agree to the{' '}
      <a href="#" ref={ref}>
        terms and conditions
      </a>
    </IonCheckbox>
  );
}
export default Example;
```

**Vue**

```vue
<template>
  <ion-checkbox>I agree to the <a href="#" @click="$event.stopPropagation()">terms and conditions</a></ion-checkbox>
</template>

<script setup lang="ts">
import { IonCheckbox } from '@ionic/vue';
</script>
```

## Helper & Error Text

Helper and error text can be used inside of a checkbox with the `helperText` and `errorText` property. The error text will not be displayed unless the `ion-invalid` and `ion-touched` classes are added to the `ion-checkbox`. This ensures errors are not shown before the user has a chance to enter data.

In Angular, this is done automatically through form validation. In JavaScript, React and Vue, the class needs to be manually added based on your own validation.

**JavaScript**

```html
<form id="my-form">
  <ion-checkbox helper-text="Agree to the terms before continuing" error-text="You must agree to the terms to continue">
    I agree to the terms and conditions
  </ion-checkbox>

  <br />

  <ion-button type="submit" size="small">Submit</ion-button>
</form>

<script>
  const form = document.getElementById('my-form');
  const agree = form.querySelector('ion-checkbox');

  form.addEventListener('submit', (event) => submit(event));
  agree.addEventListener('ionChange', (event) => validateCheckbox(event));

  const validateCheckbox = (event) => {
    agree.classList.add('ion-touched');

    if (!event.detail.checked) {
      agree.classList.add('ion-invalid');
      agree.classList.remove('ion-valid');
    } else {
      agree.classList.remove('ion-invalid');
      agree.classList.add('ion-valid');
    }
  };

  const submit = (event) => {
    event.preventDefault();

    validateCheckbox({ detail: { checked: agree.checked } });
  };
</script>
```

**Angular**

`src/app/example.component.html`

```html
<form [formGroup]="myForm" (ngSubmit)="onSubmit()">
  <ion-checkbox
    formControlName="agree"
    helperText="Agree to the terms before continuing"
    errorText="You must agree to the terms to continue"
  >
    I agree to the terms and conditions
  </ion-checkbox>

  <br />

  <ion-button type="submit" size="small">Submit</ion-button>
</form>
```

`src/app/example.component.ts`

```ts
import { Component } from '@angular/core';
import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
import { IonCheckbox, IonButton } from '@ionic/angular';

@Component({
  selector: 'app-example',
  imports: [IonCheckbox, IonButton, ReactiveFormsModule],
  templateUrl: './example.component.html',
  styleUrl: './example.component.css',
})
export class ExampleComponent {
  myForm: FormGroup;

  constructor(private fb: FormBuilder) {
    this.myForm = this.fb.group({
      agree: [false, Validators.requiredTrue],
    });
  }

  onSubmit() {
    // Mark the control as touched to trigger the error message.
    // This is needed if the user submits the form without interacting
    // with the checkbox.
    this.myForm.get('agree')!.markAsTouched();
  }
}
```

**React**

```tsx
import React, { useRef, useState } from 'react';
import { IonCheckbox, IonButton, CheckboxCustomEvent } from '@ionic/react';

function Example() {
  const [isTouched, setIsTouched] = useState<boolean>(false);
  const [isValid, setIsValid] = useState<boolean | undefined>();

  const agreeRef = useRef<HTMLIonCheckboxElement>(null);

  const validateCheckbox = (event: CheckboxCustomEvent<{ checked: boolean }>) => {
    setIsTouched(true);
    setIsValid(event.detail.checked);
  };

  const submit = (event: React.FormEvent<HTMLFormElement>) => {
    event.preventDefault();

    if (agreeRef.current) {
      validateCheckbox({ detail: { checked: agreeRef.current.checked } } as CheckboxCustomEvent<{
        checked: boolean;
      }>);
    }
  };

  return (
    <>
      <form onSubmit={submit}>
        <IonCheckbox
          ref={agreeRef}
          className={`${isValid ? 'ion-valid' : ''} ${isValid === false ? 'ion-invalid' : ''} ${
            isTouched ? 'ion-touched' : ''
          }`}
          helperText="Agree to the terms before continuing"
          errorText="You must agree to the terms to continue"
          onIonChange={(event) => validateCheckbox(event)}
        >
          I agree to the terms and conditions
        </IonCheckbox>

        <br />

        <IonButton type="submit" size="small">
          Submit
        </IonButton>
      </form>
    </>
  );
}

export default Example;
```

**Vue**

```vue
<template>
  <form @submit.prevent="submit">
    <ion-checkbox
      v-model="agree"
      helper-text="Agree to the terms before continuing"
      error-text="You must agree to the terms to continue"
      @ionChange="validateCheckbox"
      :class="{ 'ion-valid': isValid, 'ion-invalid': isValid === false, 'ion-touched': isTouched }"
    >
      I agree to the terms and conditions
    </ion-checkbox>

    <br />

    <ion-button type="submit" size="small">Submit</ion-button>
  </form>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { IonCheckbox, IonButton, CheckboxCustomEvent } from '@ionic/vue';

const agree = ref(false);
const isTouched = ref(false);
const isValid = ref<boolean | undefined>();

const validateCheckbox = (event: CheckboxCustomEvent<{ checked: boolean }>) => {
  isTouched.value = true;
  isValid.value = event.detail.checked;
};

const submit = () => {
  validateCheckbox({ detail: { checked: agree.value } } as CheckboxCustomEvent<{ checked: boolean }>);
};
</script>
```

## Theming

### CSS Custom Properties

**JavaScript**

```html
<ion-checkbox>Themed checkbox</ion-checkbox>

<style>
  ion-checkbox {
    --size: 32px;
    --checkbox-background-checked: #6815ec;
  }

  ion-checkbox::part(container) {
    border-radius: 6px;
    border: 2px solid #6815ec;
  }
</style>
```

**Angular**

`src/app/example.component.html`

```html
<ion-checkbox>Themed checkbox</ion-checkbox>
```

`src/app/example.component.css`

```css
ion-checkbox {
  --size: 32px;
  --checkbox-background-checked: #6815ec;
}

ion-checkbox::part(container) {
  border-radius: 6px;
  border: 2px solid #6815ec;
}
```

`src/app/example.component.ts`

```ts
import { Component } from '@angular/core';
import { IonCheckbox } from '@ionic/angular';

@Component({
  selector: 'app-example',
  templateUrl: 'example.component.html',
  styleUrls: ['example.component.css'],
  imports: [IonCheckbox],
})
export class ExampleComponent {}
```

**React**

`src/main.tsx`

```tsx
import React from 'react';
import { IonCheckbox } from '@ionic/react';

import './main.css';

function Example() {
  return <IonCheckbox>Themed checkbox</IonCheckbox>;
}
export default Example;
```

`src/main.css`

```css
ion-checkbox {
  --size: 32px;
  --checkbox-background-checked: #6815ec;
}

ion-checkbox::part(container) {
  border-radius: 6px;
  border: 2px solid #6815ec;
}
```

**Vue**

```vue
<template>
  <ion-checkbox>Themed checkbox</ion-checkbox>
</template>

<script setup lang="ts">
import { IonCheckbox } from '@ionic/vue';
</script>

<style>
ion-checkbox {
  --size: 32px;
  --checkbox-background-checked: #6815ec;
}

ion-checkbox::part(container) {
  border-radius: 6px;
  border: 2px solid #6815ec;
}
</style>
```

## Interfaces

### CheckboxChangeEventDetail

```typescript
interface CheckboxChangeEventDetail<T = any> {
  value: T;
  checked: boolean;
}
```

### CheckboxCustomEvent

While not required, this interface can be used in place of the `CustomEvent` interface for stronger typing with Ionic events emitted from this component.

```typescript
interface CheckboxCustomEvent<T = any> extends CustomEvent {
  detail: CheckboxChangeEventDetail<T>;
  target: HTMLIonCheckboxElement;
}
```

## Properties

### alignment

**Description**: How to control the alignment of the checkbox and label on the cross axis. `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL. Setting this property will change the checkbox `display` to `block`.

**Attribute**: `alignment`

**Type**: `"center" | "start" | undefined`

**Default**: `undefined`

### checked

**Description**: If `true`, the checkbox is selected.

**Attribute**: `checked`

**Type**: `boolean`

**Default**: `false`

### color

**Description**: The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics.md).

**Attribute**: `color`

**Type**: `"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string | undefined`

**Default**: `undefined`

### disabled

**Description**: If `true`, the user cannot interact with the checkbox.

**Attribute**: `disabled`

**Type**: `boolean`

**Default**: `false`

### errorText

**Description**: Text that is placed under the checkbox label and displayed when an error is detected.

**Attribute**: `error-text`

**Type**: `string | undefined`

**Default**: `undefined`

### helperText

**Description**: Text that is placed under the checkbox label and displayed when no error is detected.

**Attribute**: `helper-text`

**Type**: `string | undefined`

**Default**: `undefined`

### indeterminate

**Description**: If `true`, the checkbox will visually appear as indeterminate.

**Attribute**: `indeterminate`

**Type**: `boolean`

**Default**: `false`

### justify

**Description**: How to pack the label and checkbox within a line. `"start"`: The label and checkbox will appear on the left in LTR and on the right in RTL. `"end"`: The label and checkbox will appear on the right in LTR and on the left in RTL. `"space-between"`: The label and checkbox will appear on opposite ends of the line with space between the two elements. Setting this property will change the checkbox `display` to `block`.

**Attribute**: `justify`

**Type**: `"end" | "space-between" | "start" | undefined`

**Default**: `undefined`

### labelPlacement

**Description**: Where to place the label relative to the checkbox. `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL. `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the checkbox regardless of the direction. The alignment of the label can be controlled with the `alignment` property.

**Attribute**: `label-placement`

**Type**: `"end" | "fixed" | "stacked" | "start"`

**Default**: `'start'`

### mode

**Description**: The mode determines which platform styles to use. This is a [virtual property](/docs/core-concepts/fundamentals.md#virtual-properties) that is set once during initialization and will not update if you change its value after the initial render.

**Attribute**: `mode`

**Type**: `"ios" | "md"`

**Default**: `undefined`

### name

**Description**: The name of the control, which is submitted with the form data.

**Attribute**: `name`

**Type**: `string`

**Default**: `this.inputId`

### required

**Description**: If true, screen readers will announce it as a required field. This property works only for accessibility purposes, it will not prevent the form from submitting if the value is invalid.

**Attribute**: `required`

**Type**: `boolean`

**Default**: `false`

### value

**Description**: The value of the checkbox does not mean if it's checked or not, use the `checked` property for that. The value of a checkbox is analogous to the value of an `<input type="checkbox">`, it's only used when the checkbox participates in a native `<form>`.

**Attribute**: `value`

**Type**: `any`

**Default**: `'on'`

## Events

| Name | Description | Bubbles |
| --- | --- | --- |
| `ionBlur` | Emitted when the checkbox loses focus. | `true` |
| `ionChange` | Emitted when the checked property has changed as a result of a user action such as a click. This event will not emit when programmatically setting the `checked` property. | `true` |
| `ionFocus` | Emitted when the checkbox has focus. | `true` |

## Methods

No public methods available for this component.

## CSS Shadow Parts

| Name | Description |
| --- | --- |
| `container` | The container for the checkbox mark. |
| `error-text` | Supporting text displayed beneath the checkbox label when the checkbox is invalid and touched. |
| `helper-text` | Supporting text displayed beneath the checkbox label when the checkbox is valid. |
| `label` | The label text describing the checkbox. |
| `mark` | The checkmark used to indicate the checked state. |
| `supporting-text` | Supporting text displayed beneath the checkbox label. |

## CSS Custom Properties

**iOS**

| Name | Description |
| --- | --- |
| `--border-color` | Border color of the checkbox icon |
| `--border-color-checked` | Border color of the checkbox icon when checked |
| `--border-radius` | Border radius of the checkbox icon |
| `--border-style` | Border style of the checkbox icon |
| `--border-width` | Border width of the checkbox icon |
| `--checkbox-background` | Background of the checkbox icon |
| `--checkbox-background-checked` | Background of the checkbox icon when checked |
| `--checkmark-color` | Color of the checkbox checkmark when checked |
| `--checkmark-width` | Stroke width of the checkbox checkmark |
| `--size` | Size of the checkbox icon |
| `--transition` | Transition of the checkbox icon |

**MD**

| Name | Description |
| --- | --- |
| `--border-color` | Border color of the checkbox icon |
| `--border-color-checked` | Border color of the checkbox icon when checked |
| `--border-radius` | Border radius of the checkbox icon |
| `--border-style` | Border style of the checkbox icon |
| `--border-width` | Border width of the checkbox icon |
| `--checkbox-background` | Background of the checkbox icon |
| `--checkbox-background-checked` | Background of the checkbox icon when checked |
| `--checkmark-color` | Color of the checkbox checkmark when checked |
| `--checkmark-width` | Stroke width of the checkbox checkmark |
| `--size` | Size of the checkbox icon |
| `--transition` | Transition of the checkbox icon |

## Slots

| Name | Description |
| --- | --- |
|  | The label text to associate with the checkbox. Use the "labelPlacement" property to control where the label is placed relative to the checkbox. |
