defmodule BrightWeb.NavigationComponents do
@moduledoc """
Components for user navigation
"""
use Phoenix.Component
use Phoenix.VerifiedRoutes,
endpoint: BrightWeb.Endpoint,
router: BrightWeb.Router,
statics: BrightWeb.static_paths()
alias Phoenix.LiveView.JS
@doc """
Renders a Bulma navbar component.
## Examples
<.navbar brand="MyApp">
<:start>
HomeAbout
<:end>
LoginSign Up
"""
attr :rest, :global, doc: "any additional attributes for the navbar element"
slot :start_slot, doc: "slot for navbar items aligned to the start"
slot :end_slot, doc: "slot for navbar items aligned to the end"
def navbar(assigns) do
~H"""
"""
end
end