-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react): fix Breadcrumb separator using incorrect type; update to …
…v2 documentation (#983)
- Loading branch information
Showing
4 changed files
with
85 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
title: Breadcrumb | ||
description: The Breadcrumb component displays a list of links within a hierarchy and allows navigation back through them. | ||
source: https://github.com/dequelabs/cauldron/tree/develop/packages/react/src/components/Breadcrumb/Breadcrumb.tsx | ||
--- | ||
|
||
import { Icon, Breadcrumb, BreadcrumbLink, BreadcrumbItem } from '@deque/cauldron-react' | ||
|
||
```js | ||
import { | ||
Breadcrumb, | ||
BreadcrumbLink, | ||
BreadcrumbItem | ||
} from '@deque/cauldron-react' | ||
``` | ||
|
||
## Examples | ||
|
||
### Basic | ||
|
||
```jsx example | ||
<Breadcrumb aria-label="Breadcrumb"> | ||
<BreadcrumbLink href="/one">One</BreadcrumbLink> | ||
<BreadcrumbLink href="/two">Two</BreadcrumbLink> | ||
<BreadcrumbLink href="/three">Three</BreadcrumbLink> | ||
<BreadcrumbItem>Four</BreadcrumbItem> | ||
</Breadcrumb> | ||
``` | ||
|
||
### Custom Separators | ||
|
||
```jsx example | ||
<Breadcrumb aria-label="Breadcrumb" separator={<Icon type="chevron-double-right" />}> | ||
<BreadcrumbLink href="#">One</BreadcrumbLink> | ||
<BreadcrumbLink href="#">Two</BreadcrumbLink> | ||
<BreadcrumbLink href="#">Three</BreadcrumbLink> | ||
<BreadcrumbItem>Four</BreadcrumbItem> | ||
</Breadcrumb> | ||
``` | ||
|
||
## Props | ||
|
||
### Breadcrumb | ||
|
||
<ComponentProps | ||
children={true} | ||
refType="HTMLElement" | ||
props={[ | ||
{ | ||
name: 'separator', | ||
type: 'React.ReactNode', | ||
defaultValue: "'/'" | ||
} | ||
]} | ||
/> | ||
|
||
### BreadcrumbLink | ||
|
||
<ComponentProps | ||
children={true} | ||
refType="HTMLLinkElement" | ||
/> | ||
|
||
### BreadcrumbItem | ||
|
||
<ComponentProps | ||
children={true} | ||
refType="HTMLSpanElement" | ||
/> |
This file was deleted.
Oops, something went wrong.
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