Deprecated This project is now obsolete, you should use the Expansion Panels added in Material-UI 1.0 instead.
A settings component in material ui style inspired by google admin console and google inbox. See the storybook for an interactive demo.
npm i --save material-ui-settings-panel
npm i --save react-onclickoutside
import {
ExpandablePanel,
HeaderPanel,
SettingsGroup,
SettingsItem,
SettingsPanel
} from 'material-ui-settings-panel'
// ...
render() {
return (
<div>
<SettingsPanel>
<HeaderPanel
title="Gmail"
subtitle="Für alle aktiviert"
description="https://mail.google.com/a/company.com"
image={<img src="https://ssl.gstatic.com/apps/cpanel/resources/img/gmail-128.png" />}
/>
<ExpandablePanel
title="Nutzer Einstellungen"
description="Sed diam nonumy eirmod tempor invidunt ut labore"
>
<SettingsGroup title="Lorem ipsum">
<SettingsItem title="Lorem ipsum" description="Description">
<div>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore
et dolore magna aliquyam erat, sed diam voluptua.
</div>
</SettingsItem>
<SettingsItem title="Lorem ipsum">
<div>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore
et dolore magna aliquyam erat, sed diam voluptua.
</div>
</SettingsItem>
</SettingsGroup>
</ExpandablePanel>
<ExpandablePanel
title="E-Mail-Adressen"
description="Lassen Sie sich alle E-Mail-Adressen und Aliase für Ihre Organisation anzeigen."
>
</ExpandablePanel>
</SettingsPanel>
</div>
)
}
Name | Type | Default | Description |
---|---|---|---|
style | object |
Override the inline-styles of the root component. |
Name | Type | Default | Description |
---|---|---|---|
description | string |
Description for the header. | |
image | node |
Image for the header. | |
imageStyle | object |
Override the inline-styles of the image container. | |
style | object |
Override the inline-styles of the root component. | |
subtitle | string |
Subtitle for the header. | |
textStyle | object |
Override the inline-styles of the text container. | |
title* | string |
Title for the header. |
Name | Type | Default | Description |
---|---|---|---|
description | string |
Description for the panel. | |
style | object |
Override the inline-styles of the root component. | |
textStyle | object |
Override the inline-styles of the text container. | |
title* | string |
Title for the panel. |
Name | Type | Default | Description |
---|---|---|---|
style | object |
Override the inline-styles of the root component. | |
title* | string |
Title for the group. |
Name | Type | Default | Description |
---|---|---|---|
description | string |
Description for the panel. | |
style | object |
Override the inline-styles of the root component. | |
title* | string |
Title for the panel. |
* required property
The files included in this repository are licensed under the MIT license.