1.0.4 • Published 4 years ago
finlab-components v1.0.4
FINLAB COMPONENTS
Installation
npm i finlab-components
Useage:
import { SplitButton } from 'finlab-components'
and then in JSX:<SplitButton handleClickEvent={handleClickEvent} listOptions={listOptions} defaultOption={0} />
Available Components (more to come soon)
- SplitButton
Props and events details
- Splitbutton
- Outputs:
handleClickEvent
Will send an event object containing the selectedvalue
and the associatedindex
to the function passed in via thehandleClickEvent
prop.
- Inputs (more to come):
listOptions
Contains the items you want displayed in an array format i.e.['option1', 'option2', 'option3']
.defaultOption
Pass a default listOption index to display
- Outputs:
- Splitbutton