GitHub

Tag

Removable label with size variants, pill shape, and htmx delete support.

<rhx-tag>

Examples

Variants

Neutral Brand Success Warning Danger

Sizes

Small Medium (default) Large

Pill Shape

C# TypeScript Rust

Removable

JavaScript Python Deprecated

htmx Delete

htmx Tag

Properties

Property Type Default Description
rhx-variant string neutral Color variant: neutral, brand, success, warning, danger
rhx-size string medium Tag size: small, medium, large
rhx-pill bool false Renders with fully rounded corners
rhx-removable bool false Shows a remove button

Accessibility

  • Remove button has aria-label="Remove {content}" for screen reader context.
  • Remove button is keyboard accessible via Tab and activates with Enter or Space.
  • Tags are rendered as inline elements and do not interfere with document reading order.
  • Color is supplemented by text content so meaning is not conveyed by color alone.