x
1
2
3
4
5
6
7
8
9
10
11
12
13
<nav class="flex" aria-label="Breadcrumb"> <ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse"> <li class="inline-flex items-center"> <div class="flex items-center"><a href="/" class="text-sm font-medium inline-flex items-center text-body hover:text-fg-brand"><svg class="w-3 h-3 me-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z" /></svg>Home</a></div> </li> <li> <div class="flex items-center"><svg class="w-3.5 h-3.5 rtl:rotate-180 text-body" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" height="24" viewBox="0 0 24 24" width="24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5 7 7-7 7" /></svg><a href="/projects" class="ms-1 text-sm font-medium text-body hover:text-fg-brand">Projects</a></div> </li> <li aria-current="page"> <div class="flex items-center"><svg class="w-3.5 h-3.5 rtl:rotate-180 text-body" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" height="24" viewBox="0 0 24 24" width="24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5 7 7-7 7" /></svg><span class="ms-1 text-sm font-medium text-body-subtle">Current Page</span></div> </li> </ol></nav>1
2
3
4
5
6
7
8
9
10
11
render(Flowbite::Breadcrumb.new) do |breadcrumb| breadcrumb.with_item do render_to_string(Flowbite::Breadcrumb::Item::First.new(href: "/").with_content("Home")) end breadcrumb.with_item do render_to_string(Flowbite::Breadcrumb::Item.new(href: "/projects").with_content("Projects")) end breadcrumb.with_item do render_to_string(Flowbite::Breadcrumb::Item::Current.new.with_content("Current Page")) endendUse breadcrumb navigation to show the current page location and allow users to navigate back through the hierarchy.
No params configured.