Tag
A tag component for marking and selection, supporting multiple states and style variants based on BrConfigProvider.
Component Features
- ✅ Multiple States: Supports
default,primary,secondary,success,warning,danger,infostates. - 🎨 Multiple Variants: Supports
solid,soft,outline,subtlevisual variants. - 📏 Multiple Sizes: Supports
xs,sm,md,lg,xl,2xlsize specs. - 🔄 Rounded Styles: Supports
rounded,rounded-sm,rounded-md,rounded-lg,rounded-xl,rounded-fullrounded styles. - 🔵 Bold Style: Supports bold version of
solidvariant. - ✖️ Closable: Supports
closableprop to add a close button. - 📦 Tag Group: Supports
BrTagGroupcomponent to manage a group of tags. - 🎨 Theme Customization: Based on
BrConfigProviderfor global theming and TailwindCSS local overrides.
Basic Usage
The most basic tag display.
Variants
Provides solid (solid color), soft (soft, default), outline (outlined) three variants.
Sizes
Supports multiple size configurations.
Rounded Styles
Supports multiple border radius configurations.
Bold Style
Setting the bold attribute makes the tag text bold.
Closable
Setting the closable attribute displays a close button on the tag. Clicking the close button triggers the close event.
Tag Group with Overflow
Using BrTagGroup makes it easy to manage a group of tags, supporting unified spacing and maximum display count.
Theme Customization
You can globally configure the default behavior of Tag through BrConfigProvider, or use TailwindCSS for local overrides.