React Breadcrumb - Flowbite
The breadcrumb component can be used to indicate the current page's location within a navigational hierarchy and you can choose from multiple examples, colors, and sizes built with React and based on the utility classes from Tailwind CSS.
To start using the breadcrumb component you need to import it from flowbite-react:
import { Breadcrumb } from "flowbite-react";
Default breadcrumb#
Use the <Breadcrumb> component and the child <BreadcrumbItem> components to create and indicate a series of page structure and URLs to help the user navigate through the website.
You can use the href prop from React to make the breadcrumb items clickable and the icon prop to add an icon to the breadcrumb item such as for the homepage.
Background color#
You can add a solid background style to the breadcrumb component by adding the bg-gray-50 class to the component from Tailwind CSS.
Theme#
To learn more about how to customize the appearance of components, please see the Theme docs.
{
"root": {
"base": "",
"list": "flex items-center"
},
"item": {
"base": "group flex items-center",
"chevron": "mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",
"href": {
"off": "flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",
"on": "flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"
},
"icon": "mr-2 h-4 w-4"
}
}