# Groups

A group in the schema groups related fields. Groups are currently output as a `<fieldset>` element, with a `<legend>`. For example, this schema:

```javascript
{
    groups: [
        {
            legend: "User Details",
            fields: [
                {
                    type: "input",
                    inputType: "text",
                    label: "Name",
                    model: "name"
                },
                {
                    type: "input",
                    inputType: "number",
                    id: "current_age",
                    label: "Age",
                    model: "age"
                }
            ]
        }
    ]
}
```

would produce (simplified) HTML output something like this:

```markup
<fieldset>
    <legend>User Details</legend>

    <label>Name</label>
    <input type="text" />

    <label>Age</label>
    <input type="number" />
</fieldset>
```

You can change the default `fieldset` tag by passing the `tag` property to the `<vue-form-generator />` component in your markup.

```markup
<vue-form-generator tag="div" :model="model" :schema="schema" :options="options"></vue-form-generator>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vue-generators.gitbook.io/vue-generators/groups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
