@owlui/dropdown
v0.0.44
Published
Toggle contextual overlays for displaying lists of links and more with the Bootstrap dropdown plugin
Downloads
14
Keywords
Readme
Dropdown Overview
Toggle contextual overlays for displaying lists of links and more with the Bootstrap dropdown plugin
Usage
Import or create an array of item objects, where each item has an id (string), a label (string), and a value; pass the items to the Dropdown component as a prop.
import { component as Dropdown } from '@owlui/dropdown';
const items = [
{
id: '1',
label: 'Item 1',
value: 'item1',
},
{
id: '2',
label: 'Item 2',
value: undefined,
},
{
id: '3',
label: 'Item 3',
value: undefined,
},
];
<Dropdown items={items} />;