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

Copy Markdown View Source

Native scalar measurement within a known range.

Meter preserves native threshold semantics without deciding what the measurement means. It is not task progress and owns no polling, measurement, threshold decision, announcement, or lifecycle behavior.

Summary

Functions

Renders one native meter with caller-supplied range and thresholds.

Functions

meter(assigns)

Renders one native meter with caller-supplied range and thresholds.

Attributes

  • id (:string) (required)
  • value (:any) (required)
  • min (:any) - Defaults to 0.
  • max (:any) - Defaults to 1.
  • low (:any) - Defaults to nil.
  • high (:any) - Defaults to nil.
  • optimum (:any) - Defaults to nil.
  • accessible_label (:string) - Defaults to nil.
  • size (:atom) - Defaults to :default. Must be one of :small, :default, or :large.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • label
  • description