experimental_useWorkspaceSettingsForm() hook creates a form for configuring workspace-level settings for your app. Unlike regular forms created with useForm(), workspace settings forms automatically save changes and don’t require an onSubmit handler.
Only workspace admins can edit workspace settings. However, all workspace members can view the settings.
The Workspace Settings API is experimental and may change in the future. Please don’t use it in production versions of your app.
Parameters
This hook takes no parameters. The schema is inferred globally based on your workspace settings configuration defined inapp.settings.ts.
Returns
an object containing:Components
The hook returns the following form components. Note that settings forms do not include a submit button, as changes are saved automatically.Form Component
<Form />- The form wrapper
Input Components
<Experimental_AttioUserCombobox />- Select Attio workspace users<Checkbox />- Boolean checkbox input<Combobox />- Dropdown selection input<InputGroup />- Group multiple inputs together<NumberInput />- Numeric input field<TextInput />- Text input field<Toggle />- Boolean toggle switch
Layout Components
<Section />- Group form fields into sections
Utility Components
<Button />- Action buttons for additional functionality<WithState />- Access form state for conditional rendering
Example
workspace-settings.tsx