Breadcrumb
A navigation component for displaying a route trail.
Breadcrumb Props
Prop | Type | Default |
---|---|---|
items | { label: string; href: string; icon?: ReactNode; dropdownItems?: { label: string; href: string; }[] | undefined; }[] | - |
size | "small" | "medium" | "medium" |
maxVisibleItems | number | - |
separator | ReactNode | "/" |
onItemClick | (item: { label: string; href: string; }) => void | - |
className | string | - |
Examples
Size
The Breadcrumb component supports different sizes to fit various design requirements. You can specify the size using the size
prop.
Separator
You can customize the separator between breadcrumb items using the separator
prop.
Dropdowns
Breadcrumb items can include dropdowns for additional navigation options.
Icons
Breadcrumb items can include icons either alongside text or as standalone elements.
Max Visible Items
Control the visibility of breadcrumb items using the maxVisibleItems
prop. By default, all items are visible when maxVisibleItems
is not specified.