Components
Breadcrumb
Shows a page’s place in a hierarchy of links.
Ombelle · light
Breadcrumb
Installation
Run in a project initialized with an Ombelle preset (see Get started). The component uses the saved project preset. Run the command from your app folder; it shows the changes and asks before writing.
pnpm dlx @ombelle-ui/cli@1.1.2 add breadcrumbAdds components/ui/breadcrumb.tsx and installs react, @radix-ui/react-dropdown-menu, clsx, tailwind-merge with lifecycle scripts disabled.
In a liquid glass project the plan adds a notice that accessibility is not guaranteed, because text contrast depends on the background behind the glass.
Usage
example.tsx
import { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator } from '@/components/ui/breadcrumb'
export function Example(){return <Breadcrumb><BreadcrumbList><BreadcrumbItem><BreadcrumbLink href="/">Home</BreadcrumbLink></BreadcrumbItem><BreadcrumbSeparator /><BreadcrumbItem><BreadcrumbPage>Projects</BreadcrumbPage></BreadcrumbItem></BreadcrumbList></Breadcrumb>}API and states
- API
- Breadcrumb (collapse none or auto), BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis
- Minimum states
- Link, current page, focus
- Native basis
- Native nav, ordered list, links and current-page span
- Styles
- Stable in Ombelle, Papier, Organic, Retro futurism, minimalist, neo-brutalism and flat, light and dark. Liquid glass: stable, accessibility not guaranteed.