EEnterUI
DocsComponentsThemesDonation
Get Started
      • SegmentedControl
      • ToggleGroup
EnterUIDocsInputsSelectionSegmented ControlsSegmentedControl
InputsUpdated 6 May 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.

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

  1. Default usage
  2. Import
  3. States
  4. Accessibility
  5. API
  6. Styling