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 SegmentTypesExamples from './Types/SegmentTypesExamples' ;
3+ // import SegmentStatesExamples from './Types/SegmentStatesExamples';
4+ // import SegmentGroupsExamples from './Content/SegmentGroupsExamples';
5+ // import SegmentVariationsExamples from './Variations/SegmentVariationsExamples';
6+
7+ export default class SegmentExamples extends Component {
8+ render ( ) {
9+ return (
10+ < div >
11+ < SegmentTypesExamples />
12+
13+ </ div >
14+ ) ;
15+ }
16+ }
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 SegmentSegmentExample extends Component {
5+ render ( ) {
6+ return (
7+ < Segment >
8+ This is a segment.
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 ListVariationsExamples extends Component {
6+ render ( ) {
7+ return (
8+ < ExampleSection title = 'Types' >
9+ < ComponentExample
10+ title = 'Segment'
11+ description = 'A segment of content'
12+ examplePath = 'elements/Segment/Types/SegmentSegmentExample'
13+ />
14+ </ ExampleSection >
15+ ) ;
16+ }
17+ }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export default class Item extends Component {
1010 className : PropTypes . string ,
1111 contentClass : PropTypes . string ,
1212 description : customPropTypes . mutuallyExclusive ( [ 'children' ] ) ,
13- extra : PropTypes . node ,
13+ extra : PropTypes . node . isRequired ,
1414 header : PropTypes . node ,
1515 image : PropTypes . node ,
1616 meta : PropTypes . node ,
You can’t perform that action at this time.
0 commit comments