Skip to main content
This component is returned by experimental_useWorkspaceSettingsForm().

Example

workspace-settings.tsx
import React from "react"
import {experimental_useWorkspaceSettingsForm} from "attio/client"
import type {App} from "attio"

export const workspaceSettings: App.Settings.Workspace = {
  Page,
}

function Page() {
  const {Form, TextInput, AttioUserCombobox} = experimental_useWorkspaceSettingsForm()

  return (
    <Form>
      <TextInput label="Project name" name="project_name" />
      <TextInput label="Environment" name="environment" />
      <AttioUserCombobox label="Default assignee" name="default_assignee_id" />
    </Form>
  )
}

Props

label
string
required
The label of the Attio workspace user combobox input field.
name
string
required
The path to the string value of the input field in your settings schema. e.g. "default_assignee_id", "sync.owner_id"
disabled
boolean
Whether or not the field should be disabled.Defaults to false (not disabled).