1.0.4 • Published 6 years ago
@keeganteetaert/ui v1.0.4
KT__UI
Global props
Each UI component is equipped with:
componentIdprop which translates into an HTMLdata-component-idattributeclassNameprop which can be used to add additional CSS styling
Input components
Props
In addition to the global props each input component is equipped with:
valueproponChangeproponFocuspropdisabledprop which adds akt__disabledclass to the HTML elementloadingprop which adds akt__loadingclass to the HTML elementerrorprop which adds akt__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:
labelpropsubTextproperrorMessageprop which adds akt__errorclass to the HTML element and when set enables the child'serrorprop