data-display — wyrd.component.tag

Tag

Compact inline label that can optionally expose a localized dismiss affordance.

Install @wyrd-company/react or the Flutter package and use it directly — your DESIGN.md does the styling.

01

Examples

Generated from the contract's examples block. Previews are the published @wyrd-company/react component, themed by the brand's role tokens — flip the site's light/dark toggle and they follow.

Code target Applies to every example on component pages.
default state: default
Usage
import { WyrdTag } from "@wyrd-company/react";

<WyrdTag isDismissible={false} content="Frontend" />

// events: onDismiss
dismissible state: dismissible
Usage
import { WyrdTag } from "@wyrd-company/react";

<WyrdTag isDismissible content="Priority" />

// events: onDismiss
02

Properties

NameTypeDefaultSummary
is-dismissible boolean false Shows a dismiss control that emits the dismiss event.
03

Slots & events

SlotCardinalityAcceptsSummary
content exactly-one text Visible tag label read inline with surrounding content.
EventPayloadSummary
dismiss action Canonical event emitted by the dismiss affordance.
04

Tokens

The contract's token bindings. Open the shared contextual sidebar from any example; primary swatches reflect the color you pick there. Error swatches show the active preset's values; editing any knob switches to custom and resets error to TWW · Ink.

BindingToken
background color.surface-container
foreground color.on-surface
radius rounded.full
05

States

StateSourceSummary
default platform Non-dismissible tag.
dismissible property Tag with visible dismiss affordance.
06

Accessibility

From the contract's accessibility obligations. Role none

  • Tab moves focus to the dismiss control when present.
  • Enter or Space activates the dismiss control when focused.
  • The tag itself adds no standalone semantics.
  • The dismiss control is a button named by the component-owned localized message.
  • Verified under: rtl, reduced-motion, cvd-deuteranopia, density-compact, text-expansion.
07

SDUI

Status: serializable. Tag serializes its dismissible state, label text, and optional dismiss binding.

SerializableMembers
Propertiesis-dismissible
Slotscontent
Eventsdismiss
The Wyrding Way — a contract-first design system. © Wyrd Company