getInputClass()function
getInputClass(props: InputVariants): string
| Param | Type | |
|---|---|---|
props | InputVariants | Styling variants shared by every form input — the block variants: space, padding, indent, width, and typography. 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