[RFC][material-ui][Alert] Revise action
, icon
, and iconMappings
props
#40680
Labels
component: alert
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
RFC
Request For Comments
Milestone
What's the problem?
The
action
,icon
, andiconMappings
props could use a revision:icon
is to the left andaction
to the righticonMapping
might be better handled via slotsWhat are the requirements?
Revise the API, comparing with the rest of components, and deciding whether it's still the best option or if it needs an update.
What are our options?
Proposed solution
Implement something similar to Joy UI: deprecate and eventually remove
action
andicon
in favor ofstartDecorator
andendDecorator
, each with a corresponding slot like Joy UI. The slots receive theownerState
so they can be used to replaceiconMappings
.Resources and benchmarks
Search keywords:
The text was updated successfully, but these errors were encountered: