Skip to content

Instantly share code, notes, and snippets.

@mattdaisley
Last active January 17, 2019 02:13
Show Gist options
  • Save mattdaisley/45f730a022362a00729b716bb844331b to your computer and use it in GitHub Desktop.
Save mattdaisley/45f730a022362a00729b716bb844331b to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import ExpansionPanelDetails from 'ui/core/ExpansionPanel/ExpansionPanelDetails/ExpansionPanelDetails';
import ExpansionPanelSummary from 'ui/core/ExpansionPanel/ExpansionPanelSummary/ExpansionPanelSummary';
import ExpansionPanel from 'ui/core/ExpansionPanel/ExpansionPanel';
export default class SimpleExpansionPanelDemo extends Component {
render() {
return (
<React.Fragment>
<ExpansionPanel defaultOpen={true}>
<ExpansionPanelSummary>Expansion Panel 1</ExpansionPanelSummary>
<ExpansionPanelDetails>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex,
sit amet blandit leo lobortis eget.
</ExpansionPanelDetails>
</ExpansionPanel>
<ExpansionPanel>
<ExpansionPanelSummary>Expansion Panel 2</ExpansionPanelSummary>
<ExpansionPanelDetails>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex,
sit amet blandit leo lobortis eget.
</ExpansionPanelDetails>
</ExpansionPanel>
</React.Fragment>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment