Home > @uniformdev/design-system > SwatchLabel
SwatchLabel() function
A colored label component that uses the same color variants as Swatch.
Signature:
Parameters
| Parameter | Type | Description |
|---|---|---|
| { variant, size, label, rightSlot, tooltip, leftSlot, } | SwatchLabelProps |
Returns:
_emotion_react_jsx_runtime.JSX.Element
Example
<SwatchLabel variant="swatch-blue" label="Blue Label" />