<tyro-ui-chip>

Chip

Semantic badge component with 5 variants, 2 sizes, optional icon and optional remove button. Content is projected via ng-content.

Variants

All variants (md)
DefaultAccentSuccessWarningDanger

Sizes

sm vs md
smmd

With icon

Remix Icon class via [icon]
ActivePendingBlockedAdmin

Removable

[removable] + (removed) event
Tag 1Tag 2Active

Inputs

Property
Type
Default
Description
[variant]'default' | 'accent' | 'success' | 'warning' | 'danger''default'Semantic color of the chip
[size]'sm' | 'md''md'Size of the chip
[icon]string-Remix Icon class displayed to the left of the text
[removable]booleanfalseShows a × button to remove the chip

Outputs

Event
Payload
Description
(removed)voidEmitted when the user clicks the remove button

Variant semantics

Variant
Usage
defaultNeutral state, generic tags
accentRole, category, highlighted value
successActive, validated, online state
warningWarning, pending state
dangerError, inactive, blocked state

Usage

<tyro-ui-chip variant="success" icon="ri-check-line">
  Active
</tyro-ui-chip>

<tyro-ui-chip variant="danger" [removable]="true" (removed)="onRemove()">
  Tag
</tyro-ui-chip>