TailwindLiveComponents.NumberInput (tailwind_live_components v0.2.1) View Source
Link to this section Summary
Link to this section Functions
Renders the number input
<.number_input form={f} field={:value} label="Number Input" min="5" max="10" step="2" />
Options
form
- The form identifierfield
- The field namelabel
- The text for the generated<label>
elementvalue
- The current value for the inputautocomplete
- Optional autocomplete attributedetail
- Optional detail shown below the inputmin
- min value for inputmax
- max value for inputstep
- Optional step for inputvalue
- Optional field valueplaceholder
- Optional placeholdererror
- Optional error messagetheme
- Optional theme to use for Tailwind classes
Renders the slider number input
<.slider form={f} field={:value} label="Slider Input" min="10" max="100" step="2" prefix="$" />
Options
form
- The form identifierfield
- The field namelabel
- The text for the generated<label>
elementmin
- min value for inputmax
- max value for inputstep
- Optional step for inputprefix
- Optional prefixvalue
- Optional field valueplaceholder
- Optional placeholdererror
- Optional error messagetheme
- Optional theme to use for Tailwind classes