Skip to content
Menu

Inputs

Labeled toggle row

Labeled toggle row: A small on/off switch paired inline with its own text label, sized for a settings list row.

Using Labeled toggle row

Labeled toggle row uses the inline preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
labeltextAirplane modeUp to 30 characters
checkedbooleanfalseNo additional limit in the metadata.
accentcolor#7C5CFFNo additional limit in the metadata.
sizeselectdefaultOptions: default, sm
Which frameworks are available for Labeled toggle row?

Labeled toggle row is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Labeled toggle row depend on?

The React metadata lists these npm dependencies beyond React: motion.

What accessibility details are visible in Labeled toggle row?

The React source for Labeled toggle row includes: native elements (button); attributes and handlers (aria-checked, aria-hidden); explicit roles (switch). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Labeled toggle row handle reduced motion?

The source scan found no direct useReducedMotion() or matchMedia preference read in Labeled toggle row's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components