1.0.5 • Published 6 years ago
@keeganteetaert/ui v1.0.5
KT__UI
Global props
Each UI component is equipped with:
- componentIdprop which translates into an HTML- data-component-idattribute
- classNameprop which can be used to add additional CSS styling
Input components
Props
In addition to the global props each input component is equipped with:
- valueprop
- onChangeprop
- onFocusprop
- disabledprop which adds a- kt__disabledclass to the HTML element
- loadingprop which adds a- kt__loadingclass to the HTML element
- errorprop which adds a- kt__errorclass to the HTML element
- additional props unique to each input
Fields
Input components may be wrapped in a Field component to provide additional props such as: 
- labelprop
- subTextprop
- errorMessageprop which adds a- kt__errorclass to the HTML element and when set enables the child's- errorprop