# Hint

> Defines hint text 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) › Hint

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

Defines hint text for a form-model property.

Usage example:
```php
#[Hint('Used for account recovery notifications.')]
public string $email = '';
```

## Properties

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

## Methods

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

## Method details

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

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

Creates field hint metadata.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` | Hint text for the field. |