# Segmented Control URL: /components/segmented-control Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/segmented-control.mdx A component used to select one of multiple options to immediately filter or switch related content. ## Anatomy ![Segmented Control Anatomy image. Composed of Container, Segment, Label, and Badge (Optional).]() Segmented Control has multiple segments within a container that wraps the whole, and each segment is composed of a text label. A [Notification Badge](/components/notification-badge) can be optionally displayed when a new segment is added or new content is added to that segment. ## Properties ### Number of Controls ![Segmented Control Number of Controls - 2, 3, 4]() Segmented items can be composed of 2-4 segments. ### State ![Segmented Control State - Selected-Enabled, Selected-Pressed, Pressed, Disabled, Selected-Disabled]() Segmented Control displays segmented items through Selected/Unselected states and includes interaction states such as Enabled, Pressed, and Disabled. ## Guidelines ### Write Short and Concise Labels ![Segmented Control with 'Most Popular' and 'Recommended' labels]() Keep labels short and concise. If the label is too long compared to the segment, consider using a different component. ### Use 4 or Fewer ![Segmented Control with 3 options]() Too many options make it difficult for users to recognize, and on mobile devices, touch areas become narrow, reducing usability. If you need more options, consider using other components like [Radio](/components/radio) Group or [Checkbox](/components/checkbox) Group. ### Do Not Use More Than One Per Screen It is not recommended to repeatedly use Segmented Control on one screen. Having multiple controls of the same form makes the visual hierarchy of the screen ambiguous, causing users to be confused about which control to operate first and how each control affects different areas. ### Switching Views with Segmented Control ![Example of switching between map, street view, and 3D views]() Segmented Control should be used for interactions that directly affect a specific content area. Use it when displaying different representations of the same data. For example, switching between "map view" and "street view" is typical. Users expect the screen content to change immediately. ### Using as a Filter ![Example of using for neighborhood filtering]() When filtering related content groups using Segmented Control, users can easily narrow or broaden the scope of content within a view to find the desired content. ### Exploring Content Within a View ![Example of displaying different content based on selected items]() When you want to show the same content from multiple different perspectives or criteria, you can use Segmented Control to easily switch between each criterion. ## Segmented Control vs. Tabs Segmented Control and [Tabs](/components/tabs) look visually similar and are often confused, but they have clear differences in purpose and usage. **Fundamentally, [Tabs](/components/tabs) are for Navigation, while Segmented Control is for Manipulation.** | | Segmented Control | Tabs | | ------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | **Primary Use** | Filter, sort, or view content within a screen in different ways | Move to separate sections or pages containing different content | | **Position** | Placed directly above the content it controls | Fixed at the top of the screen or specific layout | | **Scope of Effect** | Affects only specific parts of the current screen | Replaces the entire content area below the tabs | | **Action** | Only data in the current view changes when selected | A new view loads when selected | ![Example of using Tabs for switching between neighborhood life, meetings, and community]() ## Specification ### Segmented Control Component spec (JSON): /rootage/components/segmented-control.json ### Segmented Control Item Component spec (JSON): /rootage/components/segmented-control-item.json ### Segmented Control Indicator Component spec (JSON): /rootage/components/segmented-control-indicator.json