The Tag component is a small, interactive UI element used to label, categorize, or filter content. It can display text or icons and often supports actions like deletion or selection. Tags enhance user experience by providing a clear and concise way to organize information, highlight key attributes, or manage items dynamically.
The default use of Stack will stack its children vertically.
Use the variant prop to change the appearance of the tag.
Use size property with md or lg (default).
Add an icon prop to display an icon alongside the tag text.
Use the ai prop to automatically display a sparkles icon, and specific outline gradient colors. When ai is set to true, it overrides any custom icon.
When we have a clickable tag, we apply an hover state.
When we have only one character, we apply same size for the width and height
Simply add a function onRemove to reveal a cross icon with a remove action (or other).
Use the disabled prop to disable tag interaction.