getIndentClass()function
getIndentClass({ indent }: IndentVariants): string | undefined| Param | Type | |
|---|---|---|
options | IndentVariants | Variant props for the inline-padding ("indent", left + right) of a component, e.g. indent="normal". required |
.indent | IndentVariant | Inline-padding (left + right) of the element, keeping its content off the edges. |
| Return | |
|---|---|
string | undefined | The indent class string, or undefined when no indent is set. |
Get the inline-padding ("indent") class for a component from its indent variant prop.
Examples
getIndentClass({ indent: "normal" }) // "indent-normal"