1.0.4 • Published 5 years ago
finlab-components v1.0.4
FINLAB COMPONENTS
Installation
npm i finlab-componentsUseage:
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:
handleClickEventWill send an event object containing the selectedvalueand the associatedindexto the function passed in via thehandleClickEventprop.
- Inputs (more to come):
listOptionsContains the items you want displayed in an array format i.e.['option1', 'option2', 'option3'].defaultOptionPass a default listOption index to display
- Outputs:
- Splitbutton