NavigationTitleSelect
A select component styled as a navigation title, allowing users to switch between different views or contexts from the header.@coinbase/cds-web@8.13.6
ImportSourceView source code
import { NavigationTitleSelect } from '@coinbase/cds-web/navigation/NavigationTitleSelect'
Related components
Basic usage
Loading...
Live Codefunction Example() { const options = [ { label: 'My Portfolio', id: 'portfolio' }, { label: 'Family Account', id: 'family' }, { label: 'Business Account', id: 'business' }, ]; const [selected, setSelected] = useState('portfolio'); return ( <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}> <NavigationTitleSelect options={options} value={selected} onChange={setSelected} accessibilityLabel="Switch account" /> </div> ); }