-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUIThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUItype: expected behaviorThe current behavior is already the one expected.The current behavior is already the one expected.
Description
Steps to reproduce
Steps:
- Open this link to live example: https://stackblitz.com/edit/github-ljljbrse?file=src%2FApp.tsx
- Inspect the
divnode.
Current behavior
If you inspect the node, it has internal props such as as or sx forwarded directly to HTML.

Expected behavior
Internal props should not be forwarded to HTML nodes when shouldForwardProp is provided.
Context
No response
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: styled, shouldForwardProp
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUIThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUItype: expected behaviorThe current behavior is already the one expected.The current behavior is already the one expected.