Skip to content
Menu

Inputs

Text style toggle group

Text style toggle group: A joined trio of style toggles for bold, italic and underline that restyle a live sample line sitting right beneath the group.

Using Text style toggle group

Text style toggle group uses the card 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
sampleTexttextShip the release notesUp to 48 characters
accentcolor#38BDF8No additional limit in the metadata.
cellSizenumber45From 32 to 64; step 1
boldOnbooleantrueNo additional limit in the metadata.
italicOnbooleanfalseNo additional limit in the metadata.
Which frameworks are available for Text style toggle group?

Text style toggle group 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 Text style toggle group depend on?

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

What accessibility details are visible in Text style toggle group?

The React source for Text style toggle group includes: native elements (button); attributes and handlers (aria-hidden, aria-label, aria-pressed, onKeyDown); explicit roles (group); key comparisons (ArrowDown, ArrowLeft, ArrowRight, ArrowUp). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Text style toggle group handle reduced motion?

The source scan found no direct useReducedMotion() or matchMedia preference read in Text style toggle group'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