Files
react-test/docs/data/joy/components/badge/BadgeVisibility.tsx.preview

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
278 B
Plaintext
Raw Normal View History

2025-12-12 14:26:25 +09:00
<Badge badgeContent={12} invisible={invisible}>
<Typography sx={{ fontSize: 'xl' }}>🛍</Typography>
</Badge>
<Switch
startDecorator="invisible"
checked={invisible}
onChange={(event) => setInvisible(event.target.checked)}
variant={invisible ? 'solid' : 'outlined'}
/>