# Footer ## Introduction The footer component is used at the bottom of every GOV.UK page, to help users navigate. ## Guidance Find out when to use the Footer component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/footer). ## Quick start examples ### Component default [Preview the footer component](http://govuk-frontend-review.herokuapp.com/components/footer/preview) #### Markup #### Macro {% from 'footer/macro.njk' import govukFooter %} {{ govukFooter({}) }} ## 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 |
---|---|---|---|
meta | object | No | Object containing parameters for the meta navigation. |
meta.items | array | No | Array of items for use in the meta section of the footer. |
meta.items.{}.text | string | No | List item text in the meta section of the footer. |
meta.items.{}.href | string | No | List item href attribute in the meta section of the footer. |
navigation | array | No | Array of items for use in the navigation section of the footer. |
navigation.{}.title | string | No | Title for a section |
navigation.{}.columns | integer | No | Amount of columns to display items in navigation section of the footer. |
navigation.items | array | No | Array of items to display in the list in navigation section of the footer. |
navigation.items.{}.text | string | No | List item text in the navigation section of the footer. |
navigation.items.{}.href | string | No | List item href attribute in the navigation section of the footer. Both `text` and `href` attributes need to be present to create a link. |
containerClasses | string | No | Classes that can be added to the inner container, useful if you want to make the footer full width. |
classes | string | No | Optional additional classes to add to the footer component container. |
attributes | object | No | Any extra HTML attributes (for example data attributes) to add to the footer component container. |