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/sign-up-form

Sign-up Form

nswds-ui/sign-up-form
FreeBlock

A sign-up 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/sign-up-form.json

Source

src/patterns/sign-up-form.tsxraw.githubusercontent.com/digitalnsw/nswds-ui/main/apps/registry/public/r/sign-up-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 {
8 Field,
9 FieldDescription,
10 FieldGroup,
11 FieldLabel,
12 FieldLegend,
13 FieldSet,
14} from '@/components/field'
15import { Input } from '@/components/input'
16import { LabeledSeparator } from '@/components/labeled-separator'
17import { Link } from '@/components/link'
18import { IconLogin } from '@/icons/login'
19import { IconPersonAdd } from '@/icons/person-add'
20import { cn } from '@/lib/utils'
21
22/**
23 * SignUpForm — the account-creation counterpart to LoginForm.
24 *
25 * A composed pattern (Card + Field + Input + Button), published as a worked
26 * example: copy the source and wire the fields to your own registration
27 * handler rather than configuring it through props.
28 *
29 * Best-practice notes baked in:
30 * - Single sign-on (Microsoft Entra ID) leads as the recommended path with
31 * solid emphasis; email + password registration is the fallback, grouped
32 * in a FieldSet whose legend names the set for assistive tech.
33 * - `autoComplete="new-password"` on both the password and confirm-password
34 * fields tells password managers to offer/save a generated password (vs.
35 * the `current-password` hint LoginForm uses).
36 * - A visible password-requirements hint is associated with the input via
37 * `aria-describedby` so screen readers announce the rules (WCAG 3.3.2).
38 * - Terms acceptance is communicated inline at the point of action rather
39 * than via a pre-checked checkbox.
40 */
41export function SignUpForm({ className, ...props }: React.ComponentProps<'div'>) {
42 return (
43 <div className={cn('flex flex-col gap-6', className)} {...props}>
44 <Card className='w-full'>
45 <CardHeader>
46 <CardTitle>Create your account</CardTitle>
47 <CardDescription>Enter your details below to create a new account.</CardDescription>
48 </CardHeader>
49 <CardContent>
50 <form>
51 <FieldGroup>
52 {/*
53 * Single sign-on first: NSW Government staff authenticate with
54 * Microsoft Entra ID, so SSO is the recommended path and carries
55 * primary (solid) emphasis. Email + password registration is the
56 * fallback below the separator.
57 */}
58 <Field>
59 <FieldDescription>
60// … 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/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/labeled-separator.json
  • https://ui.digital.nsw.gov.au/registry/r/link.json
  • https://ui.digital.nsw.gov.au/registry/r/icons.json

Files it writes

  • src/patterns/sign-up-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