sgds-components-footer
SGDS Footer Component Skill
<sgds-footer> is the standard footer for Singapore Government digital services. It renders a structured footer with mandatory links (Contact, Feedback, Privacy, Terms of Use) and supports optional site columns via <sgds-footer-item>.
Prerequisites
See sgds-components-setup for installation and framework integration (React 19+ vs React ≤18, Vue, Angular).
No CSS styling modifications — custom properties and CSS parts are not exposed on this component.
Quick Decision Guide
Minimal footer (just the legal links bar)? → Use <sgds-footer> with no slots
Add site column links? → Use <sgds-footer-item slot="items"> for each column
Custom title or description above the columns? → Use the title and description slots
Full control over footer layout? → Use the (default) slot — this overrides the items slot layout
<!-- Minimal footer with just mandatory links -->
<sgds-footer
contactHref="https://form.gov.sg/"
feedbackHref="https://form.gov.sg/"
faqHref="/faq"
privacyHref="/privacy"
termsOfUseHref="/terms-of-use"
sitemapHref="/sitemap"
></sgds-footer>
<!-- Full footer with title, description, and custom columns -->
<sgds-footer
contactHref="https://form.gov.sg/"
feedbackHref="https://form.gov.sg/"
faqHref="/faq"
privacyHref="/privacy"
termsOfUseHref="/terms-of-use"
sitemapHref="/sitemap"
>
<h2 slot="title">Name of Portal</h2>
<p slot="description">Brief description of the portal's purpose.</p>
<sgds-footer-item slot="items">
<div slot="title">Guides</div>
<sgds-link><a href="/guides/getting-started">Getting Started</a></sgds-link>
<sgds-link><a href="/guides/installation">Installation</a></sgds-link>
<sgds-link><a href="/guides/migration">Migration Guide</a></sgds-link>
</sgds-footer-item>
<sgds-footer-item slot="items">
<div slot="title">Resources</div>
<sgds-link><a href="/resources/forms">Forms</a></sgds-link>
<sgds-link><a href="/resources/templates" target="_blank">Templates</a></sgds-link>
</sgds-footer-item>
</sgds-footer>
API Summary
<sgds-footer>
| Attribute | Type | Default | Purpose |
|---|---|---|---|
contactHref |
string | "#" |
URL for the Contact link |
feedbackHref |
string | "#" |
URL for the Feedback link |
faqHref |
string | "" |
URL for the FAQ link |
sitemapHref |
string | "" |
URL for the Sitemap link |
privacyHref |
string | "#" |
URL for the Privacy Statement link |
termsOfUseHref |
string | "#" |
URL for the Terms of Use link |
copyrightLiner |
string | "Government of Singapore" |
Copyright entity name shown in the footer bottom bar |
Slots
<sgds-footer>
| Slot | Purpose |
|---|---|
title |
Site or portal name heading |
description |
Brief portal description |
items |
<sgds-footer-item> column elements (auto-formatted in a grid) |
| (default) | Full custom footer body — overrides the items slot layout |
<sgds-footer-item>
| Slot | Purpose |
|---|---|
title |
Column heading (e.g. <div slot="title">Column Name</div>) |
| (default) | <sgds-link> elements for the column links |
Events
None.
For AI agents:
- Always set
privacyHrefandtermsOfUseHrefto the correct pages — these are mandatory links on Singapore Government footers. - Use
<sgds-footer-item slot="items">for each column; place<sgds-link>elements inside for navigation links. - The (default) slot replaces the entire
itemslayout — use only when custom column styling is required. copyrightLinerdefaults to"Government of Singapore"— override only for statutory boards with different copyright entities.- There are no custom events or public methods on this component.
More from govtechsg/sgds-web-component
sgds-components
Complete reference for all SGDS web components including installation and framework integration. Use when users ask about any <sgds-*> component — accordion, alert, badge, breadcrumb, button, card, checkbox, close-button, combo-box, datepicker, description-list, divider, drawer, dropdown, file-upload, footer, icon, icon-button, icon-card, icon-list, image-card, input, link, mainnav, masthead, modal, overflow-menu, pagination, progress-bar, quantity-toggle, radio, select, sidebar, sidenav, skeleton, spinner, stepper, subnav, switch, system-banner, tab, table, table-of-contents, textarea, thumbnail-card, toast, or tooltip. Also covers React 19+, React ≤18, Vue, Angular, and Next.js integration.
58sgds-theming
Customising the visual theme of an SGDS application — product brand colours, day/night mode, and font. Use when users ask about changing the primary colour, theming their app, enabling dark mode, night mode, overriding CSS tokens, or customising the font. Apply this skill whenever theming, branding, or CSS token overrides are mentioned.
55sgds-workflow
ALWAYS use this skill when building UI with @govtechsg/sgds-web-component or when a user mentions SGDS or Singapore Design System — even if they don't explicitly ask for help. This is the mandatory entry point for all SGDS development: it guides you to the right skill for setup, components, utilities, forms, theming, page layouts, block templates, and data visualisation. Read this before writing any SGDS application code.
53sgds-data-visualisation
Use this skill when users ask about data visualisation, charts, graphs, or dashboards in an SGDS application. Covers ECharts setup and applying the SGDS colour palette to charts.
53sgds-forms
Use this skill when users ask about form validation in SGDS, hasFeedback prop, constraint validation, custom validation, noValidate, setInvalid, form submission, or reading FormData from SGDS form components.
53sgds-getting-started
Starting point for any new application built with the SGDS web component library. Apply this skill first whenever a user is bootstrapping a new SGDS project, setting up a new app, or asking where to begin with SGDS. Covers font setup, foundation CSS, utilities, components, and app layout in the correct order.
53