Skip to main content
SegmentedTabs
@coinbase/cds-web@8.34.1
Switches between different views of content.
Import
import { SegmentedTabs } from '@coinbase/cds-web/tabs/SegmentedTabs'
SourceView source codeStorybookView StorybookFigmaView Figma (internal only)
Related components
View as Markdown

Basic Example

Use the onChange prop to listen and make changes to the activeTab state.

Loading...

With Initial Value

You can set any tab as the initial active tab.

Loading...

No Initial Value

SegmentedTabs can start with no active selection.

Loading...

Disabled State

You can disable the entire SegmentedTabs component.

Loading...

Disabled Individual Tab

Individual tabs can be disabled while keeping others interactive.

Loading...

Custom Tab Component

You can customize individual tabs by providing a custom Component for specific tabs.

Loading...

Custom Active Indicator

You can customize the active indicator component and overall styling.

Loading...

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.