+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "Form"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++

## Form() function

### Form() function

<b>Signature</b>

```typescript
export declare function Form<T>({ defaultValues, onSubmit, validateOnMount, validateFieldsOnMount, children, validateOn, maxWidth, }: FormProps<T>): JSX.Element;
```
<b>Import</b>

```typescript
import { Form } from '@grafana/ui';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  { defaultValues, onSubmit, validateOnMount, validateFieldsOnMount, children, validateOn, maxWidth, } | <code>FormProps&lt;T&gt;</code> |  |

<b>Returns:</b>

`JSX.Element`

