# FormSchemaProperty (@salmonui/inputs/form-renderer)

> The FormSchemaProperty interface of @salmonui/inputs/form-renderer: One property of the JSON Schema subset. Other keywords are ignored.

Canonical: https://salmonui.dev/docs/reference/inputs/form-renderer/FormSchemaProperty

```ts
import type { FormSchemaProperty } from '@salmonui/inputs/form-renderer';
```

Entry index: https://salmonui.dev/docs/reference/inputs/form-renderer (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/form-renderer.md).

## Reference

Kind: interface

```ts
interface FormSchemaProperty {
    readonly type: FormSchemaType;
    readonly title?: string | undefined;
    readonly description?: string | undefined;
    readonly default?: FormSchemaValue | undefined;
    readonly enum?: readonly (string | number)[] | undefined;
    readonly const?: FormSchemaValue | undefined;
    readonly format?: 'email' | 'uri' | (string & {}) | undefined;
    readonly minLength?: number | undefined;
    readonly maxLength?: number | undefined;
    readonly minimum?: number | undefined;
    readonly maximum?: number | undefined;
    readonly pattern?: string | undefined;
}
```

One property of the JSON Schema subset. Other keywords are ignored.

Members (12):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `readonly type: FormSchemaType;` |  |  |
| `title` | `readonly title?: string \| undefined;` | optional | Field label; default the property name. |
| `description` | `readonly description?: string \| undefined;` | optional |  |
| `default` | `readonly default?: FormSchemaValue \| undefined;` | optional |  |
| `enum` | `readonly enum?: readonly (string \| number)[] \| undefined;` | optional | Allowed values: a `Select` (or `RadioGroup`) of these. |
| `const` | `readonly const?: FormSchemaValue \| undefined;` | optional | `true` on a boolean: the box must be checked (a required checkbox). |
| `format` | `readonly format?: 'email' \| 'uri' \| (string & {}) \| undefined;` | optional | `'email'` (email input and rule), `'uri'` (url input and rule). |
| `minLength` | `readonly minLength?: number \| undefined;` | optional |  |
| `maxLength` | `readonly maxLength?: number \| undefined;` | optional |  |
| `minimum` | `readonly minimum?: number \| undefined;` | optional |  |
| `maximum` | `readonly maximum?: number \| undefined;` | optional |  |
| `pattern` | `readonly pattern?: string \| undefined;` | optional | A regular expression source (unanchored, as in JSON Schema). |
