This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from Tripwire/fix/large-card
fix(LargeCard): document Gutter
- Loading branch information
Showing
3 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
src/components/native/LargeCard/LargeCardGutter.examples.md
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,16 @@ | ||
#### Large Card Gutters | ||
|
||
```js | ||
<div style={{height: '150px'}}> | ||
<LargeCard showCard> | ||
{/* preferred - use a constant */} | ||
<LargeCard.Gutter color={LargeCard.Gutter.STATE_COLOR_MAP.CRITICAL} /> | ||
<LargeCard.Gutter color={LargeCard.Gutter.STATE_COLOR_MAP.WARNING} /> | ||
<LargeCard.Gutter color={LargeCard.Gutter.STATE_COLOR_MAP.NORMAL} /> | ||
{/* not preferred - avoid picking your own colors */} | ||
<LargeCard.Gutter color='salmon' /> | ||
<LargeCard.Gutter color='#efefef' /> | ||
<LargeCard.Gutter color='#abc' /> | ||
</LargeCard> | ||
</div> | ||
``` |
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