An input field that let the user to enter a number

Provides a wrapper for Phoenix.HTML.Form's number_input/3 function.

All options passed via opts will be sent to number_input/3, value and class can be set directly and will override anything in opts.

# Public API

Name Description Type Values Default
id The id of the corresponding input field.

opts Options list.

:keyword []
class Class or classes to apply to the input.

value Value to pre-populated the input.

name The name of the corresponding input field.

field An identifier for the input.

form An identifier for the form.