Skip to content

Commit b250670

Browse files
committed
Merge pull request #103 from TechnologyAdvice/feature/divider-component
Feature/divider component
2 parents aa445e2 + e57d51f commit b250670

13 files changed

+231
-0
lines changed
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 DividerExamples 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 segment 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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import React, {Component} from 'react';
2+
import {Grid, Column, Segment, Divider} from 'stardust';
3+
4+
export default class DividerVerticalExample extends Component {
5+
render() {
6+
return (
7+
<Grid className='three column relaxed'>
8+
<Column>
9+
<Segment className='basic'>
10+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio.
11+
</Segment>
12+
</Column>
13+
<Divider className='vertical'>Or</Divider>
14+
<Column>
15+
<Segment className='basic'>
16+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio.
17+
</Segment>
18+
</Column>
19+
<Divider className='vertical'>And</Divider>
20+
<Column>
21+
<Segment className='basic'>
22+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio.
23+
</Segment>
24+
</Column>
25+
</Grid>
26+
);
27+
}
28+
}
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)