View Source TailwindLiveComponents.NumberInput (tailwind_live_components v0.5.4)
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
Options
form
- The form identifierfield
- The field namelabel
- The text for the generated<label>
elementrequired
- Optional flag idicating field is requiredvalue
- 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
Options
form
- The form identifierfield
- The field namelabel
- The text for the generated<label>
elementrequired
- Optional flag idicating field is requiredmin
- 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