# SbChip A compact element for displaying tags, categories, or actionable items. Chips can be static, clickable, or removable, with support for icons and various visual styles. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Variant | SbChipVariant | Filled | Visual style (Filled, Outlined) | | Size | SbSize | Md | Chip size (Sm, Md, Lg) | | Color | SbColor | Default | Color theme | | Disabled | bool | false | Whether the chip is disabled | | Class | string? | null | Additional CSS classes | | Style | string? | null | Inline styles | | AdditionalAttributes | Dictionary? | null | Additional HTML attributes | ## Events | Event | Type | Description | |-------|------|-------------| | OnClick | EventCallback | Fired when chip is clicked (makes chip interactive) | | OnRemove | EventCallback | Fired when remove button is clicked (shows remove button) | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | ChildContent | RenderFragment? | Label content of the chip | | StartIcon | RenderFragment? | Icon displayed before the label | ### Template Usage #### Basic ```razor Label ``` #### With Start Icon ```razor Category ``` ## CSS Classes - `sb-chip` - Base class - `sb-chip--filled` - Filled variant - `sb-chip--outlined` - Outlined variant - `sb-chip--sm` - Small size - `sb-chip--md` - Medium size - `sb-chip--lg` - Large size - `sb-chip--primary` - Primary color - `sb-chip--secondary` - Secondary color - `sb-chip--success` - Success color - `sb-chip--warning` - Warning color - `sb-chip--danger` - Danger color - `sb-chip--clickable` - Applied when OnClick is provided - `sb-chip--disabled` - Disabled state - `sb-chip__icon` - Icon container - `sb-chip__label` - Label container - `sb-chip__remove` - Remove button ## Accessibility - Renders as `