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
Detected package dependencies: motion, lucide-react.
Account Access
Update your credentials or re-authenticate.
Installation
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.
| Prop | Type | Default | Description |
|---|---|---|---|
credentials | { email: string; passwordLength?: number }[] | - | Accounts the card cycles through, typing each one in |
animated | boolean | true | Turn the auto-fill animation off and show static values |
emailValue | string | "alfa@spectrum.com" | Email shown when animated is false |
passwordValue | string | - | Masked password shown when animated is false |
title | string | "Account Access" | Card heading |
description | string | "Update your credentials or re-authenticate." | Supporting copy under the heading |
emailLabel | string | "Email Address" | Label for the email field |
passwordLabel | string | "Current Password" | Label for the password field |
forgotLabel | string | "Forgot?" | Text of the forgot-password link |
buttonLabel | string | "Update Security" | Primary button text |
buttonIcon | ReactNode | - | Icon rendered inside the primary button; defaults to a lock |
dangerTitle | string | "Danger Zone" | Heading of the danger row |
dangerDescription | string | "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 |
className | string | - | 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.
Related components
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.