# TextFieldDefinition

> Type reference for TextFieldDefinition in the Rippling SDK, including its public shape and related types.

Type-level shape produced by {@link text }.

## Type definition

```
export interface TextFieldDefinition<TRequired extends boolean = false, TSectionKey extends string | undefined = string | undefined> extends FieldDefinitionBase<'text', string, TRequired, true, TSectionKey> {
    readonly unique?: boolean;
    readonly maxLength?: number;
}
```

## Related types

-   [FieldDefinitionBase](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FieldDefinitionBase-16c7690e)

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/TextFieldDefinition-ee59e563

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
