---
title: "Sign-in with error alert"
description: "A sign-in page for a notes app: one white card centred on cool paper, with email and password first, Google and Apple after an \"or\", and an alert when sign-in fails."
plan: Pro
docs: https://ui.edbn.me/docs/templates/sign-in-with-error-alert
---

# Sign-in with error alert

A sign-in page for a notes app: one white card centred on cool paper, with email and password first, Google and Apple after an "or", and an alert when sign-in fails.

Penwick is an invented brand: cobalt on cool paper, in DM Sans. A header carries the sign-up link and a footer the legal and help links, both 64px rows, so the card sits centred between them and holds only the form. It opens with sample values and a failed sign-in: the alert sits above the form and both fields are marked invalid. sample={false} opens it empty. Editing a field clears the error, an empty submit asks for both fields, and onSubmit can return a new message. The eye button shows the password and Enter submits. On phones the card takes the full width with a 16px gutter.

A Pro page template built on Base UI and Tailwind CSS v4.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/sign-in-with-error-alert
```

## Dependencies
- npm: lucide-react@^1.33.0, @fontsource-variable/dm-sans@^5.3.0
- edbn: edbn-base, alert, button, field, input, input-group, text-link

## Source

The source is part of Pro (https://ui.edbn.me/pricing). The install above adds it to the project, ready to edit.

## More authentication templates

All 10, with install commands: https://ui.edbn.me/docs/templates/authentication · https://ui.edbn.me/docs/templates/authentication.md

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
