PhiaUi.Components.FloatingNav (phia_ui v0.1.17)

Copy Markdown View Source

Floating pill navigation bar — fixed or sticky pill anchored to the viewport.

Provides two components:

Summary

Functions

floating_nav(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • position (:atom) - Defaults to :fixed. Must be one of :fixed, or :sticky.
  • placement (:atom) - Defaults to :bottom. Must be one of :bottom, :top, :bottom_left, or :bottom_right.
  • Global attributes are accepted.

Slots

  • inner_block (required)

floating_nav_item(assigns)

Attributes

  • active (:boolean) - Defaults to false.
  • href (:string) - Defaults to nil.
  • on_click (:string) - Defaults to nil.
  • label (:string) - Defaults to nil.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • icon