Tag component variants
mainThe Tag component supports several semantic variants through the colorConfig prop, typically using predefined guides like colorGuide:
- Success: Uses
colorGuide.lightComponents.tags.successorcolorGuide.darkComponents.tags.success. - Info: Uses
colorGuide.lightComponents.tags.info. Can include aniconprop with a URL. - Error: Uses
colorGuide.darkComponents.tags.error. - Warning: Uses
colorGuide.lightComponents.tags.warning. - No Container: Setting
noContainer={true}removes the background/container styling.
// Example of an Info variant with an icon
<Tag
colorConfig={colorGuide.lightComponents.tags.info}
icon="https://example.com/icon.png"
>
Info with icon
</Tag>