# auth-02

> auth-02

A shadcn/ui block from the [@intentui](https://intentui.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/intentui/auth-02).

- Page, with a live preview: https://shadcn.exchange/r/intentui/auth-02
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/intentui/auth-02-light-6e6c60b1242235c5.png
- Registry item: https://intentui.com/r/auth-02
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://intentui.com/r/auth-02
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `react-aria-components`
- Registry items: `https://intentui.com/r/avatar`, `https://intentui.com/r/button`, `https://intentui.com/r/field`, `https://intentui.com/r/input`, `https://intentui.com/r/link`, `https://intentui.com/r/text`, `https://intentui.com/r/text-field`

## Files

### `registry/blocks/auth-02/page.tsx`

```tsx
"use client"

import { Form } from "react-aria-components/Form"
import { Avatar } from "@/components/ui/avatar"
import { Button } from "@/components/ui/button"
import { FieldError, Fieldset, Label, Legend } from "@/components/ui/field"
import { Input } from "@/components/ui/input"
import { Link } from "@/components/ui/link"
import { Text } from "@/components/ui/text"
import { TextField } from "@/components/ui/text-field"

export default function Component() {
  return (
    <main className="flex min-h-dvh items-center justify-center p-6">
      <div className="w-full max-w-sm">
        <Link href="#" aria-label="Goto homepage" className="mb-2 inline-block">
          <Avatar isSquare src="https://design.intentui.com/logo" size="md" />
        </Link>
        <Form>
          <Fieldset>
            <Legend className="text-xl/10">Sign in</Legend>
            <Text>
              Access your account to manage projects, view analytics, and collaborate with your
              team.
            </Text>

            <TextField isRequired>
              <Label>Email</Label>
              <Input placeholder="you@domain.com" type="email" />
              <FieldError />
            </TextField>
            <div data-slot="control">
              <Button className="w-full" type="submit">
                Get magic link
              </Button>
            </div>
          </Fieldset>
        </Form>
      </div>
    </main>
  )
}
```
