JobyKit.NavComponent (JobyKit v0.1.0)

Copy Markdown View Source

Small kit-shipped navigation primitives. The simple_nav/1 function component renders a three-link daisyUI navbar suitable for the greenfield bootstrap (mix joby_kit.bootstrap) — Home / Design / Custom Designs — with an active-state highlight.

Hosts can use it anywhere: a layout, a LiveView render, or a function component template. Pass links: to override the default link list.

Summary

Functions

simple_nav(assigns)

Attributes

  • active (:string) - Defaults to nil.
  • brand (:string) - Defaults to "JobyKit".
  • brand_href (:string) - Defaults to "/".
  • links (:list) - Defaults to [%{label: "Home", key: "home", href: "/"}, %{label: "Design", key: "design", href: "/design"}, %{label: "Custom Designs", key: "custom-designs", href: "/custom-designs"}].
  • class (:any) - Defaults to nil.