Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/pages/api-docs/list-item-icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The `MuiListItemIcon` name can be used for providing [default props](/customizat

| Name | Type | Default | Description |
|:-----|:-----|:--------|:------------|
| <span class="prop-name required">children&nbsp;*</span> | <span class="prop-type">element</span> | | The content of the component, normally `Icon`, `SvgIcon`, or a `@material-ui/icons` SVG icon element. |
| <span class="prop-name">children</span> | <span class="prop-type">node</span> | | The content of the component, normally `Icon`, `SvgIcon`, or a `@material-ui/icons` SVG icon element. |
| <span class="prop-name">classes</span> | <span class="prop-type">object</span> | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. |

The `ref` is forwarded to the root element.
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/ListItemIcon/ListItemIcon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface ListItemIconProps
* The content of the component, normally `Icon`, `SvgIcon`,
* or a `@material-ui/icons` SVG icon element.
*/
children: React.ReactElement;
children?: React.ReactNode;
}

export type ListItemIconClassKey = 'root';
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/ListItemIcon/ListItemIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ListItemIcon.propTypes = {
* The content of the component, normally `Icon`, `SvgIcon`,
* or a `@material-ui/icons` SVG icon element.
*/
children: PropTypes.element.isRequired,
children: PropTypes.node,
/**
* Override or extend the styles applied to the component.
* See [CSS API](#css) below for more details.
Expand Down