File tree Expand file tree Collapse file tree
docs/app/Examples/elements/List Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import ListTypesExamples from './Types/ListTypesExamples' ;
3+ // import InputStatesExamples from './States/InputStatesExamples';
4+ // import InputVariationsExamples from './Variations/InputVariationsExamples';
5+
6+ export default class ListExamples extends Component {
7+ render ( ) {
8+ return (
9+ < div >
10+ < ListTypesExamples />
11+ </ div >
12+ ) ;
13+ }
14+ }
Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import { List } from 'stardust' ;
3+
4+ export default class ListBulletedExample extends Component {
5+ render ( ) {
6+ return (
7+ < List className = 'bulleted' >
8+ < div className = 'item' > Apples</ div >
9+ < div className = 'item' > Pears</ div >
10+ < div className = 'item' > Oranges</ div >
11+ </ List >
12+ ) ;
13+ }
14+ }
Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import { List } from 'stardust' ;
3+
4+ export default class ListBulletedExample extends Component {
5+ render ( ) {
6+ return (
7+ < List className = 'link' >
8+ < div className = 'active item' > Home</ div >
9+ < a className = 'item' > About</ a >
10+ < a className = 'item' > Services</ a >
11+ < a className = 'item' > Careers</ a >
12+ </ List >
13+ ) ;
14+ }
15+ }
Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import { List } from 'stardust' ;
3+
4+ export default class ListListExample extends Component {
5+ render ( ) {
6+ return (
7+ < List >
8+ < div className = 'item' > Apples</ div >
9+ < div className = 'item' > Pears</ div >
10+ < div className = 'item' > Oranges</ div >
11+ </ List >
12+ ) ;
13+ }
14+ }
Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import { List } from 'stardust' ;
3+
4+ export default class ListBulletedExample extends Component {
5+ render ( ) {
6+ return (
7+ < List className = 'ordered' >
8+ < div className = 'item' > Apples</ div >
9+ < div >
10+ < List >
11+ < div className = 'item' > Fuji</ div >
12+ < div className = 'item' > Granny Smith</ div >
13+ < div className = 'item' > Honeycrisp</ div >
14+ </ List >
15+ </ div >
16+ < div className = 'item' > Pears</ div >
17+ < div className = 'item' > Oranges</ div >
18+ </ List >
19+ ) ;
20+ }
21+ }
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 ListTypesExamples extends Component {
6+ render ( ) {
7+ return (
8+ < ExampleSection title = 'Types' >
9+ < ComponentExample
10+ title = 'List'
11+ description = 'A list groups related content'
12+ examplePath = 'elements/List/Types/ListListExample'
13+ />
14+ < ComponentExample
15+ title = 'Bulleted'
16+ description = 'A list can mark items with a bullet'
17+ examplePath = 'elements/List/Types/ListBulletedExample'
18+ />
19+ < ComponentExample
20+ title = 'Ordered'
21+ description = 'A list can be ordered numerically'
22+ examplePath = 'elements/List/Types/ListOrderedExample'
23+ />
24+ < ComponentExample
25+ title = 'Link'
26+ description = 'A list can be specially formatted for navigation links'
27+ examplePath = 'elements/List/Types/ListLinkExample'
28+ />
29+ </ ExampleSection >
30+ ) ;
31+ }
32+ }
You can’t perform that action at this time.
0 commit comments