fancy-dropdown-popover
v1.0.2
Published
This is a standard dropdown component library
Downloads
4
Readme
Fancy Dropdown
This is just a simple Fancy dropdown for react. It is configurable with className and variant type, the currently supported variants are
- [X] primary
- [X] secondary
- [X] Override primary | secondary with className prop, provide any class name defined in your css or scss file along with your backgroundColor and textColor
To get started, simply run
npm i fancy-dropdown-popover
In your component.tsx or component.ts
<FancyDropDown
backgroundColor="#317497"
onClick={() => {}}
onSelect={() => {}}
options={[
{
key: 'test',
value: 'bradley'
},
{
key: 'tester',
value: 'bradley 2'
}
]}
textColor="#f8f8f8"
title="Select dropdown"
variant="secondary"
/>