getInputClass()function

getInputClass(props: InputVariants): string
ParamType
propsInputVariants
Styling variants shared by every form input — currently the width variant (width="narrow", "normal", "wide", "full", "fit"). required
Return
string
The merged base input className string.

Build the shared base className for a form input from its styling variants — the base input class plus any InputVariants.

Examples

getClass(getInputClass(props), getModuleClass(INPUT_CSS, "text")) // a text input that also honours width variants