TabbedChips
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.@coinbase/cds-web@8.13.6
ImportSourceView source codeStorybookView StorybookFigmaView Figma
import { TabbedChips } from '@coinbase/cds-web/chips/TabbedChips'
Related components
Basic Example
Loading...
Live Codefunction 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" /> <TabbedChips value={value} onChange={setValue} tabs={tabs} /> </VStack> ); }