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 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 SegmentGroupsExamples extends Component {
6+ render ( ) {
7+ return (
8+ < ExampleSection title = 'Groups' >
9+ < ComponentExample
10+ title = 'Segments'
11+ description = 'A group of segments can be formatted to appear together.'
12+ examplePath = 'elements/Segment/Groups/SegmentSegmentsExample'
13+ />
14+ < ComponentExample
15+ title = 'Nested Segments'
16+ description = 'A group of segments can be nested in another group of segments.'
17+ examplePath = 'elements/Segment/Groups/SegmentNestedSegmentsExample'
18+ />
19+ < ComponentExample
20+ title = 'Horizontal Segments'
21+ description = 'A segment group can appear horizontally.'
22+ examplePath = 'elements/Segment/Groups/SegmentHorizontalSegmentsExample'
23+ />
24+ < ComponentExample
25+ title = 'Raised Segments'
26+ description = 'A group of segments can be stacked.'
27+ examplePath = 'elements/Segment/Groups/SegmentRaisedSegmentsExample'
28+ />
29+ < ComponentExample
30+ title = 'Stacked Segments'
31+ description = 'A vertical segment formats content to be aligned as part of a vertical group.'
32+ examplePath = 'elements/Segment/Groups/SegmentStackedSegmentsExample'
33+ />
34+ < ComponentExample
35+ title = 'Piled Segments'
36+ description = 'A vertical segment formats content to be aligned as part of a vertical group.'
37+ examplePath = 'elements/Segment/Groups/SegmentPiledSegmentsExample'
38+ />
39+ </ ExampleSection >
40+ ) ;
41+ }
42+ }
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 SegmentPiledExample extends Component {
5+ render ( ) {
6+ return (
7+ < Segment className = 'piled' > Pellentesque habitant morbi tristique senectus.</ Segment >
8+ ) ;
9+ }
10+ }
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 SegmentRaisedExample extends Component {
5+ render ( ) {
6+ return < Segment > Pellentesque habitant morbi tristique senectus.</ Segment > ;
7+ }
8+ }
Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ import {Segment} from 'stardust';
33
44export default class SegmentSegmentExample extends Component {
55 render ( ) {
6- return (
7- < Segment >
8- This is a segment.
9- </ Segment >
10- ) ;
6+ return < Segment > Pellentesque habitant morbi tristique senectus.</ Segment > ;
117 }
128}
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 SegmentStackedExample extends Component {
5+ render ( ) {
6+ return < Segment className = 'stacked' > Pellentesque habitant morbi tristique senectus.</ Segment > ;
7+ }
8+ }
Original file line number Diff line number Diff line change 11import React , { Component } from 'react' ;
22import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' ;
33import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' ;
4+ import { Message } from 'stardust' ;
45
5- export default class ListVariationsExamples extends Component {
6+ export default class SegmentTypesExamples extends Component {
67 render ( ) {
78 return (
89 < ExampleSection title = 'Types' >
910 < ComponentExample
1011 title = 'Segment'
11- description = 'A segment of content'
12+ description = 'A segment of content. '
1213 examplePath = 'elements/Segment/Types/SegmentSegmentExample'
1314 />
15+ < ComponentExample
16+ title = 'Raised'
17+ description = 'A segment may be formatted to raise above the page.'
18+ examplePath = 'elements/Segment/Types/SegmentRaisedExample'
19+ />
20+ < ComponentExample
21+ title = 'Stacked'
22+ description = 'A segment can be formatted to show it contains multiple pages.'
23+ examplePath = 'elements/Segment/Types/SegmentStackedExample'
24+ />
25+ < ComponentExample
26+ title = 'Piled'
27+ description = 'A segment can be formatted to look like a pile of pages.'
28+ examplePath = 'elements/Segment/Types/SegmentPiledExample'
29+ >
30+ < Message className = 'warning' >
31+ Piled segments use < b > negative z-index</ b > to format the additional pages below the segment.
32+ In order for them to appear correctly, your segment's offset container must have a z-index declared.
33+ </ Message >
34+ </ ComponentExample >
35+ < ComponentExample
36+ title = 'Vertical Segment'
37+ description = 'A vertical segment formats content to be aligned as part of a vertical group.'
38+ examplePath = 'elements/Segment/Types/SegmentVerticalSegmentExample'
39+ />
1440 </ ExampleSection >
1541 ) ;
1642 }
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 SegmentVerticalExample extends Component {
5+ render ( ) {
6+ return (
7+ < Segment >
8+ < Segment className = 'vertical' > Te eum doming eirmod, nominati pertinacia argumentum ad his.</ Segment >
9+ < Segment className = 'vertical' > Pellentesque habitant morbi tristique senectus.</ Segment >
10+ < Segment className = 'vertical' > Eu quo homero blandit intellegebat. Incorrupte consequuntur mei id.</ Segment >
11+ </ Segment >
12+ ) ;
13+ }
14+ }
You can’t perform that action at this time.
0 commit comments