Breadcrumb
A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy.
When To Use#
- When the system has more than two layers in a hierarchy.
- When you need to inform the user of where they are.
- When the user may need to navigate back to a higher level.
- When the application has multi-layer architecture.
Examples#
Basic#
handle onClick#
Overflow#
API#
| Property | Description | Type | Default |
|---|---|---|---|
items | Breadcrumb configuration | Breadcrumb | [] |
Breadcrumb item#
| Property | Description | Type | Default |
|---|---|---|---|
key | key | string | |
name | display name | ReactNode | |
onClick | set the handler to handle click event | (event: MouseEvent) => void |