2.1.1 • Published 4 years ago

@wide/modulus-dropdown v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Modulus Dropdown

Enhanced dropdown component in place of <select>, to be used with @wide/modulus.

Install

npm install @wide/modulus-dropdown --save

Usage

Register this component using Modulus:

import modulus from '@wide/modulus'
import Dropdown from '@wide/modulus-dropdown'

modulus.component('dropdown', Dropdown)

Import base scss styles:

@import '@wide/modulus-dropdown';

Add [is="dropdown"] attribute to any <select> you want to enhance:

<select is="dropdown">
  <option value="plop">plop</option>
  <option value="foo">foo</option>
  <optgroup label="label">
    <option value="1">1</option>
    <option value="2">2</option>
  </optgroup>
  <option value="bar">bar</option>
</select>

Libraries

This package uses :

Authors

License

This project is licensed under the MIT License - see the licence file for details

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

5 years ago

0.0.1-beta.4

5 years ago

0.0.1-beta.3

5 years ago

0.0.1-beta.2

5 years ago

0.0.1-beta.1

5 years ago

0.0.1-beta.0

5 years ago

0.0.1-alpha

6 years ago