
The Workspace Settings API is experimental and may change in the future. Please don’t use it in production versions of your app.
This component is returned by
experimental_useWorkspaceSettingsForm().useForm() where validation is defined in the schema, workspace settings validation is specified directly on the input components using props like minLength, maxLength, multiline, and url.
Example
workspace-settings.tsx
Props
The label of the input field.
The path to the
string value of the input field in your settings schema.e.g. "display_name", "integration.webhook_url"Useful on mobile devices with virtual keyboards.
An optional placeholder text for your input.
The minimum length (number of characters) required. Validation will fail if the user inputs a string shorter than this value.
The maximum length (number of characters) allowed. Validation will fail if the user inputs a string longer than this value.
If true, the input will be rendered as a multiline textarea instead of a single-line input.Defaults to
false.If true, validates that the string is a valid URL with an allowed protocol (default http/https) and a valid top-level domain.You can pass an object with
protocol to override the allowed protocol pattern, and message to customize the validation error message.Defaults to false.Whether or not the field should be disabled.Defaults to
false (not disabled).