Skip to content

Commit 66120db

Browse files
author
Josh Habdas
committed
Segment variation complex attach example
1 parent 216390b commit 66120db

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import React, {Component} from 'react';
2+
import {Header, Message, Segment, Segments} from 'stardust';
3+
4+
export default class SegmentAttachedComplexExample extends Component {
5+
render() {
6+
return (
7+
<Segments>
8+
<Header.H5 className='attached'>
9+
Dogs
10+
</Header.H5>
11+
<Segment className='attached segment'>
12+
Dogs are one type of animal
13+
</Segment>
14+
<Header.H5 className='attached header'>
15+
Cats
16+
</Header.H5>
17+
<Segment className='attached segment'>
18+
Cats are thought of as being related to dogs, but only humans think this.
19+
</Segment>
20+
<Header.H5 className='attached header'>
21+
Lions
22+
</Header.H5>
23+
<Segment className='attached segment'>
24+
Humans don't think of lions as being like cats, but they are.
25+
</Segment>
26+
<Message className='bottom attached warning'>
27+
<i className='warning icon'></i>
28+
You've reached the end of this content segment!
29+
</Message>
30+
</Segments>
31+
);
32+
}
33+
}

docs/app/Examples/elements/Segment/Variations/SegmentVariationsExamples.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export default class SegmentVariationsExamples extends Component {
2222
the <a href='#Header-Variations-HeaderAttachedExample'>attached header</a> or <i>attached messages</i>.
2323
</Message>
2424
</ComponentExample>
25+
<ComponentExample
26+
title='Attached Complex'
27+
description='A segment can be attached in complex ways.'
28+
examplePath='elements/Segment/Variations/SegmentAttachedComplexExample'
29+
/>
2530
</ExampleSection>
2631
);
2732
}

0 commit comments

Comments
 (0)