This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@coffeekraken/dropdown-style

1.0.1 • Public • Published

Coffeekraken dropdown style

npm npm npm

Full stack dropdown styling component with dropup, right aligned and colors support. Fully customizable as well.

Table of content

  1. Features
  2. Install
  3. Get Started
  4. SCSS API
  5. Coffeekraken

Features

  1. Fully customizable dropdown menu
  2. Colors support
  3. Dropup support
  4. 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...

Coffeekraken

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i @coffeekraken/dropdown-style

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

824 kB

Total Files

21

Last publish

Collaborators

  • olivierbossel