PetalComponents.Stepper (petal_components v4.15.1)

Copy Markdown View Source

Summary

Functions

stepper(assigns)

Attributes

  • steps (:list) (required)
  • orientation (:string) - Defaults to "horizontal". Must be one of "horizontal", or "vertical".
  • size (:string) - Defaults to "md". Must be one of "xs", "sm", "md", or "lg".
  • variant (:string) - bars trades the numbered circles for a row of segments - the progress-bar read, with each step's title under its own segment. Horizontal only; ignored when vertical, and it takes precedence over label_placement (a bar's title always sits under it). Defaults to "circles". Must be one of "circles", or "bars".
  • label_placement (:string) - horizontal only: bottom centres the labels under the circles (the classic wizard look); ignored when vertical, where labels always sit beside. Defaults to "beside". Must be one of "beside", or "bottom".
  • class (:string) - Defaults to "".