@objectifthunes/whiteboard
WHITEBOARD DASHBOARD

ToggleChip

A Chip that toggles, with an unmissable filled active state and aria-pressed wired in.


PREVIEW
ambientpianorainlofi
SOURCE
import { ToggleChip, TagRow } from '@objectifthunes/whiteboard'

<TagRow>
  {tags.map(tag => (
    <ToggleChip key={tag} active={selected.has(tag)} onClick={() => toggle(tag)}>
      {tag}
    </ToggleChip>
  ))}
</TagRow>
NOTES

Built on Chip, so it renders as a real <button> with role="button" and aria-pressed wired to active. The active state is filled rather than outlined on purpose — a border-only toggle is too easy to miss in a dense filter row.

For a single exclusive choice reach for FilterTabs instead; ToggleChips are for multi-select filters.