EnterUI
DocsComponentsThemesExamplesDonation
Get Started
      • SegmentedControl
      • ToggleGroup

Default usage

  1. EnterUI
  2. /Docs
  3. /Inputs
  4. /Selection
  5. /Segmented Controls
  6. /SegmentedControl
Updated 9 October 2026

SegmentedControl

Compact single-choice control for modes and views.

SegmentedControl is for choosing one mode from a short set, such as list versus grid, day versus week, or simple filters.

#Default usage

Segmented control

Use for compact mode switching.

Code
<SegmentedControl defaultValue="list" aria-label="View mode">
  <SegmentedControlItem value="list">List</SegmentedControlItem>
  <SegmentedControlItem value="grid">Grid</SegmentedControlItem>
  <SegmentedControlItem value="table">Table</SegmentedControlItem>
</SegmentedControl>

#Import

Code
import {
  SegmentedControl,
  SegmentedControlItem,
} from "@froggdesign/enter-ui-react";

#States

Disabled state

Disabled state keeps the selected mode readable.

Full-width modes

Opt into equal-width items when the control needs to fill its parent.

#Accessibility

SegmentedControl renders a radiogroup with radio items. Provide aria-label when there is no visible label.

#API

  • value, defaultValue, and onValueChange control the selected item.
  • disabled disables all items.
  • fullWidth stretches the group and distributes items evenly. The default keeps its content width, including inside Grid and VStack.
  • SegmentedControlItem requires a string value.
  • Supports native props and className.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousInlineStatusSelect
NextToggleGroup
On this page
  • Default usage
  • Import
  • States
  • Accessibility
  • API
  • Styling