Phase banner
Read more about the phase banner component on the Gov.UK Design System website
@using GovUkDesignSystemDotNet
@await Html.GovUkPhaseBanner(new PhaseBannerViewModel
{
TagViewModel = new TagViewModel
{
HtmlOrText = new HtmlOrText("Alpha")
},
HtmlOrText = new HtmlOrText(@<text>
This is a new service.
Help us improve it and <a class="govuk-link" href="#">give your feedback by email</a>.
</text>)
})
Options
| Name | Type | Description |
|---|---|---|
| HtmlOrText | HtmlOrText | Required. HTML or text to use within the phase banner. |
| TagViewModel | TagViewModel | Required. The tag used by the phase banner component. See options for the tag component |
| Classes | List<string> | Classes to add to the phase banner container. |
| Attributes | Dictionary<string, string> | HTML attributes (for example, data attributes) to add to the phase banner container. |