GOV.UK Frontend
Components
All components
Examples
Full page examples
With single page
- Announcements
- Bank holidays
- Campaign page
- Child maintenance
- 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
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
- Scoped initialisation
- 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
-
70.21 KiB (bundled)
36.77 KiB (minified)
Accordion
- File name
-
accordion.mjs
- File size
-
21.67 KiB (bundled)
12.42 KiB (minified)
Button
- File name
-
button.mjs
- File size
-
4.67 KiB (bundled)
2.16 KiB (minified)
Character count
- File name
-
character-count.mjs
- File size
-
21.24 KiB (bundled)
9.45 KiB (minified)
Checkboxes
- File name
-
checkboxes.mjs
- File size
-
5.83 KiB (bundled)
2.83 KiB (minified)
Error summary
- File name
-
error-summary.mjs
- File size
-
6.57 KiB (bundled)
2.92 KiB (minified)
Exit this page
- File name
-
exit-this-page.mjs
- File size
-
16.04 KiB (bundled)
8.86 KiB (minified)
Header
- File name
-
header.mjs
- File size
-
4.46 KiB (bundled)
2.6 KiB (minified)
Notification banner
- File name
-
notification-banner.mjs
- File size
-
4.93 KiB (bundled)
2.09 KiB (minified)
Radios
- File name
-
radios.mjs
- File size
-
4.83 KiB (bundled)
2.38 KiB (minified)
Skip link
- File name
-
skip-link.mjs
- File size
-
4.39 KiB (bundled)
2.18 KiB (minified)
Tabs
- File name
-
tabs.mjs
- File size
-
10.13 KiB (bundled)
6.11 KiB (minified)