DefaultListLayout

Install

yarn add @ntds/list

Import

import { DefaultListLayout } from '@ntds/list';

Props

DefaultListLayoutLeftContent

PropType & 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

PropType & 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.

This guide is based on version: 3.0.1