File tree Expand file tree Collapse file tree
docs/app/Examples/elements/Segment Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { Component } from 'react' ;
22import SegmentTypesExamples from './Types/SegmentTypesExamples' ;
33import SegmentGroupsExamples from './Groups/SegmentGroupsExamples' ;
4- // import SegmentStatesExamples from './Types /SegmentStatesExamples';
4+ import SegmentStatesExamples from './States /SegmentStatesExamples' ;
55// import SegmentVariationsExamples from './Variations/SegmentVariationsExamples';
66
77export default class SegmentExamples extends Component {
@@ -10,7 +10,7 @@ export default class SegmentExamples extends Component {
1010 < div >
1111 < SegmentTypesExamples />
1212 < SegmentGroupsExamples />
13-
13+ < SegmentStatesExamples />
1414 </ div >
1515 ) ;
1616 }
Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import { Segment } from 'stardust' ;
3+
4+ export default class SegmentDisabledExample extends Component {
5+ render ( ) {
6+ return (
7+ < Segment className = 'disabled' >
8+ Disabled content
9+ </ Segment >
10+ ) ;
11+ }
12+ }
Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import { Segment } from 'stardust' ;
3+
4+ export default class SegmentLoadingExample extends Component {
5+ render ( ) {
6+ return (
7+ < Segment className = 'loading' >
8+ Pellentesque habitant morbi tristique senectus.
9+ </ Segment >
10+ ) ;
11+ }
12+ }
Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' ;
3+ import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' ;
4+
5+ export default class SegmentStatesExamples extends Component {
6+ render ( ) {
7+ return (
8+ < ExampleSection title = 'States' >
9+ < ComponentExample
10+ title = 'Disabled'
11+ description = 'A segment may show its content is disabled.'
12+ examplePath = 'elements/Segment/States/SegmentDisabledExample'
13+ />
14+ < ComponentExample
15+ title = 'Loading'
16+ description = 'A segment may show its content is being loaded.'
17+ examplePath = 'elements/Segment/States/SegmentLoadingExample'
18+ />
19+ </ ExampleSection >
20+ ) ;
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments