[Chip] Support non-avatared icon on Chip #12789
Labels
component: chip
This is the name of the generic UI component, not the React module!
design: material
This is about Material Design, please involve a visual or UX designer in the process
new feature
New feature or request
The Material Design spec allows us to put a simple icon which is not wrapped by an avatar component on Chips.
See https://material.io/design/components/chips.html#
But Chip of material-ui presupposes an Avatar as icon.
Expected Behavior
Support
<Chip avatar={<SvgIcon />} />
or add a new props like<Chip icon={<SvgIcon />}
.Current Behavior
<Chip avatar={<SvgIcon />} />
renders the icon too big.Examples
https://codesandbox.io/s/m5mkwyy19y?module=%2Fsrc%2Fpages%2Findex.js
The text was updated successfully, but these errors were encountered: