1.0.5 • Published 4 years ago
@keeganteetaert/ui v1.0.5
KT__UI
Global props
Each UI component is equipped with:
componentId
prop which translates into an HTMLdata-component-id
attributeclassName
prop which can be used to add additional CSS styling
Input components
Props
In addition to the global props each input component is equipped with:
value
proponChange
proponFocus
propdisabled
prop which adds akt__disabled
class to the HTML elementloading
prop which adds akt__loading
class to the HTML elementerror
prop which adds akt__error
class 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:
label
propsubText
properrorMessage
prop which adds akt__error
class to the HTML element and when set enables the child'serror
prop