# NumericInputArgs

Interface · extends [`InputElementArgs`](https://api.playcanvas.com/pcui/interfaces/InputElementArgs.md)`<number | string>`

Source: https://github.com/playcanvas/pcui/blob/77ed2b8ba8660c9644049b0d1942652721e7a6c4/src/components/NumericInput/index.ts#L16

The arguments for the [NumericInput](https://api.playcanvas.com/pcui/classes/NumericInput.md) constructor.

## Properties

### allowNull

```ts
allowNull?: boolean
```

Sets whether the value can be `null`. If not then it will be 0 instead of `null`.

### hideSlider

```ts
hideSlider?: boolean
```

Hide the input mouse drag slider.

### max

```ts
max?: number
```

Sets the maximum value this field can take.

### min

```ts
min?: number
```

Sets the minimum value this field can take.

### precision

```ts
precision?: number
```

Sets the decimal precision of this field. Defaults to 7.

### step

```ts
step?: number
```

Sets the amount that the value will be increased or decreased when using the arrow keys and
the slider input.

### stepPrecision

```ts
stepPrecision?: number
```

Sets the amount that the value will be increased or decreased when holding shift using the
arrow keys and the slider input. Defaults to [NumericInput#step](https://api.playcanvas.com/pcui/classes/NumericInput.md#step) * 0.1.

## Inherited from [InputElementArgs](https://api.playcanvas.com/pcui/interfaces/InputElementArgs.md)

- `alignItems?: string`
- `alignSelf?: string`
- `binding?: BindingBase`
- `blurOnEnter?: boolean`
- `blurOnEscape?: boolean`
- `class?: string | string[]`
- `dom?: string | HTMLElement`
- `enabled?: boolean`
- `error?: boolean`
- `flexBasis?: string | number`
- `flexDirection?: string`
- `flexGrow?: string | number`
- `flexShrink?: string | number`
- `flexWrap?: string`
- `height?: number`
- `hidden?: boolean`
- `id?: string`
- `ignoreParent?: boolean`
- `input?: HTMLInputElement`
- `isRoot?: boolean`
- `justifyContent?: string`
- `justifySelf?: string`
- `keyChange?: boolean`
- `link?: { observer: Observer | Observer[]; path: string | string[] }`
- `onChange?: (value: string | number) => void`
- `onClick?: () => void`
- `onRemove?: () => void`
- `parent?: Element`
- `placeholder?: string`
- `readOnly?: boolean`
- `renderChanges?: boolean`
- `style?: string`
- `tabIndex?: number`
- `value?: string | number`
- `values?: (string | number)[]`
- `width?: number`
