Pass the trail as items. Each entry takes title, href or path, menu, onClick, className and style, and the list is built from the array.
- The child form and routes are both retired. Breadcrumb.Item, Breadcrumb.Separator and routes are deprecated and warn at runtime. The two children are not exported from @/components/ui/breadcrumb.
- href is the link, and path builds one. A path is joined to every earlier item's path and rendered as href={"#/" + paths.join("/")}, so a path trail produces hash links. Use href or itemRender for other URLs.
- params fills the path and the title. title: "Project :projectId" with params={{ projectId: "7" }} renders the value, as long as the title is a string and there is no itemRender. params keeps the type of the object you pass.
- itemRender is the route to a router link. It replaces the whole crumb body, so the anchor is yours: a Next <Link> or a TanStack <Link> goes here. Its second argument is params, with the type you passed, and the title is yours to fill.