This component is returned by
useForm().Example
input-group-dialog.tsx
Props
React.ReactNode
required
The child inputs to be grouped.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The legacy app.ts layout is deprecated. New apps use the folder-based layout under src/app/; convert existing apps with the migration guide.
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?