🍙 Onigiri

The Crunchyroll design system, rendered live from its own tokens and components. It cannot drift from what ships.

Docs draft

Tabs

When to use it

useSwitching views of the same subject: Episodes / Details / Related.
avoidNavigation to different pages — tabs never change the URL context. link

States

rest — At rest with no interaction.

hover — Pointer is over the control.

selected — Currently selected.

focus — Holds keyboard focus and shows the focus ring.

Design specifications

tab56px tall, padding-x space.24, type.label-lg
text-restcolor.text.secondary
text-activecolor.text.primary
bar-restcolor.border.subtle
bar-selectedcolor.accent.base (3px)
baseline1px color.border.subtle under the row

Accessibility

Arrow Left/Right — Move and activate; roving tabindex keeps one stop.

Tab — Into the active tab, then into the panel.

role=tablist/tab/tabpanel with aria-selected and aria-controls wired via useId.