> ## Documentation Index
> Fetch the complete documentation index at: https://docs.attio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# <NumberInput />

> A numeric input field.

<img className="dark:hidden" width="720" height="440" noZoom src="https://mintcdn.com/attio/2EyaTyByKNPeSVcd/images/number-input.png?fit=max&auto=format&n=2EyaTyByKNPeSVcd&q=85&s=437bc8b4354fb4ef231e76fade07b6f4" data-path="images/number-input.png" />

<img className="hidden dark:block" width="720" height="440" noZoom src="https://mintcdn.com/attio/2EyaTyByKNPeSVcd/images/number-input-dark.png?fit=max&auto=format&n=2EyaTyByKNPeSVcd&q=85&s=b4579f19ceac9dddd20c8924f4534652" data-path="images/number-input-dark.png" />

<Note>This component is returned by [`useForm()`](../../forms/use-form).</Note>

## Example

```tsx form-number-input-dialog.tsx theme={"system"}
import React from "react"
import {Forms, useForm, showToast} from "attio/client"

export function NameDialog() {
  const {Form, SubmitButton, NumberInput} = useForm(
    {
      oneNumber: Forms.number(),
      anotherNumber: Forms.number(),
    },
    {},
  )
  return (
    <Form
      onSubmit={async (values) => {
        await showToast({
          title: "Form submitted",
          variant: "success",
          text: JSON.stringify(values),
        })
      }}
    >
      <NumberInput label="One number" name="oneNumber" />
      <NumberInput label="Another number" name="anotherNumber" />
      <SubmitButton label="Submit" />
    </Form>
  )
}
```

## Props

<ParamField path="label" type="string" required>
  The label of the input field.
</ParamField>

<ParamField path="name" type="string" required>
  The path to the `number` value of the input field in your [form schema](../../forms/form-schema).

  e.g. `"age"`, `"shipping.cost"`
</ParamField>

<ParamField path="placeholder" type="string">
  An optional placeholder text for your input.
</ParamField>

<ParamField path="disabled" type="boolean">
  Whether or not the field should be disabled.

  Defaults to `false` (not disabled).
</ParamField>
