@chantelle/dropdown

0.1.2 • Public • Published

#Dropdown

Installation

yarn add @chantelle/dropdown

Usage

First, include the CSS in your HTML:

<link rel="stylesheet" href="node_modules/@chantelle/dropdown/dist/styles.css">

Note: you can import the CSS directly into your project if your bundler supports it:

 import '@chantelle/dropdown/dist/styles.css';

React Component

import { Dropdown } from '@chantelle/dropdown';

ReactDOM.render(
   <Dropdown
     options={options}
     value={defaultOption}
     placeholder="Select an option"
     className=""
     listClassName=""
   />,
  container
);

State

Dropdown with disabled attribute already apply the disabled styles. The .pl-dropdown--disabled class is reserved for links that have the .pl-dropdown class.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    4
  • 0.1.1
    2
  • 0.1.0
    3

Package Sidebar

Install

npm i @chantelle/dropdown

Weekly Downloads

5

Version

0.1.2

License

MIT

Unpacked Size

12.7 kB

Total Files

6

Last publish

Collaborators

  • ctsd
  • blackakula