Skip to content

Commit 20df691

Browse files
authored
Fixing switch disabled state. (#594)
1 parent 0b066ac commit 20df691

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Switch/Switch.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export const Switch = forwardRef<HTMLButtonElement, SwitchProps>(
4141
checked={checked}
4242
{...props}
4343
>
44-
<SwitchThumb $checked={checked} />
44+
<SwitchThumb
45+
$checked={checked}
46+
$disabled={disabled}
47+
/>
4548
</SwitchRoot>
4649
{label && (
4750
<GenericLabel

0 commit comments

Comments
 (0)