Breadcrumbs
A Breadcrumbs component shows where the current page sits in a hierarchy and gives a way back up it. Each entry but the last is a link to an ancestor, which makes a deep section navigable without reaching for the browser's back button.
Rendered live, with the same build of the library you install.
Breadcrumbs.tsx
import { NBreadcrumbs } from '@nayan-ui/react';const items = [{ label: 'Home', href: '/' }, { label: 'React', href: '/react/components' }, { label: 'Breadcrumbs' }];const Breadcrumbs = () => {return (<div><NBreadcrumbs items={items} /></div>);};export default Breadcrumbs;
| Name | Type | Default | Details |
|---|---|---|---|
| items | NBreadcrumbItem[] | Required | The items prop. |
| separator | React.ReactNode | Optional | The separator prop. |
| disabled | boolean | false | The disabled prop. |
| className | string | '' | The className prop. |
| itemClassName | string | '' | The itemClassName prop. |
| aria-label | string | 'Breadcrumbs' | The aria-label prop. |
Other components solving nearby problems.