PhiaUi.Components.SpeedDial (phia_ui v0.1.17)

Copy Markdown View Source

Floating Action Button (FAB) speed dial component.

Requires the PhiaSpeedDial JavaScript hook registered in app.js.

Provides two components:

Summary

Functions

speed_dial(assigns)

Attributes

  • id (:string) (required)
  • class (:string) - Defaults to nil.
  • position (:atom) - Defaults to :bottom_right. Must be one of :bottom_right, :bottom_left, :top_right, or :top_left.
  • direction (:atom) - Defaults to :up. Must be one of :up, :down, :left, or :right.
  • Global attributes are accepted.

Slots

  • inner_block (required)
  • trigger - Custom FAB trigger button — defaults to + icon if not provided.

speed_dial_item(assigns)

Attributes

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

Slots

  • icon (required)