Account Access Card

Overview

A credentials card that auto-fills email and password on a loop, with a danger zone.

This form component is intended for interfaces that need a credentials card that auto-fills email and password on a loop, with a danger zone, authentication flows, and settings forms. Its implementation is provided as editable source so the final behavior and styling stay inside your project.

Technologies

React
TypeScript
Tailwind CSS
Motion

Detected package dependencies: motion, lucide-react.

@spectrumui/account-access-card

Account Access

Update your credentials or re-authenticate.

Installation

Login to view commandCreate a free account to access the install command

Usage

import { AccountAccessCard } from "@/components/spectrumui/account-access-card"
<AccountAccessCard
  credentials={[{ email: "alfa@spectrum.com", passwordLength: 14 }]}
  onSubmit={() => console.log("update security")}
/>

API Reference

AccountAccessCard

Cycles through credentials, typing each email and a masked password into the fields while the card is in view. Set animated to false to show emailValue and passwordValue statically. Users who prefer reduced motion see the first credential without typing.

PropTypeDefaultDescription
credentials{ email: string; passwordLength?: number }[]-Accounts the card cycles through, typing each one in
animatedbooleantrueTurn the auto-fill animation off and show static values
emailValuestring"alfa@spectrum.com"Email shown when animated is false
passwordValuestring-Masked password shown when animated is false
titlestring"Account Access"Card heading
descriptionstring"Update your credentials or re-authenticate."Supporting copy under the heading
emailLabelstring"Email Address"Label for the email field
passwordLabelstring"Current Password"Label for the password field
forgotLabelstring"Forgot?"Text of the forgot-password link
buttonLabelstring"Update Security"Primary button text
buttonIconReactNode-Icon rendered inside the primary button; defaults to a lock
dangerTitlestring"Danger Zone"Heading of the danger row
dangerDescriptionstring"Archive account and remove access"Copy of the danger row
onSubmit() => void-Fires when the primary button is pressed
onForgot() => void-Fires when the forgot-password link is pressed
onDanger() => void-Fires when the danger row is pressed
classNamestring-Additional classes merged with the root styles

Use cases

  • interfaces that need a credentials card that auto-fills email and password on a loop, with a danger zone
  • authentication flows
  • settings forms

Features

  • Copy-paste source that remains in your repository
  • TypeScript source included with the component
  • Tailwind CSS classes editable in the component source
  • Animation implemented with Motion
  • Spectrum UI registry dependencies: @spectrumui/use-typewriter

Accessibility

  • The source includes ARIA attributes or roles; preserve them when customizing the component.
  • No reduced-motion marker was detected; add or verify a reduced-motion path before production use.
  • Test focus order, keyboard operation, labels, contrast, and screen-reader output in the final application context.

Customization

  • Edit the Tailwind utility classes in the copied source to match your spacing, color, and typography tokens.
  • Use the documented className surface for local layout adjustments, then edit the source for structural changes.
  • Adjust Motion transitions in the source and keep the reduced-motion behavior aligned with the final interaction.

Account Access Card FAQ

Is Account Access Card free to use in commercial projects?

Yes. The public Account Access Card source is available under the Apache License 2.0, including for commercial use, subject to the LICENSE terms.

How do I install Account Access Card?

Run npx shadcn@latest add @spectrumui/account-access-card. The page also exposes the source for manual installation.

Does Account Access Card require Motion?

Yes. Motion usage was detected in the documented source or registry dependencies for Account Access Card.

Does Account Access Card use shadcn/ui or Radix UI?

No shadcn/ui or Radix UI dependency was detected in the documented Account Access Card source.

Can I use Account Access Card in Next.js?

The documented React source is used in this Next.js application. Keep its use client directive when copying it into the App Router. Install the detected dependencies and verify any application-specific data or image configuration.

What accessibility checks should I run for Account Access Card?

The source includes ARIA markup. Test the finished interface with keyboard and screen-reader workflows.

Work with me