A Material Design number field (pp_number_field/1) — a numeric input
with increment/decrement stepper buttons.
The steppers use two lines of vanilla inline JS (stepUp()/stepDown()
plus dispatching a real input event so phx-change/phx-debounce on
the field still fire) — no JS hook, no bundler, no extra dependency.
Summary
Functions
Attributes
id(:any) - Defaults tonil.name(:any) - Defaults tonil.label(:string) - Defaults tonil.value(:any) - Defaults tonil.min(:any) - Defaults tonil.max(:any) - Defaults tonil.step(:any) - Defaults to1.variant(:string) - Defaults to"outlined". Must be one of"outlined", or"filled".shape(:atom) - corner radius token, see PhoenixPaper.Shape. Defaults to:sm. Must be one of:none,:xs,:sm,:md,:lg,:xl, or:full.field(Phoenix.HTML.FormField) - Defaults tonil.errors(:list) - Defaults to[].helper_text(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.paperize(:boolean) - Defaults totrue.class(:any) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["autocomplete", "autofocus", "form", "readonly", "required"].