Skip to main content
TabbedChips
@coinbase/cds-web@8.21.3
Tab chips are to be used in a filter setting where the user is given the ability to refine the data source they are accessing.
This component is deprecated. Please use the new TabbedChips alpha component instead.
Import
import { TabbedChips } from '@coinbase/cds-web/chips/TabbedChips'
SourceView source codeStorybookView StorybookFigmaView Figma (internal only)
Related components
View as Markdown

Basic Example

Loading...
Live Code
function TabbedChipsExample() {
  const tabs = [
    {
      id: 'all_tab',
      label: 'All',
    },
    {
      id: 'swap_',
      label: 'Swap',
    },
    {
      id: 'collect_tab',
      label: 'Collect',
    },
    {
      id: 'bridge_tab',
      label: 'Bridge',
    },
  ];
  const [value, setValue] = useState(tabs[0].id);
  return (
    <VStack maxWidth={375} borderRadius={400} bordered paddingX={3} gap={2} paddingY={3}>
      <VStack paddingTop={1}>
        <TextTitle3 as="p">Popular assets</TextTitle3>
      </VStack>
      <SearchInput compact placeholder="Search by name" />
      <OldTabbedChips value={value} onChange={setValue} tabs={tabs} />
    </VStack>
  );
}

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.