ExpansionPanelSummary

ExpansionPanelSummary

The API documentation of the ExpansionPanelSummary React component.

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 TouchRipple element wrapping the expand icon.

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

CSS API

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 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 overriding with classes section and the implementation of the component for more detail.

If using the overrides key of the theme as documented here, 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.

Demos