getGapClass()function
getGapClass({ gap }: GapVariants): string | undefined| Param | Type | |
|---|---|---|
variants | GapVariants | Variant props for the gap between a component's children, e.g. gap="large". required |
.gap | GapValue | Gap between child elements. |
| Return | |
|---|---|
string | undefined | The gap class string, or undefined when no gap is set. |
Get the gap class for a component from its gap variant prop.
Examples
getGapClass({ gap: "large" }) // "large"