Skip to main content
The Workspace Settings API is experimental and may change in the future. Please don’t use it in production versions of your app.
The AttioUserCombobox API is experimental and may change in the future. It has been marked as @deprecated to remind the developer that it is experimental. It is not "deprecated", just experimental. Please don't use it in production versions of your app. We do not guarantee backward compatibility, or that the API will remain stable.
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, Experimental_AttioUserCombobox} = experimental_useWorkspaceSettingsForm()
  
  return (
    <Form>
      <TextInput label="Project name" name="project_name" />
      <TextInput label="Environment" name="environment" />
      <Experimental_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).