Skip to main content

Dropdown

A dropdown list.

When To Use#

If there are too many operations to display, you can wrap them in a Dropdown. By clicking/hovering on the trigger, a dropdown menu should appear, which allows you to choose one option and execute relevant actions.

Examples#

import { Dropdown } from 'tailor-ui';

Basic usage#

With icon#

Get visible#

Cascading menu#

API#

Dropdown#

PropertyDescriptionTypeDefault
overlayReactNode

Dropdown.Item#

PropertyDescriptionTypeDefault
onClickCallback for click(event: MouseEvent) => void
disabledDisabled the itembooleanfalse
keepKeep the dropdown after click itembooleanfalse

Dropdown.SubList#

PropertyDescriptionTypeDefault
titlestring
disabledDisabled the itembooleanfalse