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
8804b7f
commit 739022d
Showing
6 changed files
with
83 additions
and
24 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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
"menuSections": [ | ||
"Themes", | ||
"Assets", | ||
"Core", | ||
"Design System", | ||
"Calendar", | ||
"Components", | ||
"Global", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# Core | ||
# Design System |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,66 @@ | ||
--- | ||
name: Badge | ||
menu: Core | ||
menu: Design System | ||
route: /core/badge | ||
--- | ||
|
||
# Badge | ||
|
||
Default size count and labeling component | ||
Small count and labeling component. | ||
|
||
## Usage: | ||
|
||
``` | ||
import { Badge } from '@heathmont/moon-core'; | ||
``` | ||
|
||
```jsx react-live | ||
<Badge color="bulma.100" backgroundColor="dodoria.100"> | ||
Active | ||
</Badge> | ||
<Badge>Active</Badge> | ||
``` | ||
|
||
## Customize colours | ||
|
||
You coud simply use `color` and `backgroundColor` props | ||
You could use `color` and `backgroundColor` props. | ||
|
||
Default colours are: | ||
|
||
``` | ||
color="goten.100" | ||
backgroundColor="piccolo.100" | ||
``` | ||
|
||
```jsx react-live | ||
<Inline> | ||
<Badge color="bulma.100" backgroundColor="piccolo.100"> | ||
<Badge color="goten.100" backgroundColor="piccolo.100"> | ||
Active | ||
</Badge> | ||
<Badge color="krillin.100" backgroundColor="gohan.100"> | ||
Active | ||
</Badge> | ||
<Badge color="bulma.100" backgroundColor="dodoria.100"> | ||
<Badge color="goten.100" backgroundColor="dodoria.100"> | ||
Active | ||
</Badge> | ||
</Inline> | ||
``` | ||
|
||
## Customize size | ||
|
||
You coud simply use `size` prop. By default size is xSmall. You can change it to Small. | ||
You could use `size` prop. | ||
|
||
By default size is `default`. | ||
|
||
Possible sizes are `small` and `default`. | ||
|
||
``` | ||
size= "small" | "default" | ||
``` | ||
|
||
```jsx react-live | ||
<Inline> | ||
<Badge backgroundColor="piccolo.100">xSmall size</Badge> | ||
<Badge backgroundColor="piccolo.100" size="small"> | ||
small size | ||
</Badge> | ||
<Badge size="small">Small</Badge> | ||
<Badge size="default">Default</Badge> | ||
<Badge>Default</Badge> | ||
</Inline> | ||
``` |