- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 32.7k
Closed as not planned
Labels
customization: themeHigher level theming customizability.Higher level theming customizability.duplicateThis issue or pull request already exists.This issue or pull request already exists.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: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Summary 💡
I'm using a custom property to create custom variants for OutlinedInput.
The problem is that I need to pass the property to the component for the theme to have it, but the property ends up being rendered to the DOM.
Examples 🌈
Component usage:
<OutlinedInput state="error />Theme:
{
  "MuiOutlinedInput":{
    "variants":[
      {
        "props":{
          "state":"error"
        },
        "style":{
          "my_custom_styles":"go here"
        }
      }
    ]
  }
}Motivation 🔦
The motivation is the same as the function shouldForwardProp that exists in styled.
Avoid rendering unnecessary properties to DOM.
aizerin, Armisael2k, rebecapereira-docker, trungutt, delijah and 4 moreCopilot
Metadata
Metadata
Assignees
Labels
customization: themeHigher level theming customizability.Higher level theming customizability.duplicateThis issue or pull request already exists.This issue or pull request already exists.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: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.