Accessibility
Pill from @prepared911/ui-core combines a short label with optional icons and dismiss affordances. The component handles dismiss control semantics and icon decoration; your job is to provide readable labels, distinguish severity beyond color, and announce dismissals.
aria-hidden="true" when paired text conveys the meaning.IconToggle (Interactable with role="checkbox") whose accessible name comes from title (localized Pill.dismissButton.title, default "Dismiss").aria-disabled (via Interactable) and are skipped in the tab order.Pill.dismissButton.title string (default "Dismiss"); keep surrounding UI clear about what is removed.aria-live="polite" to announce the change.Interactable with injectChild, which applies role="button" to the pill surface (not a native <button> element).<button> with role="checkbox" and a descriptive accessible name from title.Badge for non-interactive status indicators; reserve Pill for labels that can be interactive or dismissible.href and external are set, Pill shows an external-link icon whose title is the localized Pill.externalLink.title (default "External Link"). Unlike Button, Pill does not append "(opens in new window)" to the pill's accessible name.