getTagClass()function
getTagClass(variants: TagVariants): void
| Param | Type | |
|---|---|---|
variants | TagVariants | The status, colour, and typography variants to apply. required |
| Return | |
|---|---|
unknown | The merged tag className string. |
Build the combined className string for a <Tag> from its styling variants.
Examples
getTagClass({ success: true }) // "tag … status-success"