Components

Dropdown

Searchable single or multiple selection, with optional creation of new items.

Import

import { Dropdown } from '@rinzai/zen';

Examples

Multi select

Type a new name and pick "Add …" to create a tag (`mutable`).

API reference

<Dropdown>

PropTypeDefault
itemsRequired
DropdownItem[]—
onChangeRequired
((items: DropdownItem[]) => void) | ((item: DropdownItem) => void)—
selectedRequired
DropdownItem | DropdownItem[]—
multiple
boolean—
mutable
true—
onAdd
((item: DropdownItem) => void)—