Skip to main content
This component is returned by Settings.useForm().
A rich text input stores its value in a string field of your settings schema.

Example

src/app/settings/page.tsx

Props

string
required
The label of the input field.
string
required
The path to the string value of the input field in your settings schema.
string
An optional placeholder text for your input.
number
The minimum length (number of characters) required. Validation will fail if the user inputs a string shorter than this value.
number
The maximum length (number of characters) allowed. Validation will fail if the user inputs a string longer than this value.
boolean
Whether or not the field should be disabled.Defaults to false (not disabled).