1.7.2 • Published 4 years ago
rivas-lib v1.7.2
A simple library componets for testing purposes for lottoland code challenge.
Rivas-lib
A simple library component for lottoland code challenge.
This library is composed of several components to be used in your projects. Now let's describe the components implemented so far:
Dropdown
Props | Type | Description |
---|---|---|
forLabel | string | htmlFor attribute for the label |
titleLabel | string | label value |
options | { display: string; value: string; } | options for the select to be populated |
onChangeCb | () => void | callback called whenever an option is selected |
Table
Props | Type | Description |
---|---|---|
columns | {id: string; title: string; } | columns for the table headers |
rows | [{key: string: any }] | rows for the table rows |
Requirements.
NodeJS 12.x previously installed.
How to run in local.
npm install
npm run storybook-yarn
Build.
npm run build
Test.
npm run test
WARN: Upgrade version package before make some push from main branch.
npm version <major|minor|patch>