Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
A component for grouping inputs.
useForm()
import React from "react" import {Forms, useForm, showToast} from "attio/client" export function InputGroupDialog() { const {Form, SubmitButton, InputGroup, NumberInput, TextInput} = useForm( { name: Forms.string(), age: Forms.number(), }, {}, ) return ( <Form onSubmit={async (values) => { await showToast({ title: "Form submitted", variant: "success", text: JSON.stringify(values), }) }} > <InputGroup> <TextInput label="Name" name="name" /> <NumberInput label="Age" name="age" /> </InputGroup> <SubmitButton label="Submit" /> </Form> ) }
Was this page helpful?