March 2019
Intermediate to advanced
534 pages
14h 52m
English
Let's say that you want the text within your ExpansionPanel headers to stand out relative to the text in the content section of each panel. You can change the variant property of the Typography component in the ExpansionPanelSummary component. Here's the code to do it:
import React, { Fragment } from 'react';import ExpansionPanel from '@material-ui/core/ExpansionPanel';import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';import Typography from '@material-ui/core/Typography';import ExpandMoreIcon from '@material-ui/icons/ExpandMore';const FormattingPanelHeaders = () => ( <Fragment> <ExpansionPanel> <ExpansionPanelSummary expandIcon={<ExpandMoreIcon ...Read now
Unlock full access