Skip to content

Commit

Permalink
Update docs for new requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Jul 4, 2018
1 parent 919213b commit 2fa762f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/src/pages/lab/toggle-button/ToggleButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class ToggleButtons extends React.Component {
};

handleFormat = formats => this.setState({ formats });

handleAlignment = alignment => this.setState({ alignment });

render() {
Expand Down
7 changes: 5 additions & 2 deletions docs/src/pages/lab/toggle-button/toggle-button.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
---
title: Toggle Button React component
components: ToggleButton, ToggleButtonGroup
---

# Toggle Buttons

[Toggle buttons](https://material.io/guidelines/components/buttons.html#buttons-toggle-buttons) may be used to group related options. Arrange layout and spacing to convey that certain toggle buttons are part of a group.
<p class="description">Toggle buttons can be used to group related options.</p>

To emphasize groups of related [Toggle buttons](https://material.io/design/components/buttons.html#toggle-button),
a group should share a common container.

The `ToggleButtonGroup` will control the selected of its child buttons when
given its own `value` prop.

{{"demo": "pages/lab/toggle-button/ToggleButtons.js"}}

0 comments on commit 2fa762f

Please sign in to comment.