forked from facebook/create-react-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66200a6
commit 36af9c9
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
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,42 @@ | ||
import { Badge, InfoBadge } from './'; | ||
import { Preview, ComponentDocs } from './../'; | ||
|
||
# Badge | ||
|
||
Badges are used to indicate status of an object. It's meant to be used inline to highlight important information. | ||
|
||
## Variants | ||
|
||
### Default | ||
|
||
<Preview> | ||
<Badge>Badge</Badge> | ||
</Preview> | ||
|
||
### Colored badges | ||
|
||
<Preview> | ||
<Badge>Badge</Badge> | ||
<Badge color="accent">Accent</Badge><br /> | ||
<Badge color="success">Success</Badge><br /> | ||
<Badge color="error">Error</Badge><br /> | ||
<Badge color="info">Info</Badge><br /> | ||
</Preview> | ||
|
||
### InfoBadge | ||
|
||
<Preview> | ||
<InfoBadge value="ready" /><br /> | ||
<InfoBadge value="wip" /><br /> | ||
<InfoBadge value="deprecated" /><br /> | ||
<InfoBadge value="draft" /><br /> | ||
<InfoBadge value="custom" /><br /> | ||
<InfoBadge value="universal" /><br /> | ||
<InfoBadge value="react" /><br /> | ||
<InfoBadge value="html" /><br /> | ||
</Preview> | ||
|
||
## Props | ||
|
||
<ComponentDocs title="<Badge />" component={Badge} /> | ||
<ComponentDocs title="<InfoBadge />" component={InfoBadge} /> |
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