Skip to content

patchkit/patchkit-dropdown-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dropdown Selector

Dropdown button that behaves like a <select> element.

screenshot.png

import DropdownSelectorBtn from 'patchkit-dropdown-selector'

const onSelect = o => console.log('selected', o)

const ITEMS = [
  { label: 'one', value: 1 },
  { label: 'two', value: 2 },
  { label: 'three', value: 3 }
]
<DropdownSelectorBtn className="btn highlighted" items={ITEMS} label="Current" initValue={1} onSelect={onSelect} />

Styles

Use the .less file from patchkit-dropdown:

@import "node_modules/patchkit-dropdown/styles.less"

About

Dropdown button that behaves like a <select> element

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published