README
React controlled components for tm-nucleus
Usage
Installation
npm install --save react-tm-nucleus
In the code:
import {TextInput, Dropdown, Button} from 'react-tm-nucleus';
Form elements
-
Input
- basic input component. Renders <input/> and provides accessors throughref
to state attributes. -
TextInput
-Input
wrapper; -
EmailInput
-Input
wrapper; -
PasswordInput
-Input
wrapper; -
Select
- basic <select> component; -
Dropdown
- wrapper ofSelect
;
State attributes
type
value
checked
disabled
required
Callback attributes
changeCallback
clickCallback
focusCallback
blurCallback
mouseEnterCallback
mouseLeaveCallback
Buttons
-
Button
- generic; -
ButtonCTA
- wrapper ofButton
; -
ButtonFull
- wrapper ofButton
; -
ButtonStatic
- wrapper ofButton
; -
ButtonAux
- wrapper ofButton
; -
ButtonAuxSecondary
- wrapper ofButton
; -
ButtonAuxFull
- wrapper ofButton
; -
ButtonAuxMinor
- wrapper ofButton
; -
ButtonOutlined
- wrapper ofButton
; -
ButtonOutlinedStatic
- wrapper ofButton
; -
ButtonOutlinedFull
- wrapper ofButton
; -
Unbutton
- wrapper ofButton
;
Attributes
-
button
- iftrue
- render\<button\>
tag, iffalse
(default) -\<a\>
-
disabled
- disables button, provides accessor, state attribute
Callback attributes
clickCallback
focusCallback
blurCallback
mouseEnterCallback
mouseLeaveCallback
What`s next?
- input validators
- other components