Divider / Dev
Install
yarn add @ntds/dropdown
Import
import { Dropdown } from '@ntds/dropdown';
Usage
<Dropdown
items={() => (
<>
<Dropdown.Group>
...
<Dropdown.CustomDivider />
...
<Dropdown.CustomDivider title='DividerTitle'/>
...
</Dropdown.Group>
</>
)}
>
...
</Dropdown>
Props
CustomDivider
Prop | Type & Description |
---|---|
title | string If a title is being passed to the Divider, it will appear as a header containing the title |