Accessibility
Token, TokenIntent, TokenSize, announceTokenRemoval, shouldRemoveLastTokenOnBackspace from @prepared911/ui/token.label is the token's name; Token excludes aria-label and aria-labelledby because the shell is a generic span. A selectable token's toggle is named by the same text. The remove Button is named by removeLabel, which should name the subject ("Remove Dana Levi").onRemove, then writes removedAnnouncement to the shared polite live region of the token's owner document. A canceled removal announces nothing. A composer that removes its last token on Backspace from the entry announces it with announceTokenRemoval. The consumer moves focus after a removal; a focused token unmounts.shouldRemoveLastTokenOnBackspace. It does not fire while the person is editing text.intent color supplements the label. Write label so it states the meaning on its own ("Critical", not a bare icon on a red chip). Selected adds an accent edge beside the wash. Under prefers-contrast: more every token gains a visible edge and the selected edge thickens. Under forced-colors: active the edge is CanvasText, the selected edge is Highlight, and the focus ring is CanvasText.disabled and leave the tab order. Inside a disabled fieldset they are disabled with no prop.--motion-state. Nothing moves, so reduced motion changes nothing.