su-dropdown
v1.0.0
Published
Dropdown component
Downloads
5
Readme
Su-Dropdown
Dropdown component.
Installing
yarn install @sushi-ui/su-dropdown
or
npm install @sushi-ui/su-dropdown
Getting started
Minimum HTML markup
<div class="su-Dropdown">
<button>trigger</button>
<div class="su-Dropdown-content"></div>
</div>
Create a new dropdown instance
const el = document.querySelector('.su-Dropdown')
const dropdown = new SuDropdown(el, options)
API
Comming soon
License
This project is licensed under the MIT License - see the LICENSE.md file for details