Skip to content
العربية
Forms

NumberInput

A number with step buttons. Accepts Arabic digits.

import { NumberInput } from "@percentsa/ui";

Examples

Code
export function NumberInputExample() {
  const t = useT();
  const [seats, setSeats] = useState<number | null>(3);
  return (
    <Field label={t("Seats", "المقاعد")} className="w-40">
      <NumberInput value={seats} onValueChange={setSeats} min={1} max={50} />
    </Field>
  );
}