Norsk Tipping Design System

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

PropTypeDefaultDescription
title?stringIf a title is being passed to the Divider, it will appear as a header containing the title

On this page