mirror of
https://github.com/zoo-labs/zoo.git
synced 2026-11-10 22:32:34 +00:00
26 lines
583 B
TypeScript
26 lines
583 B
TypeScript
import {
|
|
Root as ToggleGroupRoot,
|
|
Item as ToggleGroupItem,
|
|
} from '@radix-ui/react-toggle-group'
|
|
import { styled } from 'stitches.config'
|
|
|
|
const StyledToggleGroupRoot = styled(ToggleGroupRoot, {
|
|
borderRadius: 8,
|
|
overflow: 'hidden',
|
|
display: 'flex',
|
|
gap: 1,
|
|
})
|
|
|
|
const StyledToggleGroupItem = styled(ToggleGroupItem, {
|
|
background: '$gray3',
|
|
color: '$gray12',
|
|
p: '$3',
|
|
'&[data-state=on]': { backgroundColor: '$primary5' },
|
|
})
|
|
|
|
export {
|
|
StyledToggleGroupRoot as ToggleGroup,
|
|
StyledToggleGroupItem as ToggleGroupItem,
|
|
StyledToggleGroupRoot as ToggleGroupRoot,
|
|
}
|