How to use
Installation
Install the UI kit using npm:
npm install lm-uikit
Use the provider
The provider helps passing some theming and options to the UI kit:
; ;
The provider has the following props:
palette
Send the theme colors used to the UI kit. The palette has the following interface:
Only the main value is mandatory. If light and dark are not set, they are computed automatically from the main color.
typography
Needed to let the UI kit to know about some typography changes done in the application. The options are:
The htmlFontSize
option is needed when the base font size is changed using rem values. Click here for further information.
Components
TextField
Based on Material ui component outlined text field:
https://material-ui.com/es/components/text-fields/
; TextField label='Name' value= onChange=/
Switch
Based on react-switch:
; Switch checked= onChange= /
Select
Based on react-select:
; ; Select defaultValue= options= isMulti /