Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.attio.com/llms.txt

Use this file to discover all available pages before exploring further.

This component is returned by useWorkspaceSettingsForm().

Example

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

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

function Page() {
  const {Form, TextInput, AttioUserCombobox} = 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).