# Tag ## Introduction Phase tags are mostly used inside phase banners as an indication of the state of a project. It’s possible to use them outside phase banners, for example as part of a service header. ## Guidance Find out when to use the tag component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/tag). ## Quick start examples ### Tag [Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/tag/preview) #### Markup alpha #### Macro {% from "tag/macro.njk" import govukTag %} {{ govukTag({ "text": "alpha" }) }} ### Tag inactive [Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/tag/inactive/preview) #### Markup alpha #### Macro {% from "tag/macro.njk" import govukTag %} {{ govukTag({ "text": "alpha", "classes": "govuk-tag--inactive" }) }} ## Requirements ### Build tool configuration When compiling the Sass files you'll need to define includePaths to reference the node_modules directory. Below is a sample configuration using gulp .pipe(sass({ includePaths: 'node_modules/' })) ### Static asset path configuration In order to include the images used in the components, you need to configure your app to show these assets. Below is a sample configuration using Express js: app.use('/assets', express.static(path.join(__dirname, '/node_modules/govuk-frontend/assets'))) ## Component arguments If you are using Nunjucks,then macros take the following arguments **If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `Html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).**
Name | Type | Required | Description |
---|---|---|---|
text (or) html | string | No | Text or HTML to use within for the tag component. If `html` is provided, the `text` argument will be ignored. |
classes | string | No | Optional additional classes to add to the tag container. |
attributes | object | No | Any extra HTML attributes (for example data attributes) to add to the tag container. |