[FormLabel] Export FormLabelOwnProps
from FormLabel
to fix type error
#36035
Labels
bug 🐛
Something doesn't work
component: FormControl
The React component
good first issue
Great for first contributions. Enable to learn the contribution process.
regression
A bug, but worse
typescript
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
https://codesandbox.io/s/sad-merkle-3swvv2?file=/src/Demo.tsx
Steps:
export const DemoLabel = styled(FormLabel)(({ theme }) => ({}));
Current behavior 😯
type error happens
Expected behavior 🤔
no type errors
Context 🔦
This type error stops the build process.
Exporting
FormLabelOwnProps
on the filenode_modules/@mui/material/FormLabel/FormLabel.d.ts
fixes this problem.I think this issue looks like the same as #33165
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: