PhoenixFeathers.TopNav (Phoenix Feathers v1.0.2-alpha) View Source
Link to this section Summary
Functions
Callback implementation for Phoenix.LiveComponent.handle_event/3
.
Callback implementation for Phoenix.LiveComponent.mount/1
.
Example
Callback implementation for Phoenix.LiveComponent.update/2
.
Link to this section Functions
Callback implementation for Phoenix.LiveComponent.handle_event/3
.
Callback implementation for Phoenix.LiveComponent.mount/1
.
Example
<%= live_component @socket,
PhoenixFeathers.TopNav,
id: "phoenix_feathers_top_nav",
brand: %{url: "/", title: "Brand", logo_src: "/path/to/logo.svg"},
nav_items: [%{url: "/", text: "Link 1"}, %{url: "/", text: "Link 2"}]
%>
Callback implementation for Phoenix.LiveComponent.update/2
.