getParagraphClass()function

getParagraphClass(variants: ParagraphProps): string
ParamType
variantsParagraphProps
Colour, space, and typography variants. required
Return
string
A space-separated className string combining the paragraph class and resolved variant classes.

Get the combined className string for a paragraph from its styling variants.

Composes the base paragraph class with the colour, space, and typography variant helpers, so anything that wants paragraph styling can apply it.

Examples

getParagraphClass({ space: "large" }) // "paragraph …"