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/forgot-password-form

Forgot Password Form

nswds-ui/forgot-password-form
FreeBlock

A forgot-password form worked example (Card + Field + Input + Button) wired with NSWDS components. Copy-and-adapt block — not a published component.

Install it

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

Source

src/patterns/forgot-password-form.tsxraw.githubusercontent.com/digitalnsw/nswds-ui/main/apps/registry/public/r/forgot-password-form.json
1'use client'
2
3import type * as React from 'react'
4
5import { Button } from '@/components/button'
6import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/card'
7import { Field, FieldDescription, FieldGroup, FieldLabel } from '@/components/field'
8import { Input } from '@/components/input'
9import { Link } from '@/components/link'
10import { cn } from '@/lib/utils'
11
12/**
13 * ForgotPasswordForm — the password-reset request step that pairs with the
14 * "Forgot your password?" link in LoginForm.
15 *
16 * A composed pattern (Card + Field + Input + Button), published as a worked
17 * example: copy the source and wire the single email field to your own reset
18 * handler rather than configuring it through props.
19 *
20 * Single-field by design. The flow is intentionally minimal — collect the
21 * email, send the reset link, and (for account-enumeration safety) show the
22 * same confirmation whether or not the address is registered.
23 */
24export function ForgotPasswordForm({ className, ...props }: React.ComponentProps<'div'>) {
25 return (
26 <div className={cn('flex flex-col gap-6', className)} {...props}>
27 <Card className='w-full'>
28 <CardHeader>
29 <CardTitle>Forgot your password?</CardTitle>
30 <CardDescription>
31 Enter the email address for your account and we&apos;ll send you a link to reset your
32 password.
33 </CardDescription>
34 </CardHeader>
35 <CardContent>
36 <form>
37 <FieldGroup>
38 {/* No htmlFor/id wiring: the Field associates the label with the
39 * control automatically (Base UI generates the id per instance). */}
40 <Field>
41 <FieldLabel>Email</FieldLabel>
42 <Input type='email' autoComplete='email' placeholder='m@example.com' required />
43 </Field>
44 <Field>
45 <Button type='submit'>Send reset link</Button>
46 </Field>
47 <Field>
48 <FieldDescription className='text-center'>
49 Remembered your password? <Link href='#'>Back to login</Link>
50 </FieldDescription>
51 </Field>
52 </FieldGroup>
53 </form>
54 </CardContent>
55 </Card>
56 </div>
57 )
58}

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/button.json
  • https://ui.digital.nsw.gov.au/registry/r/card.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/link.json

Files it writes

  • src/patterns/forgot-password-form.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 — Newsletterfooter-newsletter@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

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