--- title: Breadcrumb description: Used to display a page's location within a site's hierarchical structure links: source: components/breadcrumb storybook: components-breadcrumb--basic recipe: breadcrumb --- ## Usage ```tsx import { Breadcrumb } from "@chakra-ui/react" ``` ```tsx ``` :::info If you prefer a closed component composition, check out the [snippet below](#closed-component). ::: ## Examples ### Sizes Use the `size` prop to change the size of the breadcrumb component ### Variants Use the `variant` prop to change the appearance of the breadcrumb component ### With Separator Use the `Breadcrumb.Separator` component to add a custom separator ### Icon Add a custom icon to the breadcrumb by rendering it within `Breadcrumb.Link` ### Menu Wrap the `Breadcrumb.Link` inside the `MenuTrigger` to ensure it works correctly within the menu component ### Ellipsis Render the `Breadcrumb.Ellipsis` component to show an ellipsis after a breadcrumb item ### Routing Library Use the `asChild` prop to change the underlying breadcrumb link ```tsx import { Breadcrumb } from "@chakra-ui/react" import { Link } from "next/link" export const Example = () => { return ( Docs ) } ``` ### Closed Component Here's how to setup the Breadcrumb for a closed component composition. If you want to automatically add the closed component to your project, run the command: ```bash npx @chakra-ui/cli snippet add breadcrumb ``` ## Props ### Root