ListItemSwitch
Install
yarn add @ntds/list
Import
import { ListItemSwitch } from '@ntds/list';
Props
ListItemSwitch
| Prop | Type & Description |
|---|---|
| id | string Unique identifier for the list item switch. |
| switchProps | InputHTMLAttributes<HTMLInputElement> & { id?: string; name?: string; value?: string; checked?: boolean; onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void; ... 5 more ...; twBallColor?: string; } Props to pass to the Switch 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. |