# Text style toggle group

https://fieldbook.lizardi.mx/components/text-style-toggle-group

Category: Inputs
![Still of the Text style toggle group component, a Fieldbook UI component in Inputs.](https://fieldbook.lizardi.mx/thumbs/text-style-toggle-group.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/text-style-toggle-group-47ceb4f3df.mp4 (5 s, silent)

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.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

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

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| sampleText | text | Ship the release notes | Up to 48 characters |
| accent | color | #38BDF8 | No additional limit in the metadata. |
| cellSize | number | 45 | From 32 to 64; step 1 |
| boldOn | boolean | true | No additional limit in the metadata. |
| italicOn | boolean | false | No additional limit in the metadata. |

## Usage notes

Text style toggle group uses the card preview frame with a light/dark theme setting.

### 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.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "text-style-toggle-group",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Check draw toggle](https://fieldbook.lizardi.mx/components/check-draw-toggle)
- [Icon crossfade switch](https://fieldbook.lizardi.mx/components/icon-crossfade-switch)
- [Latching square toggle](https://fieldbook.lizardi.mx/components/latching-square-toggle)
- [Settings Toggle Row](https://fieldbook.lizardi.mx/components/press-stretch-switch)
- [Sliding Thumb Switch](https://fieldbook.lizardi.mx/components/sliding-thumb-switch)
- [Spring layout toggle](https://fieldbook.lizardi.mx/components/spring-layout-toggle)
