Launch price: lifetime access for $149, $199 after

Member Card

A member row carries four different situations wearing the same face: someone active, someone invited who never accepted, someone from another company on borrowed time, and someone suspended. Each needs different words and a different list of things you can do about it.

WorkspaceFree398 lines · one file

The decision inside it

The menu is derived from the row

A generic View / Edit / Remove is identical on every row and so tells an admin nothing. “Remove from workspace” on someone who never accepted the invite is a lie about what is being undone.

Installation

How you get it

One command. The CLI writes the file into components/ui/ and installs what it needs.

npx shadcn@latest add https://layropro.com/r/member-card

API

“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

PropTypeNotes
namestringDisplay name. Falls back to the local part of the email.
emailrequiredstringEmail address. Doubles as the avatar seed, so a face is stable per person.
avatarstringPhoto. The drawn portrait stands in until there is one.
roleMemberRoleWhat they may do.
statusMemberStatusWhere they stand.
titlestringJob title or team, shown under the name when there is room.
lastActivestringFree-text activity line, e.g. "Active 2 hours ago".
invitedAgostringHow long a pending invite has been waiting, e.g. "6 days".
accessEndsstringWhen external access ends, e.g. "12 Oct".
youbooleanMarks the signed-in person; the name gets "(you)" and the menu is hidden.
premiumbooleanThe seat is on the paid plan. Drawn in gold, which is the one thing in this card that is neither neutral nor a warning. It is deliberately the last badge on the line: a pending invite is something an admin has to act on, a premium seat is something they are paying for, and the thing to act on comes first.
showMenubooleanShow the overflow menu button. Ignored for an owner. Default: true.
menuItemsMenuItem[]Replace the menu's contents. The default list is derived from `status`, because the useful action on a row is almost always the one its standing implies — resend a stale invite, extend an expiring access, reactivate a suspended seat.
interactivebooleanHover lift and press feedback. Default: true.
onOpen() => void—
onMenuSelect(id: string, item: MenuItem) => voidFired with the chosen item's `id`.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themeavatarmenurole-chip

Lifetime access

Every component, and everything we ship next.

  • All 65 components, source included
  • The template, and everything released after you buy
  • shadcn CLI or download — React 18/19, Tailwind v4
  • One payment. No subscription.

More in Workspace