-
Notifications
You must be signed in to change notification settings - Fork 24
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 #1624 from dequelabs/release-v6.5.0
chore(cauldron): Release 6.5.0
- Loading branch information
Showing
78 changed files
with
2,604 additions
and
892 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,69 @@ | ||
--- | ||
title: Badge | ||
description: Badge is a container component intended to present content with an optional leading icon with a text label. | ||
source: https://github.com/dequelabs/cauldron/tree/develop/packages/react/src/components/Badge/index.tsx | ||
--- | ||
|
||
import { Badge, BadgeLabel, Icon } from '@deque/cauldron-react'; | ||
|
||
```js | ||
import { Badge, BadgeLabel, Icon } from '@deque/cauldron-react'; | ||
``` | ||
|
||
## Example | ||
|
||
### Default | ||
|
||
```jsx example | ||
<Badge>Value</Badge> | ||
``` | ||
|
||
### Badge with Label | ||
|
||
```jsx example | ||
<Badge> | ||
<BadgeLabel>Label:</BadgeLabel> | ||
value | ||
</Badge> | ||
``` | ||
|
||
### Small size | ||
|
||
```jsx example | ||
<Badge size="small"> | ||
<BadgeLabel>Label:</BadgeLabel> | ||
value | ||
</Badge> | ||
``` | ||
|
||
### Badge with icon | ||
|
||
```jsx example | ||
<Badge> | ||
<Icon type="chevron-double-up" /> | ||
<BadgeLabel>Label:</BadgeLabel> | ||
value | ||
</Badge> | ||
``` | ||
|
||
## Props | ||
|
||
### Badge | ||
|
||
<ComponentProps | ||
children={true} | ||
className={true} | ||
refType="HTMLDivElement" | ||
props={[ | ||
{ | ||
name: 'size', | ||
type: ['default', 'small'], | ||
defaultValue: 'default', | ||
description: 'Visual style of the tag.' | ||
} | ||
]} | ||
/> | ||
|
||
### BadgeLabel | ||
|
||
<ComponentProps children={true} className={true} refType="HTMLDivElement" /> |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
title: ImpactBadge | ||
description: The ImpactBadge is an extension of the Badge component is designed to indicate the type of impact | ||
source: https://github.com/dequelabs/cauldron/tree/develop/packages/react/src/components/ImpactBadge/index.tsx | ||
--- | ||
|
||
import { ImpactBadge } from '@deque/cauldron-react'; | ||
|
||
```js | ||
import { ImpactBadge } from '@deque/cauldron-react'; | ||
``` | ||
|
||
## Example | ||
|
||
### Critical | ||
|
||
```jsx example | ||
<ImpactBadge type="critical" /> | ||
``` | ||
|
||
### Serious | ||
|
||
```jsx example | ||
<ImpactBadge type="serious" /> | ||
``` | ||
|
||
### Moderate | ||
|
||
```jsx example | ||
<ImpactBadge type="moderate" /> | ||
``` | ||
|
||
### Minor | ||
|
||
```jsx example | ||
<ImpactBadge type="minor" /> | ||
``` | ||
|
||
### Small size | ||
```jsx example | ||
<ImpactBadge type="minor" size="small" /> | ||
``` | ||
|
||
## Props | ||
|
||
### ImpactBadge | ||
|
||
<ComponentProps | ||
className={true} | ||
refType="HTMLDivElement" | ||
props={[ | ||
{ | ||
name: 'type', | ||
type: ['critical', 'serious', 'moderate', 'minor'], | ||
description: 'Variant of impact level', | ||
required: true | ||
}, | ||
{ | ||
name: 'size', | ||
type: ['default', 'small'], | ||
defaultValue: 'default', | ||
description: 'Visual style of the tag.' | ||
}, | ||
{ | ||
name: 'label', | ||
type: 'ContentNode', | ||
required: false, | ||
description: 'Label for the ImpactBadge element.' | ||
}, | ||
]} | ||
/> |
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
Oops, something went wrong.