# Label

> Defines a display label for a form-model property.

[API reference](/docs/api/index.md) › [Form Model](/docs/extensions/form-model/reference/index.md) › [Attribute](/docs/extensions/form-model/reference/attribute/index.md) › Label

| final readonly class | `UIAwesome\FormModel\Attribute\Label` |
| --- | --- |
| Source | [`src/Attribute/Label.php`](https://github.com/ui-awesome/form-model/blob/main/src/Attribute/Label.php#L18) |

Defines a display label for a form-model property.

Usage example:
```php
#[Label('Email address')]
public string $email = '';
```

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-value"></span>`$value` readonly constructor | `string` | Display label for the field. | `Label` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates field label metadata. | `Label` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
public function __construct(string $value)
```

Creates field label metadata.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` | Display label for the field. |