[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / toFormSections

# Function: toFormSections()

> **toFormSections**(`components`): [`FormSection`](../classes/FormSection)[]

Defined in: [admin/src/form/Section.ts:299](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/form/Section.ts#L299)

Normalize components into sections, wrapping loose fields in a default section.

## Parameters

### components

[`FormComponent`](../type-aliases/FormComponent)[]

## Returns

[`FormSection`](../classes/FormSection)[]
