Tag | UI components (BETA)
APPLICABLE PRODUCTS
-
Sales Hub
- Enterprise
-
Service Hub
- Enterprise
The Tag
component renders a tag to label or categorize information or other components. Tags can be static or clickable for invoking functions.
- Variant: the color of the tag.
- Tag text: the text that communicates the tag's purpose.
Prop | Type | Description |
---|---|---|
variant |
'default' (default) | 'warning' | 'success' | 'error' |
The color of the alert. See the variants section for more information. |
onClick |
() => void |
A function that will be invoked when the tag is clicked. The function receives no arguments and its return value is ignored. |
Using the variant
prop, you can choose from one of four tag colors:
default
(default): for general tagging and labeling.success
: for indicating or confirming the success of an action.warning
: for indicating something that might be time-sensitive or of importance.error
: for indicating error or failure.
- Use a default tag to indicate that a customer is active
- Use a success tag to indicate that an item in a to-do list has been completed.
- Use a warning tag to indicate that a deal is expiring soon.
- Use an error tag to indicate that an error happened when trying to sync a specific property in a table.
Thank you for your feedback, it means a lot to us.
This form is used for documentation feedback only. Learn how to get help with HubSpot.