# Forms

- Component tokens: https://koobiq.io/tokens/forms.md
- Page: https://koobiq.io/en/other/forms/overview

Form layout utilities arrange fields, labels, hints, and validation messages in horizontal, vertical, or grouped layouts.

## Horizontal

[**Example: Horizontal form** (`horizontal-form`)](https://koobiq.io/examples/horizontal-form.md)

### Label column width

By default, labels occupy one out of four columns with a 16 px gutter.\

You can also set a different size, including a fixed width.

[**Example: Horizontal form labels** (`horizontal-form-labels`)](https://koobiq.io/examples/horizontal-form-labels.md)

## Vertical layout

[**Example: Vertical form** (`vertical-form`)](https://koobiq.io/examples/vertical-form.md)

## Grouped fields

Multiple fields can be combined and grouped together to emphasize their relationship.

[**Example: Form fieldset** (`form-fieldset-overview`)](https://koobiq.io/examples/form-fieldset-overview.md)

Within a group, you can use a placeholder as the field label. Hints and errors will be shown below the group in sequence, with an indication of the specific field they relate to. You can also use a general message for the group or omit the field names in the text if the meaning remains clear without labels.

[**Example: Form fieldset** (`form-fieldset-invalid`)](https://koobiq.io/examples/form-fieldset-invalid.md)

A button can also be combined with a field.

[**Example: Form fieldset with button** (`form-fieldset-with-button`)](https://koobiq.io/examples/form-fieldset-with-button.md)
