Dropdown component.
yarn install @sushi-ui/su-dropdown
or
npm install @sushi-ui/su-dropdown
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)
Comming soon
This project is licensed under the MIT License - see the LICENSE.md file for details