DefaultListLayout
Install
yarn add @ntds/list
Import
import { DefaultListLayout } from '@ntds/list';
Props
DefaultListLayoutLeftContent
| Prop | Type & Description |
|---|---|
| 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. |
DefaultListLayout
| Prop | Type & Description |
|---|---|
| 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. |
| rightItem | ReactNode An item displayed on the right side of the list item. This can be an icon, button, switch, or any other React node. |