PhiaUi.Components.Dock (phia_ui v0.1.17)

Copy Markdown View Source

macOS-style icon dock navigation component.

Provides two components:

  • dock/1 — icon dock container with orientation and variant options
  • dock_item/1 — icon button with hover tooltip and scale animation

Summary

Functions

dock(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • orientation (:atom) - Defaults to :horizontal. Must be one of :horizontal, or :vertical.
  • position (:atom) - Defaults to :bottom. Must be one of :bottom, :top, :left, :right, or :inline.
  • variant (:atom) - Defaults to :default. Must be one of :default, :glass, or :bordered.
  • Global attributes are accepted.

Slots

  • inner_block (required)

dock_item(assigns)

Attributes

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

Slots

  • icon (required)
  • badge