114
The card behind your avatar: who you're signed in as, how far your profile has come and the one step to do next, plus your menu and theme.
akaprofile menu·user menu
Run this in any project set up for the shadcn CLI. It copies the Account Card source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/account-card.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { AccountCard } from "@/components/account-card";
export default function Page() {
return <AccountCard />;
}A free React component in the Workspace collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Account Card source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| userrequired | { name: string; email: string; initials: string; plan?: string } | — |
| itemsrequired | AccountCardItem[] | — |
| steps | AccountCardStep[] | [] |
| theme | ThemeChoice | — |
| onThemeChange | (theme: ThemeChoice) => void | — |
| onSelect | (id: string) => void | — |
| onSignOut | () => void | — |
| className | string | — |