@wide/modulus-dropdown

2.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @wide/modulus-dropdown

Weekly Downloads

1

Version

2.1.1

License

MIT

Unpacked Size

30.7 kB

Total Files

7

Last publish

Collaborators

  • gflandin
  • myeti
  • jmartinsdacosta
  • robiseb