> ## 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.

# <InputGroup />

> A component for grouping inputs.

<img className="dark:hidden" width="720" height="440" noZoom src="https://mintcdn.com/attio/h2PGZQg41uPwZ_J1/images/input-group.png?fit=max&auto=format&n=h2PGZQg41uPwZ_J1&q=85&s=1e60c7b2bbfab8fd6d58cf58474c3915" data-path="images/input-group.png" />

<img className="hidden dark:block" width="720" height="440" noZoom src="https://mintcdn.com/attio/h2PGZQg41uPwZ_J1/images/input-group-dark.png?fit=max&auto=format&n=h2PGZQg41uPwZ_J1&q=85&s=03b6fb41bcd187abdfb031f66b119b93" data-path="images/input-group-dark.png" />

<Note>This component is returned by [`useForm()`](../../forms/use-form).</Note>

## Example

```tsx input-group-dialog.tsx theme={"system"}
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>
  )
}
```

## Props

<ParamField path="children" type="React.ReactNode" required>
  The child inputs to be grouped.
</ParamField>
