File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export function Checkbox({
38
38
'flex size-5 cursor-pointer items-center justify-center rounded-sm outline-none' ,
39
39
'focus-visible:ring-[3px] focus-visible:ring-ring/50' ,
40
40
'data-checked:bg-primary data-unchecked:border data-unchecked:border-primary/50' ,
41
+ 'disabled:cursor-not-allowed disabled:bg-muted-foreground disabled:opacity-20' ,
41
42
className
42
43
) }
43
44
{ ...props }
@@ -46,7 +47,7 @@ export function Checkbox({
46
47
keepMounted = { true }
47
48
className = { cn (
48
49
'flex transition-transform duration-150 ease-in-out' ,
49
- 'data-checked:scale-100 data-checked:rotate-0 data-unchecked:scale-50 data-unchecked:rotate-45'
50
+ 'data-checked:scale-100 data-checked:rotate-0 data-unchecked:invisible data-unchecked: scale-50 data-unchecked:rotate-45'
50
51
) }
51
52
>
52
53
< CheckIcon className = "size-3.5 stroke-3 text-primary-foreground" />
You can’t perform that action at this time.
0 commit comments