# Wrap

> Represents values for the HTML wrap attribute.

[API reference](/docs/api/index.md) › [HTML](/docs/extensions/html/reference/index.md) › [Form](/docs/extensions/html/reference/form/index.md) › [Values](/docs/extensions/html/reference/form/values/index.md) › Wrap

| enum | `UIAwesome\Html\Form\Values\Wrap` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Form/Values/Wrap.php`](https://github.com/ui-awesome/html/blob/main/src/Form/Values/Wrap.php#L12) |

Represents values for the HTML `wrap` attribute.

See also: <https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/textarea#wrap>.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-HARD"></span>`HARD` | `'hard'` | Represents the `hard` token. The browser automatically inserts line breaks (CR+LF) so no line exceeds the width of the control. The `cols` attribute must be specified. |
| <span id="case-OFF"></span>`OFF` | `'off'` | Represents the `off` token. Like `soft`, but changes appearance to `white-space: pre` so line segments exceeding `cols` are not wrapped. Non-standard. |
| <span id="case-SOFT"></span>`SOFT` | `'soft'` | Represents the `soft` token. The browser ensures all line breaks in the value are CR+LF pairs, but no additional line breaks are added. This is the default. |