Inputs
Settings Toggle Row
Settings Toggle Row: A labeled settings row ending in an on off switch whose thumb stretches under a press and springs back when it settles.
Using Settings Toggle Row
Settings 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.
| Control | Type | Default | Preview limits |
|---|---|---|---|
label | text | Notifications | Up to 24 characters |
on | boolean | false | No additional limit in the metadata. |
accentColor | color | #9BE15D | No additional limit in the metadata. |
Which frameworks are available for Settings Toggle Row?
Settings 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 Settings Toggle Row depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Settings Toggle Row?
The React source for Settings Toggle Row includes: attributes and handlers (aria-checked, aria-hidden, aria-label, onKeyDown, tabIndex); explicit roles (switch); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Settings Toggle Row handle reduced motion?
Settings Toggle Row reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.