-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3997eb
commit fbdbe33
Showing
10 changed files
with
140 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
docs/src/app/components/pages/components/Slider/ExampleDisabled.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import Slider from 'material-ui/lib/slider'; | ||
|
||
const SliderExampleDisabled = () => ( | ||
<div> | ||
<Slider name="slider1" disabled={true} /> | ||
<Slider name="slider2" disabled={true} value={0.5} /> | ||
<Slider name="slider3" disabled={true} value={1} /> | ||
</div> | ||
); | ||
|
||
export default SliderExampleDisabled; |
12 changes: 12 additions & 0 deletions
12
docs/src/app/components/pages/components/Slider/ExampleSimple.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import Slider from 'material-ui/lib/slider'; | ||
|
||
const SliderExampleSimple = () => ( | ||
<div> | ||
<Slider name="slider1" /> | ||
<Slider name="slider2" defaultValue={0.5} /> | ||
<Slider name="slider3" defaultValue={1}/> | ||
</div> | ||
); | ||
|
||
export default SliderExampleSimple; |
8 changes: 8 additions & 0 deletions
8
docs/src/app/components/pages/components/Slider/ExampleStep.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react'; | ||
import Slider from 'material-ui/lib/slider'; | ||
|
||
const SliderExampleStep = () => ( | ||
<Slider name="slider1" step={0.10} value={.5}/> | ||
); | ||
|
||
export default SliderExampleStep; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import CodeExample from '../../../CodeExample'; | ||
import PropTypeDescription from '../../../PropTypeDescription'; | ||
import MarkdownElement from '../../../MarkdownElement'; | ||
|
||
import sliderReadmeText from './README'; | ||
import sliderCode from '!raw!material-ui/lib/slider'; | ||
import SliderExampleSimple from './ExampleSimple'; | ||
import sliderExampleSimpleCode from '!raw!./ExampleSimple'; | ||
import SliderExampleDisabled from './ExampleDisabled'; | ||
import sliderExampleDisabledCode from '!raw!./ExampleDisabled'; | ||
import SliderExampleStep from './ExampleStep'; | ||
import sliderExampleStepCode from '!raw!./ExampleStep'; | ||
|
||
const SliderPage = () => ( | ||
<div> | ||
<MarkdownElement text={sliderReadmeText} /> | ||
<CodeExample code={sliderExampleSimpleCode}> | ||
<SliderExampleSimple /> | ||
</CodeExample> | ||
<CodeExample code={sliderExampleDisabledCode}> | ||
<SliderExampleDisabled /> | ||
</CodeExample> | ||
<CodeExample code={sliderExampleStepCode}> | ||
<SliderExampleStep /> | ||
</CodeExample> | ||
<PropTypeDescription code={sliderCode}/> | ||
</div> | ||
); | ||
|
||
export default SliderPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Slider | ||
A [slider](https://www.google.com/design/spec/components/sliders.html) | ||
is an interface for users to input a value in a range. Sliders can be continuous | ||
or discrete and can be enabled or disabled. | ||
### Examples |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters