components/Breadcrumb
import { … } from 'zidane-ui'ui/src/components/Breadcrumb.tsx
Components#
BreadcrumbComponent#
Renders a file path as a row of crumbs. Each folder is a button that calls onFolder;
the last segment is the file name, emphasised, and calls onFile. A long path clips
from the left under a fade so the name stays visible. The full path is the tooltip.
function Breadcrumb(props: BreadcrumbProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | BreadcrumbProps | Component props. |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root element. |
| onFile | () => void | Called when the file name crumb is clicked. |
| onFolder | (dir: string) => void | Called with the folder path up to the clicked crumb ( |
| path | string | Slash-separated file path, for example |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. |
Interfaces#
BreadcrumbPropsInterface#
Props for Breadcrumb.
interface BreadcrumbPropsProperties
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root element. |
| onFile | () => void | Called when the file name crumb is clicked. |
| onFolder | (dir: string) => void | Called with the folder path up to the clicked crumb ( |
| path | string | Slash-separated file path, for example |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. |