+
+
-
+
);
- },
-});
-
-export default DialogExampleModal;
+ }
+}
diff --git a/docs/src/app/components/pages/components/Dialog/ExampleSimple.jsx b/docs/src/app/components/pages/components/Dialog/ExampleSimple.jsx
index d3b35f779b045f..78b529c481769b 100644
--- a/docs/src/app/components/pages/components/Dialog/ExampleSimple.jsx
+++ b/docs/src/app/components/pages/components/Dialog/ExampleSimple.jsx
@@ -3,19 +3,21 @@ import Dialog from 'material-ui/lib/dialog';
import FlatButton from 'material-ui/lib/flat-button';
import RaisedButton from 'material-ui/lib/raised-button';
-const DialogExampleSimple = React.createClass({
+export default class DialogExampleSimple extends React.Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ open: false,
+ };
+ }
- getInitialState() {
- return {open: false};
- },
-
- handleOpen() {
+ handleOpen = () => {
this.setState({open: true});
- },
+ }
- handleClose() {
+ handleClose = () => {
this.setState({open: false});
- },
+ }
render() {
const actions = [
@@ -31,7 +33,8 @@ const DialogExampleSimple = React.createClass({
];
return (
-
+
+
-
+
);
- },
-});
-
-export default DialogExampleSimple;
+ }
+}
diff --git a/docs/src/app/components/pages/components/Dialog/Page.jsx b/docs/src/app/components/pages/components/Dialog/Page.jsx
index 4df50c48dd48b9..db21080e83dd02 100644
--- a/docs/src/app/components/pages/components/Dialog/Page.jsx
+++ b/docs/src/app/components/pages/components/Dialog/Page.jsx
@@ -2,6 +2,7 @@ import React from 'react';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
+
import dialogReadmeText from './README';
import DialogExampleSimple from './ExampleSimple';
import DialogExampleSimpleCode from '!raw!./ExampleSimple';
@@ -9,19 +10,17 @@ import DialogExampleModal from './ExampleModal';
import DialogExampleModalCode from '!raw!./ExampleModal';
import dialogCode from '!raw!material-ui/lib/dialog';
-export default class DialogPage extends React.Component {
- render() {
- return (
-
- );
- }
-}
+const DialogPage = () => (
+
+);
+
+export default DialogPage;
diff --git a/docs/src/app/components/pages/components/Dialog/README.md b/docs/src/app/components/pages/components/Dialog/README.md
index c06dbad31c4cf6..7a39c812bd094f 100644
--- a/docs/src/app/components/pages/components/Dialog/README.md
+++ b/docs/src/app/components/pages/components/Dialog/README.md
@@ -1,7 +1,8 @@
## Dialog
-For more information on the `Dialog` please visit the Material Design's
-specifications [here](https://www.google.com/design/spec/components/dialogs.html).
+[Dialogs](https://www.google.com/design/spec/components/dialogs.html) contain text
+and UI controls focused on a specific task. They inform users about critical information,
+require users to make decisions, or involve multiple tasks.
Dialog can only be a controlled component.
You must provide the open prop and handle `onRequestClose` in order to use this component.
diff --git a/docs/src/app/components/pages/components/Divider/Page.jsx b/docs/src/app/components/pages/components/Divider/Page.jsx
index b61f35d04dee49..eb3028213a674a 100644
--- a/docs/src/app/components/pages/components/Divider/Page.jsx
+++ b/docs/src/app/components/pages/components/Divider/Page.jsx
@@ -2,6 +2,7 @@ import React from 'react';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
+
import dividerReadmeText from './README';
import DividerExampleForm from './ExampleForm';
import dividerExampleFormCode from '!raw!./ExampleForm';
diff --git a/docs/src/app/components/pages/components/DropDownMenu/Page.jsx b/docs/src/app/components/pages/components/DropDownMenu/Page.jsx
index 0c4d714002d324..d74bca18cbefa1 100644
--- a/docs/src/app/components/pages/components/DropDownMenu/Page.jsx
+++ b/docs/src/app/components/pages/components/DropDownMenu/Page.jsx
@@ -2,6 +2,7 @@ import React from 'react';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
+
import dropDownMenuReadmeText from './README';
import DropDownMenuSimpleExample from './ExampleSimple';
import dropDownMenuSimpleExampleCode from '!raw!./ExampleSimple';
@@ -11,22 +12,20 @@ import DropDownMenuLabeledExample from './ExampleLabeled';
import dropDownMenuLabeledExampleCode from '!raw!./ExampleLabeled';
import dropDownMenuCode from '!raw!material-ui/lib/DropDownMenu/DropDownMenu';
-export default class LeftNavPage extends React.Component {
- render() {
- return (
-
- );
- }
-}
+const DropDownMenuPage = () => (
+
+);
+
+export default DropDownMenuPage;
diff --git a/docs/src/app/components/pages/components/LeftNav/Page.jsx b/docs/src/app/components/pages/components/LeftNav/Page.jsx
index fee9ff44ef0988..e93271870ab1e1 100644
--- a/docs/src/app/components/pages/components/LeftNav/Page.jsx
+++ b/docs/src/app/components/pages/components/LeftNav/Page.jsx
@@ -2,6 +2,7 @@ import React from 'react';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
+
import leftNavReadmeText from './README';
import LeftNavSimpleExample from './ExampleSimple';
import leftNavSimpleExampleCode from '!raw!./ExampleSimple';
@@ -11,22 +12,20 @@ import LeftNavOpenRightExample from './ExampleOpenRight';
import leftNavOpenRightExampleCode from '!raw!./ExampleOpenRight';
import leftNavCode from '!raw!material-ui/lib/left-nav';
-export default class LeftNavPage extends React.Component {
- render() {
- return (
-
- );
- }
-}
+const LeftNavPage = () => (
+
+);
+
+export default LeftNavPage;
diff --git a/docs/src/app/components/pages/components/LeftNav/README.md b/docs/src/app/components/pages/components/LeftNav/README.md
index 22f34efda8b096..7c5eae7e883368 100644
--- a/docs/src/app/components/pages/components/LeftNav/README.md
+++ b/docs/src/app/components/pages/components/LeftNav/README.md
@@ -1,7 +1,7 @@
## Left Nav
-To find out more about the `LeftNav` component please visit the Material Design's
-specifications [here](https://www.google.com/design/spec/patterns/navigation-drawer.html).
+The [Left Nav](https://www.google.com/design/spec/patterns/navigation-drawer.html) slides in from the left.
+It is a common pattern found in Google apps and follows the keylines and metrics for lists.
The API of `LeftNav` has been changed to be declarative and composable.
The methods `close()`, `open()` and `toggle()` have been deprecated.
diff --git a/docs/src/app/components/pages/components/Snackbar/Page.jsx b/docs/src/app/components/pages/components/Snackbar/Page.jsx
index d8f867b20142b6..343b45fa7b3786 100644
--- a/docs/src/app/components/pages/components/Snackbar/Page.jsx
+++ b/docs/src/app/components/pages/components/Snackbar/Page.jsx
@@ -2,6 +2,7 @@ import React from 'react';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
+
import SnackbarReadmeText from './README';
import SnackbarExampleSimple from './ExampleSimple';
import SnackbarExampleSimpleCode from '!raw!./ExampleSimple';
diff --git a/docs/src/app/components/pages/components/Tabs/Page.jsx b/docs/src/app/components/pages/components/Tabs/Page.jsx
index ef12302d19ad94..2920b27b5bba02 100644
--- a/docs/src/app/components/pages/components/Tabs/Page.jsx
+++ b/docs/src/app/components/pages/components/Tabs/Page.jsx
@@ -14,27 +14,25 @@ import tabsText from './Tabs';
import tabCode from '!raw!material-ui/lib/tabs/tab';
import tabText from './Tab';
-const TabsPage = () => {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-};
+const TabsPage = () => (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+);
export default TabsPage;
diff --git a/docs/src/app/components/pages/components/Toolbars/ExampleSimple.jsx b/docs/src/app/components/pages/components/Toolbars/ExampleSimple.jsx
index ea374856128197..98ec4d7b4c9516 100644
--- a/docs/src/app/components/pages/components/Toolbars/ExampleSimple.jsx
+++ b/docs/src/app/components/pages/components/Toolbars/ExampleSimple.jsx
@@ -11,38 +11,34 @@ import ToolbarGroup from 'material-ui/lib/toolbar/toolbar-group';
import ToolbarSeparator from 'material-ui/lib/toolbar/toolbar-separator';
import ToolbarTitle from 'material-ui/lib/toolbar/toolbar-title';
-const ToolbarsExamplesSimple = React.createClass({
- render() {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }>
-
-
-
-
-
-
-
- );
- },
-});
+const ToolbarsExamplesSimple = () => (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }>
+
+
+
+
+
+
+
+);
export default ToolbarsExamplesSimple;
diff --git a/docs/src/app/components/pages/components/Toolbars/Page.jsx b/docs/src/app/components/pages/components/Toolbars/Page.jsx
index 127accdd8a7ab5..9aebab76f05217 100644
--- a/docs/src/app/components/pages/components/Toolbars/Page.jsx
+++ b/docs/src/app/components/pages/components/Toolbars/Page.jsx
@@ -2,6 +2,7 @@ import React from 'react';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
+
import toolbarsReadmeText from './README';
import toolbarsExampleSimpleCode from '!raw!./ExampleSimple';
import ToolbarsExampleSimple from './ExampleSimple';
@@ -14,27 +15,25 @@ import toolbarSeparatorReadmeText from './ToolbarSeparator';
import toolbarTitleCode from '!raw!material-ui/toolbar/toolbar-title';
import toolbarTitleReadmeText from './ToolbarTitle';
-export default class ToolbarPage extends React.Component {
- render() {
- return (
-
- );
- }
-}
+const ToolbarPage = () => (
+
+);
+
+export default ToolbarPage;
diff --git a/docs/src/app/components/pages/components/Toolbars/README.md b/docs/src/app/components/pages/components/Toolbars/README.md
index 30316bb014b72c..30e633f3c119dc 100644
--- a/docs/src/app/components/pages/components/Toolbars/README.md
+++ b/docs/src/app/components/pages/components/Toolbars/README.md
@@ -1,6 +1,6 @@
## Toolbars
-Toolbars are collections of components stacked horizontally against each other.
+[Toolbars](https://www.google.com/design/spec/layout/structure.html#structure-toolbars) are collections of components stacked horizontally against each other.
Toolbars provide greater versatility than AppBars which are a subset of toolbars.
The following toolbar components can help organize your layout.