Input Number

Un champ numérique avec boutons moins et plus : un spinbutton piloté par les flèches, Page préc. / suiv. et Début / Fin, borné par min et max, comme contrôle de formulaire.

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: disponible

Utilisation

2 × €24.00 = €48.00

Importation

ts
import {
  SoneInputNumberComponent,
} from "@surface-one/angular/input-number";

Référence de l’API

SoneInputNumberComponentComposant

A number field with − and + buttons — a quantity in a cart, a count in a form. The field is a WAI-ARIA spinbutton: ↑ / ↓ step, Page Up / Page Down step × 10, Home / End jump to `min` / `max`; typed text is parsed and clamped on blur or Enter. A ControlValueAccessor of `number | null`, or `[(value)]`.

Sélecteur
sone-input-number
Inputs
NomType Par défaut
valuebidirectionnelnumber | nullnull
minnullnull
maxnullnull
stepnumber1
sizeInputNumberSize"default"
placeholderstring""
inputIdstring | nullnull
ariaLabel

The field's accessible name, when no `<label for>` names it.

string | nullnull
disabledbooleanfalse
invalidbooleanfalse
decrementLabel—$localize`:Button that lowers a number field by one step:Decrease`
incrementLabel—$localize`:Button that raises a number field by one step:Increase`