Skip to content

Commit

Permalink
Added link to Dividers spec on Dividers page and performance improvem…
Browse files Browse the repository at this point in the history
…ents on DividerExampleForm
  • Loading branch information
newoga committed Dec 11, 2015
1 parent c4d907b commit dc3d90c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
39 changes: 18 additions & 21 deletions docs/src/app/components/Divider/ExampleForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,25 @@ import Divider from 'material-ui/lib/divider';
import Paper from 'material-ui/lib/paper';
import TextField from 'material-ui/lib/text-field';

const DividerExampleForm = () => {

const underlineStyle = {
display: 'none',
};

const style = {
marginLeft: 20,
};
const underlineStyle = {
display: 'none',
};

return (
<Paper zDepth={2}>
<TextField hintText="First name" underlineStyle={underlineStyle} style={style} />
<Divider />
<TextField hintText="Middle name" underlineStyle={underlineStyle} style={style} />
<Divider />
<TextField hintText="Last name" underlineStyle={underlineStyle} style={style} />
<Divider />
<TextField hintText="Email address" underlineStyle={underlineStyle} style={style} />
<Divider />
</Paper>
);
const style = {
marginLeft: 20,
};

const DividerExampleForm = () => (
<Paper zDepth={2}>
<TextField hintText="First name" underlineStyle={underlineStyle} style={style} />
<Divider />
<TextField hintText="Middle name" underlineStyle={underlineStyle} style={style} />
<Divider />
<TextField hintText="Last name" underlineStyle={underlineStyle} style={style} />
<Divider />
<TextField hintText="Email address" underlineStyle={underlineStyle} style={style} />
<Divider />
</Paper>
);

export default DividerExampleForm;
2 changes: 1 addition & 1 deletion docs/src/app/components/Divider/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Divider

Dividers group and separate content within lists and page layouts. The divider is a thin rule, lightweight yet sufficient to distinguish content visually and spatially.
<a href="https://www.google.com/design/spec/components/dividers.html" target="_blank">Dividers</a> group and separate content within lists and page layouts. The divider is a thin rule, lightweight yet sufficient to distinguish content visually and spatially.

### Examples

0 comments on commit dc3d90c

Please sign in to comment.