Skip to content

Commit acaf3f6

Browse files
kyleturcolevithomason
authored andcommitted
add very relaxed example
1 parent 895bcf7 commit acaf3f6

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

docs/app/Examples/elements/List/Variations/ListVariationsExamples.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export default class ListVariationsExamples extends Component {
3636
description='A list can relax its padding to provide more negative space'
3737
examplePath='elements/List/Variations/ListRelaxedExample'
3838
/>
39+
<ComponentExample
40+
title='Very Relaxed'
41+
examplePath='elements/List/Variations/ListVeryRelaxedExample'
42+
/>
3943
<ComponentExample
4044
title='Divided'
4145
description='A list can show divisions between content'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React, {Component} from 'react';
2+
import {List, ListItem, Image} from 'stardust';
3+
import faker from 'faker';
4+
5+
export default class ListVeryRelaxedExample extends Component {
6+
render() {
7+
const avatar1 = <Image className='avatar' src={faker.internet.avatar()} />;
8+
const avatar2 = <Image className='avatar' src={faker.internet.avatar()} />;
9+
const avatar3 = <Image className='avatar' src={faker.internet.avatar()} />;
10+
11+
return (
12+
<List className='very relaxed'>
13+
<ListItem image={avatar1} header='Helen' />
14+
<ListItem image={avatar2} header='Christian' />
15+
<ListItem image={avatar3} header='Daniel' />
16+
</List>
17+
);
18+
}
19+
}

0 commit comments

Comments
 (0)