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.
Example
import React from "react"
import {Forms, useForm, showToast} from "attio/client"
export function InputGroupDialog() {
const {Form, SubmitButton, InputGroup, NumberInput, StringInput} = useForm(
{
name: Forms.string(),
age: Forms.number(),
},
{},
)
return (
<Form
onSubmit={async (values) => {
await showToast({
title: "Form submitted",
variant: "success",
text: JSON.stringify(values),
})
}}
>
<InputGroup>
<StringInput label="Name" name="name" />
<NumberInput label="Age" name="age" />
</InputGroup>
<SubmitButton label="Submit" />
</Form>
)
}
Props
The child inputs to be grouped.