Example
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, Section} = useWorkspaceSettingsForm()
return (
<Form>
<Section title="General Settings" description="Configure basic app settings.">
<TextInput label="Display name" name="display_name" />
<TextInput label="Environment" name="environment" />
</Section>
<Section title="Webhook Settings">
<TextInput label="Webhook URL" name="webhook_url" type="url" />
</Section>
</Form>
)
}
Props
The title of the section. It will be displayed in a stronger font than the content of the section.
An optional description that provides additional context about the section.
The text (or components) content of the section.