Hint
Note:
You normally wouldn't use the Hint component on its own. It's typically used as part of a bigger component, like a text input
You normally wouldn't use the Hint component on its own. It's typically used as part of a bigger component, like a text input
@using GovUkDesignSystemDotNet
@await Html.GovUkHint(new HintViewModel
{
HtmlOrText = new HtmlOrText("Enter your full name, as shown on your passport")
})
Options
| Name | Type | Description |
|---|---|---|
| HtmlOrText | HtmlOrText | Required. HTML or text to use within the hint. |
| Id | string | Optional ID attribute to add to the hint component. |
| Classes | List<string> | Classes to add to the hint component. |
| Attributes | Dictionary<string, string> | HTML attributes (for example data attributes) to add to the hint component. |