PhoenixFeathers.TopNav (Phoenix Feathers v1.0.1-alpha) View Source

Link to this section Summary

Link to this section Functions

Link to this function

handle_event(binary, params, socket)

View Source

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.