componente · @solu30/ui-kit/navigation
BreadcrumbsFromPath
El componente, montado
Cargando el componente del paquete instalado…
Cargando el chunk del paquete instalado…
De dónde se importa
import { BreadcrumbsFromPath } from '@solu30/ui-kit/navigation'Props
| Prop | Requerida | Tipo | Qué hace |
|---|---|---|---|
| pathname | sí | string | Current URL pathname (e.g. "/admin/projects/prj_tcp"). Typically from `usePathname()` in Next.js or `useLocation().pathname` in React Router. |
| routeLabels | opcional | Record<string, string> | Map of path segment → human-readable label. Segments not found here are title-cased automatically. |
| skipLeadingSegments | opcional | number | Number of leading segments to skip before showing breadcrumbs. Defaults to 1 (e.g. hides the root "/admin" segment). |
| renderLink | opcional | (href: string, label: string) => React__default.ReactNode | Render a link for non-terminal crumbs. Defaults to a plain `<a>` element. @param href - The full href for this crumb @param label - The display label |
| className | opcional | string | Additional class names for the nav element. |