Chip

The ArcadiaChip component displays a compact label with configurable color, size, variant, and optional avatar image or delete button.

Basic Usage

<ArcadiaChip Label="Frontend" Color="primary" />

<ArcadiaChip Label="Completed" Color="success" Variant="soft" />

<ArcadiaChip Label="Deletable" Deletable="true" OnDelete="HandleDelete" />

<ArcadiaChip Label="Click Me" Clickable="true" OnClick="HandleClick" />

<ArcadiaChip Avatar="/images/user.jpg" Label="Jane Doe" />

Parameters

ParameterTypeDefaultDescription
Labelstring?nullChip label text. Ignored if ChildContent is provided.
ChildContentRenderFragment?nullCustom content for the chip body. Takes precedence over Label.
Colorstring"default"Color variant: "default", "primary", "success", "warning", "danger".
Variantstring"filled"Visual variant: "filled", "outlined", "soft".
Sizestring"md"Size: "sm", "md", "lg".
ClickableboolfalseWhether the chip is clickable (renders as a <button>).
DeletableboolfalseWhether a delete button is shown.
Avatarstring?nullURL for a small avatar image on the left side.
Classstring?nullAdditional CSS class names.
Stylestring?nullInline CSS styles.

Events

EventTypeDescription
OnClickEventCallbackFired when the chip is clicked (requires Clickable="true").
OnDeleteEventCallbackFired when the delete button is clicked.

Accessibility

  • Clickable chips render as <button> elements for native keyboard support.
  • Non-clickable chips render as <span> elements.
  • The delete button uses aria-label="Remove" and stops click propagation.
  • Avatar images use aria-hidden="true".