Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
93.7k
stars
32.23k
forks
source link
Switch property 'checked' does not exist on type 'IntrinsicAttributes & SwitchProps'. #44177
Open
Rijndael1998 opened 4 hours ago
Steps to reproduce
Tested on v6.1.4 after doing a large upgrade from v5.
^ this gives a squiggly type error.
Check it out on your own StackBlitz link. Use the "controlled" switch example. https://mui.com/material-ui/react-switch/
Here's my forked version: https://stackblitz.com/edit/react-486rye?file=Demo.tsx
Current behavior
Type error
StackBlitz:
VSCodium:
Expected behavior
No type error :+1:
Context
I'm writing code.
Your environment
Search keywords: Switch, checked, SwitchProps