# Segmented toggle tabs

https://fieldbook.lizardi.mx/components/segmented-toggle-tabs

Category: Navigation
![Still of the Segmented toggle tabs component, a Fieldbook UI component in Navigation.](https://fieldbook.lizardi.mx/thumbs/segmented-toggle-tabs.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/segmented-toggle-tabs-c5df692f54.mp4 (5 s, silent)

Segmented toggle tabs: A compact pill-shaped segmented control for switching between a small number of short options, with a filled block sliding to whichever segment is selected.

## 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 |
| --- | --- | --- | --- |
| accentColor | color | #FF6A1F | No additional limit in the metadata. |
| defaultRange | select | week | Options: day, week, month, year |
| size | select | medium | Options: small, medium, large |

## Usage notes

Segmented toggle tabs uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Segmented toggle tabs?

Segmented toggle tabs 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 Segmented toggle tabs depend on?

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

### What accessibility details are visible in Segmented toggle tabs?

The React source for Segmented toggle tabs includes: native elements (button); attributes and handlers (aria-checked, aria-hidden, aria-label, onKeyDown, tabIndex); explicit roles (radio, radiogroup); key comparisons (ArrowLeft, ArrowRight). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Segmented toggle tabs handle reduced motion?

Segmented toggle tabs 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.

## 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": "segmented-toggle-tabs",
    "framework": "react"
  }
}
```

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

## Related open components

- [Shared-Layout Tab Switch](https://fieldbook.lizardi.mx/components/shared-layout-tab-switch)
- [Sliding Panel Tabs](https://fieldbook.lizardi.mx/components/sliding-panel-tabs)
- [Auto height tabs](https://fieldbook.lizardi.mx/components/auto-height-tabs)
- [Bubble burst menu](https://fieldbook.lizardi.mx/components/bubble-burst-menu)
- [Card blur tabs](https://fieldbook.lizardi.mx/components/card-blur-tabs)
- [Chameleon pill navbar](https://fieldbook.lizardi.mx/components/chameleon-pill-navbar)
