Divider

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

PropType & Description
title
string

If a title is being passed to the Divider, it will appear as a header containing the title

This guide is based on version: 1.5.0