-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(Segment): add `size` prop * feat(Segment): Add docs
- Loading branch information
1 parent
25fd1e7
commit 531b800
Showing
7 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
docs/app/Examples/elements/Segment/Variations/SegmentGroupSizesExample.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react' | ||
import { Segment } from 'stardust' | ||
|
||
const SegmentGroupSizesExample = () => { | ||
const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive'] | ||
|
||
return ( | ||
<div> | ||
{sizes.map(size => ( | ||
<Segment.Group key={size} size={size}> | ||
<Segment> | ||
It's a {size} segment | ||
</Segment> | ||
<Segment> | ||
And it's a {size} segment, too | ||
</Segment> | ||
</Segment.Group> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default SegmentGroupSizesExample |
18 changes: 18 additions & 0 deletions
18
docs/app/Examples/elements/Segment/Variations/SegmentSizesExample.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react' | ||
import { Segment } from 'stardust' | ||
|
||
const SegmentSizesExample = () => { | ||
const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive'] | ||
|
||
return ( | ||
<div> | ||
{sizes.map(size => ( | ||
<Segment key={size} size={size}> | ||
It's a {size} segment | ||
</Segment> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default SegmentSizesExample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters