import { useState } from 'react'; import { PixelSegmented } from './PixelSegmented'; const VIEWS = [ { value: 'grid', label: 'Grid' }, { value: 'list', label: 'List' }, { value: 'kanban', label: 'Kanban' }, ]; export function Default() { const [value, setValue] = useState('grid'); return ( ); } export function Controlled() { const [value, setValue] = useState('list'); return (

Picked: {value}

); } export function Tones() { const [value, setValue] = useState('grid'); return (
); } export function Surfaces() { const [pixel, setPixel] = useState('grid'); const [linear, setLinear] = useState('grid'); return (
); } export function Disabled() { return ( {}} disabled /> ); } export function Required() { const [value, setValue] = useState('grid'); return ( ); } export function WithFormName() { const [value, setValue] = useState('grid'); return (
); }