# Skip link ## Introduction Skip link component. Make skip links visible when they are tabbed to. You'll need to add correct id to your main content area, to ensure the skip link will work. ## Guidance Find out when to use the Skip link component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/skip-link). ## Quick start examples ### Component default [Preview the skip-link component](http://govuk-frontend-review.herokuapp.com/components/skip-link/preview) #### Markup Skip to main content #### Macro {% from 'skip-link/macro.njk' import govukSkipLink %} {{ govukSkipLink({ "text": "Skip to main content", "href": "#content" }) }} ## 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 the skip link. If `html` is provided, the `text` argument will be ignored. |
href | string | Yes | The value of the skip link href attribute. Defaults to #content |
classes | string | No | Optional additional classes to add to the skip link. |
attributes | object | No | Any extra HTML attributes (for example data attributes) to add to the skip link. |