PhiaUi.Components.DotNavigation (phia_ui v0.1.17)

Copy Markdown View Source

Dot-style page indicator navigation component.

Provides two components:

Summary

Functions

dot_navigation(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • variant (:atom) - Defaults to :circle. Must be one of :circle, :pill, or :dash.
  • align (:atom) - Defaults to :center. Must be one of :center, :start, or :end.
  • gap (:atom) - Defaults to :md. Must be one of :sm, :md, or :lg.
  • Global attributes are accepted.

Slots

  • inner_block (required)

dot_navigation_item(assigns)

Attributes

  • active (:boolean) - Defaults to false.
  • href (:string) - Defaults to nil.
  • on_click (:string) - Defaults to nil.
  • label (:string) - Defaults to nil.
  • variant (:atom) - Defaults to :circle. Must be one of :circle, :pill, or :dash.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.