Skip to content
ExpansionPanelSummary

ExpansionPanelSummary API

The API documentation of the ExpansionPanelSummary React component. Learn more about the properties and the CSS customization points.

import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';

Props

Name Type Default Description
children node The content of the expansion panel summary.
classes object Override or extend the styles applied to the component. See CSS API below for more details.
expandIcon node The icon to display as the expand indicator.
IconButtonProps object Properties applied to the IconButton element wrapping the expand icon.

The ref is forwarded to the root element.

Any other properties supplied will be provided to the root element (ButtonBase).

CSS

You can override all the class names injected by Material-UI thanks to the classes property. This property accepts the following keys:

Name Description
root Styles applied to the root element.
expanded Styles applied to the root element, children wrapper element and IconButton component if expanded={true}.
focused Styles applied to the root and children wrapper elements when focused.
disabled Styles applied to the root element if disabled={true}.
content Styles applied to the children wrapper element.
expandIcon Styles applied to the IconButton component when expandIcon is supplied.

Have a look at the overriding styles with classes section and the implementation of the component for more detail.

If using the overrides key of the theme, you need to use the following style sheet name: MuiExpansionPanelSummary.

Inheritance

The properties of the ButtonBase component are also available. You can take advantage of this behavior to target nested components.

Notes

The component can cause issues in StrictMode.

Demos