getGapClass()function

getGapClass({ gap }: GapVariants): string | undefined
ParamType
variantsGapVariants
Variant props for the gap between a component's children, e.g. gap="large". required
    .gapGapValue
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"