These class names are useful for styling with CSS. They are applied to the root slot when specific states are triggered.
.Mui-disabledSTATE
State class applied to the root element if disabled={true}.
.Mui-selectedSTATE
State class applied to the root element if the option is selected.
.MuiOption-colorContext
Class name applied to the root element if color="context".
.MuiOption-colorDanger
Class name applied to the root element if color="danger".
.MuiOption-colorNeutral
Class name applied to the root element if color="neutral".
.MuiOption-colorPrimary
Class name applied to the root element if color="primary".
.MuiOption-colorSuccess
Class name applied to the root element if color="success".
.MuiOption-colorWarning
Class name applied to the root element if color="warning".
.MuiOption-highlighted
State class applied to the root element if the option is highlighted.
.MuiOption-variantOutlined
State class applied to the root element if variant="outlined".
.MuiOption-variantPlain
State class applied to the root element if variant="plain".
.MuiOption-variantSoft
State class applied to the root element if variant="soft".
.MuiOption-variantSolid
State class applied to the root element if variant="solid".
Have any feedback about this new API display design?
We've heard from you and iterated on making the design of API content documentation more scalable and easier to parse! We value your input, so please don't hesitate to share any additional feedback you may have.