README
Full stack dropdown styling component with dropup, right aligned and colors support. Fully customizable as well.
Table of content
Features
- Fully customizable dropdown menu
- Colors support
- Dropup support
- Right aligned dropdown support
Install
npm install @coffeekraken/dropdown-style --save
Get Started
First, import and init sugar into your project.
Then, import the component into your scss file like so:
@use 'node_modules/@coffeekraken/dropdown-style/index' as dropdown-style;
Then, generate the classes using the provided mixins like so:
@include dropdown-style.classes(
$colors: default primary secondary
);
Then simply use it inside your html like so:
<div class="dropdown">
<a class="btn">Display dropdown</a>
<ul class="dropdown__menu">
<li class="dropdown__item">
<a href="#" title="...">
Item 1
</a>
</li>
<li class="dropdown__item">
<a href="#" title="...">
Item 2
</a>
</li>
<li class="dropdown__item">
<a href="#" title="...">
Item 3
</a>
</li>
</ul>
</div>
Coffeekraken
We are a young collective of front-end creative developers with one goal in mind. Build tools to make every team working day life better. This is our first and only concern. All our tools are build around that purpose. All what we provide are some cool tools that you can use the way you want. These tools features cover a large scope of the front-end workflow (styleguide generation, colors/fonts management, etc...). You can use only the parts that you need and let the rest aside...