2020-04-21 03:41:50 -05:00
|
|
|
+++
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
# 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
|
2020-04-28 02:53:58 -05:00
|
|
|
export declare function Form<T>({ defaultValues, onSubmit, validateOnMount, validateFieldsOnMount, children, validateOn, maxWidth, }: FormProps<T>): JSX.Element;
|
2020-04-21 03:41:50 -05:00
|
|
|
```
|
|
|
|
<b>Import</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
import { Form } from '@grafana/ui';
|
|
|
|
```
|
|
|
|
<b>Parameters</b>
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-04-28 02:53:58 -05:00
|
|
|
| { defaultValues, onSubmit, validateOnMount, validateFieldsOnMount, children, validateOn, maxWidth, } | <code>FormProps<T></code> | |
|
2020-04-21 03:41:50 -05:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
`JSX.Element`
|
|
|
|
|