Carregando…
Carregando…
Carregando…Navigation breadcrumb with separator, icon support, max-items collapse and 3 sizes.
$ npx kikitocn add breadcrumb@/lib/utilsimport { Breadcrumb } from "@/components/ui/cn/breadcrumb/Breadcrumb";
export function BreadcrumbExample() {
return (
<Breadcrumb
items={[
{ label: "Início", href: "/" },
{ label: "Componentes", href: "/cn" },
{ label: "Breadcrumb" },
]}
/>
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
items* | BreadcrumbItem[] | — | Lista de itens: { label, href?, onClick?, icon? } |
separator | ReactNode | '/' | Separador entre os itens |
maxItems | number | undefined | Colapsa itens intermediários com '...' ao exceder |
size | 'sm' | 'md' | 'lg' | 'md' | Tamanho do texto e ícones |
Default (md)
Collapsed (maxItems=3)
Small + custom separator