Skip to content

Commit ca75209

Browse files
committed
add divider examples
1 parent 2207e56 commit ca75209

11 files changed

Lines changed: 193 additions & 0 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React, {Component} from 'react';
2+
import DividerTypesExamples from './Types/DividerTypesExamples';
3+
import DividerVariationsExamples from './Variations/DividerVariationsExamples';
4+
5+
export default class ButtonExamples extends Component {
6+
render() {
7+
return (
8+
<div>
9+
<DividerTypesExamples />
10+
<DividerVariationsExamples />
11+
</div>
12+
);
13+
}
14+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React, {Component} from 'react';
2+
import {Divider} from 'stardust';
3+
4+
export default class DividerDividerExample extends Component {
5+
render() {
6+
return (
7+
<Divider />
8+
);
9+
}
10+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React, {Component} from 'react';
2+
import {Segment, Button, Divider} from 'stardust';
3+
4+
export default class DividerHorizontalExample extends Component {
5+
render() {
6+
return (
7+
<Segment className='padded'>
8+
<Button className='primary fluid'>Login</Button>
9+
<Divider className='large horizontal'>Or</Divider>
10+
<Button className='secondary fluid'>Sign Up Now</Button>
11+
</Segment>
12+
);
13+
}
14+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 DividerTypesExamples extends Component {
6+
render() {
7+
return (
8+
<ExampleSection title='Types'>
9+
<ComponentExample
10+
title='Divider'
11+
description='A standard divider'
12+
examplePath='elements/Divider/Types/DividerDividerExample'
13+
/>
14+
<ComponentExample
15+
title='Vertical Divider'
16+
description='A divider can segement content vertically'
17+
examplePath='elements/Divider/Types/DividerVerticalExample'
18+
/>
19+
<ComponentExample
20+
title='Horizontal Divider'
21+
description='A divider can segement content horizontally'
22+
examplePath='elements/Divider/Types/DividerHorizontalExample'
23+
/>
24+
</ExampleSection>
25+
);
26+
}
27+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React, {Component} from 'react';
2+
import {Button, Divider} from 'stardust';
3+
4+
export default class DividerVerticalExample extends Component {
5+
render() {
6+
return (
7+
<div className='ui three column grid'>
8+
<div className='column'>
9+
<Button className='primary'>Button Left</Button>
10+
</div>
11+
<Divider className='vertical' />
12+
<div className='column'>
13+
<Button className='primary'>Button Middle</Button>
14+
</div>
15+
<Divider className='vertical' />
16+
<div className='column'>
17+
<Button className='primary'>Button Right</Button>
18+
</div>
19+
</div>
20+
);
21+
}
22+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React, {Component} from 'react';
2+
import {Segment, Button, Divider} from 'stardust';
3+
4+
export default class DividerClearingExample extends Component {
5+
render() {
6+
return (
7+
<Segment>
8+
<Button className='right floated'>Floated Button</Button>
9+
<Divider className='clearing' />
10+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore...
11+
</Segment>
12+
);
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React, {Component} from 'react';
2+
import {Segment, Divider} from 'stardust';
3+
4+
export default class DividerFittedExample extends Component {
5+
render() {
6+
return (
7+
<Segment>
8+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore...
9+
<Divider className='fitted' />
10+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore...
11+
</Segment>
12+
);
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React, {Component} from 'react';
2+
import {Segment, Divider} from 'stardust';
3+
4+
export default class DividerHiddenExample extends Component {
5+
render() {
6+
return (
7+
<Segment>
8+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore...
9+
<Divider className='hidden' />
10+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore...
11+
</Segment>
12+
);
13+
}
14+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React, {Component} from 'react';
2+
import {Segment, Divider} from 'stardust';
3+
4+
export default class DividerInvertedExample extends Component {
5+
render() {
6+
return (
7+
<Segment className='inverted'>
8+
<Divider className='inverted' />
9+
<Divider className='horizontal inverted'>Horizontal</Divider>
10+
</Segment>
11+
);
12+
}
13+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React, {Component} from 'react';
2+
import {Segment, Divider} from 'stardust';
3+
4+
export default class DividerSectionExample extends Component {
5+
render() {
6+
return (
7+
<Segment>
8+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore...
9+
<Divider className='section' />
10+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore...
11+
</Segment>
12+
);
13+
}
14+
}

0 commit comments

Comments
 (0)