---
name: NumberInput
menu: Inputs
---

import { Playground, PropsTable } from 'docz';
import { Formik, Field } from 'formik';

import { NumberInput, NumberInputPrimitive } from './';

# NumberInput

<PropsTable of={NumberInput} />

## Basic usage

<Playground>
  <Formik
    render={values => (
      <form>
        <pre>{JSON.stringify(values, null, 2)}</pre>
        <br />
        <Field name="myText" placeholder="foo" component={NumberInput} />
      </form>
    )}
  />
</Playground>

## NumberInput Primitive

<NumberInputPrimitive name="name" />
