GOV.UK Frontend
Components
All components
Examples
Full page examples
With single page
- Announcements
- Bank holidays
- Campaign page
- Child maintenance (exit this page)
- Companies you follow (service navigation with service name)
- Companies you follow (service navigation with slots)
- Confirm delete
- Cookie banner (client side)
- Cookie banner (essential cookies)
- Cookie banner (server side with progressive enhancement)
- Search
- Start page
- Task list
- Topic page (service manual)
- Travel guidance
- Upload your photo (with success message)
- Work history
With multiple pages
- Check your answers
- Feedback
- Have you changed your name
- How do you want to sign in
- Make a payment
- Passport details
- Sign in to a service
- Update your account details
- Upload your photo (with confirmation page)
- What is your address
- What is your nationality
- What is your postcode
- What was the last country you visited
Other examples
- Button groups
- Conditional reveals
- Error messages
- Error summary
- Error summary with messages
- Error summary with one thing per page
- Exit this page with skiplink
- Footer alignment
- Form alignment
- Form controls states
- Form elements
- Grid
- Javascript errors
- Labels legends and headings
- Links
- Multiple radio groups
- Organisation colours
- Small form controls
- Template custom
- Template default
- Text alignment
- Translated
- Typography
Documentation
Sass API reference
JavaScript API reference
JavaScript modules
- Entry file name
-
all.mjs
- Total file size
-
86.94 KiB (bundled)
43.11 KiB (minified)
Accordion
- File name
-
accordion.mjs
- File size
-
25.46 KiB (bundled)
12.93 KiB (minified)
Button
- File name
-
button.mjs
- File size
-
7.96 KiB (bundled)
3.31 KiB (minified)
Character count
- File name
-
character-count.mjs
- File size
-
24.39 KiB (bundled)
10.5 KiB (minified)
Checkboxes
- File name
-
checkboxes.mjs
- File size
-
7.81 KiB (bundled)
3.42 KiB (minified)
Error summary
- File name
-
error-summary.mjs
- File size
-
9.87 KiB (bundled)
4.07 KiB (minified)
Exit this page
- File name
-
exit-this-page.mjs
- File size
-
19.08 KiB (bundled)
9.86 KiB (minified)
File upload
- File name
-
file-upload.mjs
- File size
-
17 KiB (bundled)
8.19 KiB (minified)
Header
- File name
-
header.mjs
- File size
-
6.46 KiB (bundled)
3.22 KiB (minified)
Notification banner
- File name
-
notification-banner.mjs
- File size
-
8.24 KiB (bundled)
3.23 KiB (minified)
Password input
- File name
-
password-input.mjs
- File size
-
17.13 KiB (bundled)
7.86 KiB (minified)
Radios
- File name
-
radios.mjs
- File size
-
6.81 KiB (bundled)
2.98 KiB (minified)
Service navigation
- File name
-
service-navigation.mjs
- File size
-
6.44 KiB (bundled)
3.26 KiB (minified)
Skip link
- File name
-
skip-link.mjs
- File size
-
6.4 KiB (bundled)
2.76 KiB (minified)
Tabs
- File name
-
tabs.mjs
- File size
-
12.04 KiB (bundled)
6.67 KiB (minified)