NumberInput

Contents

Preview

Open preview in new tab

Props

Name Description Type Required Reactive Default
htmlElement Native `<input>` element undefined false true null
name Name for the input in forms string false true
valid controls the border color when valid or invalid. `null` resets it to the default color undefined false true null
placeholder placeholder text string false true
text text value in the `<input>` undefined true true
maxDigits maximum number of digits in the number number false true -1
captureEnter send event on enter pressed boolean false true false
shadowOnFocus controls whether to add shadow when focused boolean false true false

Slots

iconleft

iconright

Events

focus forwarded

keydown forwarded

keyup forwarded

submit forwarded

click forwarded

iconRightClick forwarded

input forwarded

enterPressed forwarded

Documentation generated by sveld