Breadcrumb
Displays the user's current page hierarchy, enhancing navigation and providing context. It is typically placed at the top of a page.
Usage
Basic usage example to quickly understand how the Breadcrumb
component works.
Demonstrates the structure, interaction, and default behavior for seamless navigation design.
Properties
Interactive configurator to explore and customize the available options for the Breadcrumb
component.
Adjust separators, spacing, visual appearance, and responsiveness in real-time.
Change Separator
Example showcasing how to customize the separator between breadcrumb items.
The separator can be a simple character (e.g., /, >)
or a custom React element such as an icon or styled component, allowing greater flexibility in visual presentation.
API References
Styles API
type Selector = "root" | "breadcrumb" | "separator" | "wrap" | "ellipsis";
Styles API | Type | Default | Annotation |
---|---|---|---|
unstyled? | Partial<Record<Selector, boolean>> | false | if true , default styles will be removed |
className? | string | undefined | pass to root component <div> |
classNames? | Partial<Record<Selector, string>> | undefined | |
style? | CSSProperties | undefined | pass to root component <div> |
styles? | Partial<Record<Selector, CSSProperties>> | undefined |
Props API
Props API | Type | Default | Annotation |
---|---|---|---|
children? | React.ReactNode | undefined | React nodes that should be separated with separator |
items? | React.ReactNode[] | undefined | Filling the childrens array section briefly |
separator? | React.ReactNode | / | Separator between children |
gap? | number | string | 12px | Controls spacing between separator and breadcrumb |
Source Codes
Full working code example, including necessary markup and styles. You can copy and paste this code directly to start using the component immediately.