Anatomy
Renders button with aria-pressed; a selected named toggle adds a hidden form value.
Consumer classes, styles, and data attributes may extend the surface, but required roles, IDs, relationships, and handlers remain owned by the component.
04 · Actions & collections
betaA native button with controlled or uncontrolled pressed state and optional form submission value.
PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED/ToggleButtonDeterministic state: ready · no request is sent
Preview controls could not be applied. The static default fixture remains available.
Contract
Renders button with aria-pressed; a selected named toggle adds a hidden form value.
Consumer classes, styles, and data attributes may extend the surface, but required roles, IDs, relationships, and handlers remain owned by the component.
Public surface
data-fui-toggle-buttondata-fui-presseddata-fui-disabled--fui-toggle-button-*--fui-focus-color--fui-control-targetConsumption
PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED/ToggleButtonimport ToggleButton from 'PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED/ToggleButton';
<ToggleButton>Frauthy content</ToggleButton>island---
import ToggleButton from 'PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED/ToggleButton';
---
<ToggleButton client:visible>Frauthy content</ToggleButton>Verification
Batch C action tests cover controlled/default state, callback reasons, disabled state, aria-pressed, and hidden name/value submission.
Pending VoiceOver/Safari and NVDA/Firefox pressed-state announcement verification.
Editorial guidance
Use for an independently toggleable view or formatting option with a stable label.
Do not use ToggleButton as a checkbox when native form semantics better express the choice.
Release activity
Baseline public component contract.
Version & provenance
There is no stable predecessor for this explicit compiled subpath. The v1 compatibility layer remains tested separately; visual and API diffs begin with the next prerelease.