Skip to Content

Account Card

Account summary card for billing and profile pages: a header with avatar, name and optional actions above a divided description list showing the last invoice date and amount with an optional status.

Installation

pnpm dlx shadcn@latest add @01orbital/account-card

Usage

import { AccountCard } from "@/components/card/account-card"

Needs props to render

Pass name, invoice, labels; see the API reference below.

API reference

A billing summary card: the account's name and avatar over its last invoice's date and amount. Other props go to the Card.

Prop

Type

It also accepts the HTML attributes of the element it renders, and the props of the stock Card it builds on.

Dependencies

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

The shadcn parts here are their Base UI versions, and this piece uses Base UI's API. A Radix version you already have won't work with it.

Used in blocks

One block is built with Account Card.

Last updated on