# SliderInputArgs

Interface · extends [`IBindableArgs`](https://api.playcanvas.com/pcui/interfaces/IBindableArgs.md)`<number>`, [`IPlaceholderArgs`](https://api.playcanvas.com/pcui/interfaces/IPlaceholderArgs.md)

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

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

## Properties

### allowNull

```ts
allowNull?: boolean
```

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

### keyChange

```ts
keyChange?: boolean
```

Sets whether any key up event will cause a change event to be fired.

### max

```ts
max?: number
```

Sets the maximum value that the numeric input field can take.

### min

```ts
min?: number
```

Sets the minimum value that the numeric input field can take.

### precision

```ts
precision?: number
```

Sets the maximum number of decimals a value can take. Defaults to 2.

### sliderMax

```ts
sliderMax?: number
```

Sets the maximum value that the slider field can take. Defaults to 1.

### sliderMin

```ts
sliderMin?: number
```

Sets the minimum value that the slider field can take. Defaults to 0.

### step

```ts
step?: number
```

Sets the amount that the value will be increased or decreased when using the arrow
keys. Holding Shift will use 10x the step.

## Inherited from ElementArgs

- `alignItems?: string`
- `alignSelf?: string`
- `binding?: BindingBase`
- `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`
- `isRoot?: boolean`
- `justifyContent?: string`
- `justifySelf?: string`
- `link?: { observer: Observer | Observer[]; path: string | string[] }`
- `onChange?: (value: number) => void`
- `onClick?: () => void`
- `onRemove?: () => void`
- `parent?: Element`
- `readOnly?: boolean`
- `style?: string`
- `tabIndex?: number`
- `width?: number`

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

- `placeholder?: string`

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

- `renderChanges?: boolean`
- `value?: number`
- `values?: number[]`
