import { useState } from 'react'; import { PixelToggle, PixelToggleGroup } from './PixelToggleGroup'; export function Default() { const [value, setValue] = useState('left'); return ( Left Center Right ); } export function Multiple() { const [value, setValue] = useState(['bold']); return ( Bold Italic Underline ); } export function Variants() { const [a, setA] = useState('one'); const [b, setB] = useState('one'); const [c, setC] = useState('one'); const [d, setD] = useState('one'); return (
One Two Three One Two Three One Two Three One Two Three
); } export function Sizes() { const [sm, setSm] = useState('a'); const [md, setMd] = useState('a'); const [lg, setLg] = useState('a'); return (
A B C A B C A B C
); } export function RovingFocus() { const [value, setValue] = useState('list'); return ( List Grid Board ); } export function Surfaces() { const [pixel, setPixel] = useState('one'); const [linear, setLinear] = useState('one'); return (
One Two One Two
); }