ListItemCheckbox
Install
yarn add @ntds/list
Import
import { ListItemCheckbox } from '@ntds/list';
Props
ListItemCheckbox
| Prop | Type & Description |
|---|---|
| id | string Unique identifier for the list item checkbox. |
| checkboxProps | InputHTMLAttributes<HTMLInputElement> & { name?: string; setValue?: (flag: boolean) => void; checked?: boolean | { name: string; checked: boolean; }[]; disabled?: boolean; passive?: boolean; onChange?: (event: ChangeEvent<...>) => void; hasError?: boolean; } Props to pass to the CheckboxInput component. |
| icon | FC<IconProps> | ReactNode An icon to display to the left of the title. |
| title | ReactNode Title of the list item |
| subTitle | ReactNode Subtitle of the list item, displayed below the title. |