Emerge.UI.Input.Slider (Emerge v0.3.1)

Copy Markdown View Source

Configuration helpers for Emerge.UI.Input.slider/2.

Slider.config/1 is an attribute-like value that only Input.slider/2 accepts. It configures the numeric range and optional visual slots.

Summary

Functions

Configure an Input.slider/2.

Types

t()

@type t() :: {:slider_config, map()}

Functions

config(opts \\ [])

@spec config(keyword()) :: t()

Configure an Input.slider/2.

Supported options:

  • :min and :max set the numeric range.
  • :step sets snapping. Use nil, :any, or omit it for continuous values.
  • :track, :filled_track, and :thumb accept regular Emerge elements.

The slider owns track widths, so the :track and :filled_track root elements must not set width(...).