# Function: text()

```ts
function text(
   max, 
   description?, 
   min?
): object;
```

Defined in: [packages/core/src/schemas/fragments.ts:69](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/fragments.ts#L69)

A string of at most `max` characters; `min` 1 for a field that can't be blank

## Parameters

| Parameter | Type |
| ------ | ------ |
| `max` | `number` |
| `description?` | `string` |
| `min?` | `number` |

## Returns

`object`

### maxLength

```ts
maxLength: number = max;
```

### minLength?

```ts
minLength?: number = min;
```

### type

```ts
type: "string";
```
