Skip to main content
BlocksForm LayoutMember registration form with responsive grid

shadcn/ui Form Layout blockMember registration form with responsive grid

A clean shadcn/ui registration form laid out on a six-column responsive grid with name, email and address fields, required markers and a separator before the action row. Uses shadcn/ui Field, FieldLabel, Input, Separator and Button. Suited to onboarding members into an organisation workspace or collecting contact details.

Free@shadcnpro/form-layout-01

Preview

Installation

npx shadcn@latest add @shadcnpro/form-layout-01

First time? Add the @shadcnpro registry to components.json as shown in Installation. Free blocks install without a license key.

Let your AI editor install it

The shadcn/ui Pro MCP server lets Cursor, Claude Code and VS Code find and install blocks like Member registration form with responsive grid from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

Member registration form with responsive grid uses Button, Field, Input and Separator.

npx shadcn@latest add button field input separator

Copy the code

Paste it into components/blocks/form-layout-01.tsx.

components/blocks/form-layout-01.tsx
'use client';

import { Button } from '@/components/ui/button';
import { Field, FieldLabel } from '@/components/ui/field';
import { Input } from '@/components/ui/input';
import { Separator } from '@/components/ui/separator';

/**
 * Member registration form with a responsive six-column grid.
 */
export default function FormLayout01() {
  return (
    <div className="flex w-full items-center justify-center px-4 py-10">
      <div className="w-full sm:mx-auto sm:max-w-2xl">
        <h3 className="text-balance font-semibold text-2xl text-foreground">
          Join your organisation on Meridian
        </h3>
        <p className="mt-1 text-pretty text-muted-foreground text-sm">
          Tell us who you are so your climate datasets land in the right research group.
        </p>
        <form action="#" className="mt-8" method="post">
          <div className="grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-6">
            <div className="col-span-full sm:col-span-3">
              <Field className="gap-2">
                <FieldLabel htmlFor="first-name">
                  First name
                  <span className="text-destructive">*</span>
                </FieldLabel>
                <Input
                  autoComplete="given-name"
                  id="first-name"
                  name="first-name"
                  placeholder="Ingrid"
                  required
                  type="text"
                />
              </Field>
            </div>
            <div className="col-span-full sm:col-span-3">
              <Field className="gap-2">
                <FieldLabel htmlFor="last-name">
                  Last name
                  <span className="text-destructive">*</span>
                </FieldLabel>
                <Input
                  autoComplete="family-name"
                  id="last-name"
                  name="last-name"
                  placeholder="Halvorsen"
                  required
                  type="text"
                />
              </Field>
            </div>
            <div className="col-span-full">
              <Field className="gap-2">
                <FieldLabel htmlFor="email">
                  Work email
                  <span className="text-destructive">*</span>
                </FieldLabel>
                <Input
                  autoComplete="email"
                  id="email"
                  name="email"
                  placeholder="ingrid@polarlab.org"
                  required
                  type="email"
                />
              </Field>
            </div>
            <div className="col-span-full">
              <Field className="gap-2">
                <FieldLabel htmlFor="address">Institute address</FieldLabel>
                <Input
                  autoComplete="street-address"
                  id="address"
                  name="address"
                  placeholder="Forskningsparken 14"
                  type="text"
                />
              </Field>
            </div>
            <div className="col-span-full sm:col-span-2">
              <Field className="gap-2">
                <FieldLabel htmlFor="city">City</FieldLabel>
                <Input
                  autoComplete="address-level2"
                  id="city"
                  name="city"
                  placeholder="Tromsø"
                  type="text"
                />
              </Field>
            </div>
            <div className="col-span-full sm:col-span-2">
              <Field className="gap-2">
                <FieldLabel htmlFor="region">Region</FieldLabel>
                <Input
                  autoComplete="address-level1"
                  id="region"
                  name="region"
                  placeholder="Troms"
                  type="text"
                />
              </Field>
            </div>
            <div className="col-span-full sm:col-span-2">
              <Field className="gap-2">
                <FieldLabel htmlFor="postal-code">Postal code</FieldLabel>
                <Input
                  autoComplete="postal-code"
                  id="postal-code"
                  name="postal-code"
                  placeholder="9019"
                />
              </Field>
            </div>
          </div>
          <Separator className="my-6" />
          <div className="flex items-center justify-end space-x-4">
            <Button className="whitespace-nowrap" type="button" variant="outline">
              Cancel
            </Button>
            <Button className="whitespace-nowrap" type="submit">
              Request access
            </Button>
          </div>
        </form>
      </div>
    </div>
  );
}

Use it

Import it where you need it and update the import path to match your project.

Usage
import FormLayout01 from '@/components/blocks/form-layout-01';

export default function Page() {
  return <FormLayout01 />;
}

Overview

Member registration form with responsive grid is a free form layout block for shadcn/ui. It is built from the Button, Field, Input and Separator components, and installs as a single file you own and can edit.

It only uses semantic tokens such as bg-background, text-muted-foreground and border-border, so it follows your theme, radius and fonts and switches with dark mode. It is responsive from desktop to mobile; the width controls above the preview show each size. The same layout is in the shadcn/ui Pro Figma kit, so design and code start from one source.

Category
Form Layout
Component library
Radix UI (radix-ui)
Also available for
Base UI, React Aria
Built with
Button, Field, Input and Separator
npm packages
None
Files
components/blocks/form-layout-01.tsx
Access
Free, installs without a license key

Frequently asked questions

Pricing, installation and Radix UI details for Member registration form with responsive grid.