CheckList is implemented based on List, which is a list that could be checked, also supports two kinds of modes (default and card).
<CheckList defaultValue={["A"]}>
<CheckList.Item value="A">Item A</CheckList.Item>
<CheckList.Item value="B">Item B</CheckList.Item>
</CheckList><CheckList defaultValue={["A"]}>
<CheckList.Item value="A">Item A</CheckList.Item>
<CheckList.Item value="B">Item B</CheckList.Item>
</CheckList>
Basic usage of CheckList component.
| Properties | Description | Type | Default |
|---|---|---|---|
| value | The selected items | string[] | [] |
| defaultValue | The default items | string[] | [] |
| onChange | Triggered when the option changes | (value: string[]) => void | - |
| multiple | Whether to allow multiple selection or not | boolean | false |
| activeIcon | The icon displayed when selected | ReactNode | <Icon type="check" /> |
| readOnly | Is the check list item readonly | boolean | false |
| disabled | Is the check list disabled | boolean | false |
| Properties | Description | Type | Default |
|---|---|---|---|
| value | The option value | string | - |
| readOnly | Is the check list item readonly | boolean | false |
| disabled | Is the check list item disabled | boolean | false |