mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs(breadcrumb): improve docs
This commit is contained in:
parent
cc3b668c13
commit
dcd09e9996
1 changed files with 8 additions and 0 deletions
|
@ -14,6 +14,8 @@ components: ["Breadcrumb", "BreadcrumbItem"]
|
|||
|
||||
## Default
|
||||
|
||||
Display a hierarchical navigation trail with slashes between items. Mark the current page with `isCurrentPage`.
|
||||
|
||||
<Breadcrumb>
|
||||
<BreadcrumbItem href="/">Dashboard</BreadcrumbItem>
|
||||
<BreadcrumbItem href="/reports">Annual reports</BreadcrumbItem>
|
||||
|
@ -22,6 +24,8 @@ components: ["Breadcrumb", "BreadcrumbItem"]
|
|||
|
||||
## No trailing slash
|
||||
|
||||
Remove the trailing slash from the last breadcrumb item using `noTrailingSlash`.
|
||||
|
||||
<Breadcrumb noTrailingSlash>
|
||||
<BreadcrumbItem href="/">Home</BreadcrumbItem>
|
||||
<BreadcrumbItem href="/profile" isCurrentPage>Profile</BreadcrumbItem>
|
||||
|
@ -29,6 +33,8 @@ components: ["Breadcrumb", "BreadcrumbItem"]
|
|||
|
||||
## Overflow menu
|
||||
|
||||
Add an `OverflowMenu` to handle long breadcrumb trails. Use `OverflowMenuItem` components for menu options.
|
||||
|
||||
<Breadcrumb>
|
||||
<BreadcrumbItem href="/">Home</BreadcrumbItem>
|
||||
<BreadcrumbItem href="/api">API documentation</BreadcrumbItem>
|
||||
|
@ -47,4 +53,6 @@ components: ["Breadcrumb", "BreadcrumbItem"]
|
|||
|
||||
## Skeleton
|
||||
|
||||
Display a loading state with `skeleton` prop. Use `count` to specify the number of items.
|
||||
|
||||
<Breadcrumb noTrailingSlash skeleton count={3} />
|
Loading…
Add table
Add a link
Reference in a new issue