BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@nswds/ui/footer-newsletter

Footer — Newsletter

nswds-ui/footer-newsletter
FreeBlock

Link columns beside a labelled email subscription form built on Field, Input and Button.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/digitalnsw/nswds-ui/main/apps/registry/public/r/footer-newsletter.json

Source

src/patterns/footer-newsletter.tsxraw.githubusercontent.com/digitalnsw/nswds-ui/main/apps/registry/public/r/footer-newsletter.json
1'use client'
2
3import type * as React from 'react'
4
5import { Button } from '@/components/button'
6import { Field, FieldDescription, FieldLabel } from '@/components/field'
7import { Footer, FooterNav, FooterNavColumn } from '@/components/footer'
8import { Input } from '@/components/input'
9import { IconMail } from '@/icons/mail'
10
11// ── Sample content — replace with your service's own ────────────────────────
12const columnsSample = [
13 {
14 heading: 'Services',
15 links: [
16 { name: 'Apply for a licence', href: '#licence' },
17 { name: 'Pay a fine', href: '#fine' },
18 { name: 'Book an appointment', href: '#appointment' },
19 ],
20 },
21 {
22 heading: 'About',
23 links: [
24 { name: 'Who we are', href: '#about' },
25 { name: 'Our strategy', href: '#strategy' },
26 { name: 'Careers', href: '#careers' },
27 ],
28 },
29]
30
31const legalLinksSample = [
32 { name: 'Accessibility', href: '#accessibility' },
33 { name: 'Privacy', href: '#privacy' },
34 { name: 'Copyright', href: '#copyright' },
35]
36
37const departmentSample = 'Digital NSW, Department of Customer Service'
38
39type FooterNewsletterProps = Omit<React.ComponentProps<typeof Footer>, 'children'> & {
40 columns?: typeof columnsSample
41 /** Called with the submitted email. Wire this to your subscription service. */
42 onSubscribe?: (email: string) => void
43}
44
45/**
46 * Link columns beside an email subscription form. Use for services that
47 * publish updates people opt into — grant rounds, policy changes, alerts.
48 *
49 * The form is a worked example: it prevents the default submit and hands the
50 * address to `onSubscribe`. Replace that with your own submission, and note
51 * that collecting an email address makes this a collection point under the
52 * PPIP Act — your privacy collection notice belongs next to the field.
53 *
54 * The label is a real `FieldLabel` inside a `Field`, so Base UI associates it
55 * with the input and generates per-instance ids; two of these on one page will
56 * not collide. Do not swap it for a placeholder — placeholders disappear on
57 * input and are not an accessible name.
58 */
59export function FooterNewsletter({
60 columns = columnsSample,
61 legalLinks = legalLinksSample,
62 department = departmentSample,
63 onSubscribe,
64 ...props
65}: FooterNewsletterProps) {
66 function handleSubmit(event: React.FormEvent<HTMLFormElement>) {
67 event.preventDefault()
68 const data = new FormData(event.currentTarget)
69 const email = data.get('email')
70// … truncated

What it pulls in

Other registry items

  • https://ui.digital.nsw.gov.au/registry/r/theme.json
  • https://ui.digital.nsw.gov.au/registry/r/footer.json
  • https://ui.digital.nsw.gov.au/registry/r/button.json
  • https://ui.digital.nsw.gov.au/registry/r/field.json
  • https://ui.digital.nsw.gov.au/registry/r/input.json
  • https://ui.digital.nsw.gov.au/registry/r/icons.json

Files it writes

  • src/patterns/footer-newsletter.tsx

Facts

Registry
@nswds/ui
Type
registry:block
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-20
Last confirmed
today

Go to the source

ui.digital.nsw.gov.au digitalnsw/nswds-ui on GitHub Raw registry item This item as JSON

More from @nswds/ui

All 46 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Footer — Collapsible Site Mapfooter-accordion@nswds/uiBlocksFreeno deps
Footer — Compact Barfooter-compact@nswds/uiBlocksFreeno deps
Footer — Contact Detailsfooter-contact@nswds/uiBlocksFreeno deps
Footer — Call to Actionfooter-cta@nswds/uiBlocksFreeno deps
Footer — Simple Centredfooter-simple-centred@nswds/uiBlocksFreeno deps
Footer — Site Mapfooter-sitemap@nswds/uiBlocksFreeno deps
Footer — Site Map with Brandfooter-sitemap-brand@nswds/uiBlocksFreeno deps
Forgot Password Formforgot-password-form@nswds/uiBlocksFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored on what can be checked

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex