defmodule ToweropsWeb.Components.Breadcrumbs do @moduledoc """ Reusable breadcrumb navigation component using DaisyUI. """ use Phoenix.Component import ToweropsWeb.CoreComponents, only: [icon: 1] @doc """ Renders a breadcrumb navigation bar. Each item in `items` should be a map with: - `:label` (required) — the display text - `:navigate` (optional) — path for navigation; omit for the current (last) page ## Examples <.breadcrumb items={[ %{label: "Dashboard", navigate: ~p"/dashboard"}, %{label: "Devices", navigate: ~p"/devices"}, %{label: "My Device"} ]} /> """ attr :items, :list, required: true def breadcrumb(assigns) do ~H""" """ end end