Files
react-test/docs/data/joy/components/checkbox/HoverCheckbox.tsx.preview

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

16 lines
346 B
Plaintext
Raw Normal View History

2025-12-12 14:26:25 +09:00
<Checkbox
uncheckedIcon={<Done />}
label="My unchecked icon appears on hover"
slotProps={{
root: ({ checked, focusVisible }) => ({
sx: !checked
? {
'& svg': { opacity: focusVisible ? 1 : 0 },
'&:hover svg': {
opacity: 1,
},
}
: undefined,
}),
}}
/>