PtahUi.Components.Timeline (PtahUI v0.1.0)

Copy Markdown View Source

Summary

Functions

timeline(assigns)

Attributes

  • direction (:string) - Defaults to "horizontal".
  • compact (:boolean) - Forces items to one side. Start becomes a sub-label in vertical; top row hidden in horizontal. Defaults to false.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • item (required) - A timeline entry (up to ~10). Accepts attributes:
    • start (:string) - Text for the start side (above in horizontal, left/label in vertical).
    • start_class (:string)
    • end_class (:string)
    • icon (:string) - Hero icon name inside the dot.
    • icon_class (:string)
    • dot_class (:string) - Classes for the dot (controls color, e.g. bg-indigo-500 text-white).
    • line_class (:string) - Class for connecting lines.
    • box (:boolean) - Applies a card-style box to the end content.
    • class (:string)