1.0.4 • Published 4 years ago

finlab-components v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

FINLAB COMPONENTS

  1. Installation npm i finlab-components

  2. Useage: import { SplitButton } from 'finlab-components' and then in JSX:

    <SplitButton handleClickEvent={handleClickEvent} listOptions={listOptions} defaultOption={0} />

  3. Available Components (more to come soon)

    • SplitButton
  4. Props and events details

    • Splitbutton
      • Outputs:
        • handleClickEvent Will send an event object containing the selected value and the associated index to the function passed in via the handleClickEvent 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