> From the [Strife developer docs](https://strife.app/docs/reference/field-reference/fields.number). Every page is listed in [llms.txt](https://strife.app/docs/llms.txt).

# fields.number()

Numeric input field.

Numeric input. Maps to editor `{ name: 'str-input', type: 'number' }`. Localizable numbers are rare but allowed — e.g. region-specific prices.

## Example

```ts
fields.number({
  label: 'Price',
  min: 0,
  step: '0.01',
})
```

## Options

| Option         | Type             | Required | Description                                                                                                                              |
| -------------- | ---------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `label`        | `string`         | Yes      | Label shown to editors in Strife Studio.                                                                                                 |
| `description`  | `string`         | No       | Tooltip shown to editors.                                                                                                                |
| `localizable`  | `boolean`        | No       | When `true`, output is `Record<string, number>` instead of `number`.                                                                     |
| `searchable`   | `boolean`        | No       | Include in the team's search index.                                                                                                      |
| `filterable`   | `boolean`        | No       | Allow filtering content lists by this value.                                                                                             |
| `protected`    | `boolean`        | No       | Restrict editing to users with the appropriate permission.                                                                               |
| `propertyName` | `string`         | No       | Override the stored property name.                                                                                                       |
| `placeholder`  | `string \| null` | No       | Hint text shown in the empty input.                                                                                                      |
| `min`          | `number \| null` | No       | Minimum allowed value.                                                                                                                   |
| `max`          | `number \| null` | No       | Maximum allowed value.                                                                                                                   |
| `step`         | `string \| null` | No       | Increment step, passed straight through to the underlying HTML input — note this is typed as a **string** (e.g. `'0.01'`), not a number. |

## Output type

`number`, or `Record<string, number>` when `localizable: true`.

## See also

* [Number](https://strife.app/docs/reference/fields/number.md) — the same editor, documented from the Strife Studio UI side.
