ShadcnUI.Components.Forms.Progress (shadcn_ui v1.0.0)

Copy Markdown View Source

Native task-progress snapshot with explicit accessible naming.

Omit value (or pass nil) for the native indeterminate state. The caller owns measurement, polling, lifecycle, announcements, and completion behavior.

Summary

Functions

Renders one native determinate or indeterminate progress element.

Functions

progress(assigns)

Renders one native determinate or indeterminate progress element.

Attributes

  • id (:string) (required)
  • value (:any) - Defaults to {:shadcn_ui, :not_provided}.
  • max (:any) - Defaults to 1.
  • accessible_label (:string) - Defaults to nil.
  • size (:atom) - Defaults to :default. Must be one of :small, :default, or :large.
  • variant (:atom) - Defaults to :default. Must be one of :default, or :destructive.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • label
  • description