PtahUi.Components.Carousel (PtahUI v0.1.0)

Copy Markdown View Source

Summary

Functions

carousel(assigns)

Attributes

  • id (:string) - Defaults to nil.
  • snap (:string) - Scroll snap alignment applied to each item. Defaults to "start".
  • direction (:string) - Scroll axis. Defaults to "horizontal".
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • item (required) - A carousel slide. Set class for item width (e.g. w-full). Accepts attributes:
    • id (:string)
    • class (:string)