@nodestrap/dropdown-list

Overlays a list element (menu).

Usage no npm install needed!

<script type="module">
  import nodestrapDropdownList from 'https://cdn.skypack.dev/@nodestrap/dropdown-list';
</script>

README

<DropdownList></DropdownList>

Overlays a list element (menu).

Preview

<DropdownList tag='div' theme='primary' size='lg' gradient={true} outlined={true} active={true} >
    <ListItem>hello</ListItem>
    <ListItem>world</ListItem>
    <ListSeparatorItem />
    <ListItem theme='danger'>important</ListItem>
    <ListItem actionCtrl={true} onClick={() => console.log('tadaa!')}>click me</ListItem>
    // ...
</DropdownList>

Rendered to:

<div class="c1 actived">
    <ul class="c2 thPrimary szLg gradient outlined">
        <li>/* ... */</li>
        <li>/* ... */</li>
        <li>/* ... */</li>
    </ul>
</div>

Features

Installation

Using npm:

npm i @nodestrap/dropdown-list

Support Us

If you feel our lib is useful for your projects,
please make a donation to avoid our project from extinction.

We always maintain our projects as long as we're still alive.

[Make a donation]