Segmented control

Segmented control is a Tabs block from Orvain UI, built for React and Vue with a matching Figma frame.

Best for

Two or three short options that shape one field or a dense toolbar

Anatomy

Field header with label, Optional and an info button whose tooltip waits and opens above · description · the capsule at full width with a sliding thumb · radio group, arrows move and select · footer hint

MCPConnect the MCP server
Default view (Optional)

Choose how tasks are laid out when the project opens.

You can switch views any time from the toolbar.

In the Orvain Library

Get Segmented control for your product

The block’s code in React and Vue, its frame in the Figma file, and the Orvain MCP so your AI tools build with it. Part of every Library plan, alongside every other block.

  • React
  • Vue
  • Figma frame
  • Orvain MCP

About this block

Part of Tabs

What’s inside

05parts

The pieces it is built from. Keep them all, or drop the ones your product doesn’t need.

  1. Field headerwith label, Optional and an info button whose tooltip waits and opens above
  2. Description
  3. The capsule at full widthwith a sliding thumb
  4. Radio grouparrows move and select
  5. Footer hint

Responsive behaviour

480 px

Drawn at this width and never stretched past it. Below it, controls, text and spacing step down from the box the block sits in, not the window.

1440pxDesktop · 12 columns

When to use it

Where Tabs earns its place

Reach for Tabs

  • Two to five peer views of one object, switched in place with no change of address.
  • A panel whose heading, meta and primary action must hold still while the content beneath them changes.
  • A field with two or three short options that shape what it shows: a segmented control rather than full tabs.
  • A dense toolbar where the options are short enough to sit side by side without truncating.

Reach for something else

  • Views that have to be completed in order: a stepper announces the sequence, where tabs promise peers you can visit in any order.
  • Content people need to compare, print or search across: stacked sections with headings keep all of it findable, while tabs hide every panel but one, including from in-page search.
  • Anything that changes the address or what the primary action does. That is navigation, and it belongs in a nav or a tab menu.

Accessibility

06to keep

What the block ships with. Hold on to these as you make it yours.

  • Named controlsEvery icon-only button keeps a text label, so a screen reader can say what it does.
  • Keyboard firstEvery control is reachable with Tab, and its focus ring stays visible.
  • More than colourA state never rides on colour alone; a mark or a word goes with it.
  • Contrast holdsRetheme freely, but keep text at or above the contrast it ships with.
  • Calm motionFor visitors who ask for reduced motion, things simply appear.
  • Room to hitTargets stay at least 24px, with space between neighbours.

Notes for AI

1 line

Is all your assistant needs. With the Orvain MCP connected, it builds the block from your own tokens and components.

Add the Orvain “Segmented control” block to this page: field header with label, Optional and an info button whose tooltip waits and opens above, description, the capsule at full width with a sliding thumb, radio group, arrows move and select, footer hint.

Works in
Connect the MCP

Questions about Segmented control.

What is the Segmented control block?

Segmented control is a Tabs block from Orvain UI, built for React and Vue with a matching Figma frame. Best for two or three short options that shape one field or a dense toolbar.

What is the Segmented control block made of?

Is the Segmented control block responsive?

Is the Segmented control block accessible?

How do I add the Segmented control block to my project?

When should I not use a Tabs block?

More Tabs blocks

All Tabs

Grouped tabs

Page-level view switching: 2 to 5 peer views of one object, switched in place

Grouped tabs, counts

Views that carry how many items they hold, where acting on an item moves it to another view

Grouped tabs, priority

More views than a row can hold, without wrapping or scrolling the tab list

Tabs in place

The test the page leads with: a control that re-renders one region and leaves the page alone

Tabs in place, underline

Page-level tabs in a header, for views that load: Activity, Members, Billing

Tabs in place, morph

Views of very different heights, where the panel should say which way the choice went

Segmented control, preview

A choice that is about layout, where seeing it beats reading it

Segmented control, toolbar

A dense toolbar that switches the view under it between layouts

The Orvain Dispatch

Premium components, free in your inbox.

Join the Orvain Dispatch and get production-ready components, free to keep: React and Vue code plus the Figma frame, yours to ship.

Just components, never spam. You can unsubscribe anytime.