@owlui/dropdown
TypeScript icon, indicating that this package has built-in type declarations

0.0.44 • Public • Published

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} />;

Readme

Keywords

none

Package Sidebar

Install

npm i @owlui/dropdown

Weekly Downloads

5

Version

0.0.44

License

MIT

Unpacked Size

13.5 kB

Total Files

16

Last publish

Collaborators

  • oseivale
  • sclarkeosg
  • cicerofonsecaosg
  • caube_osg