Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-profile-card.json --yes

Profile card

Pro

A person's own page header, for an account, profile, customer or patient page, for React and Tailwind CSS. Part of Goop Pro.

Press the picture to open its photo menu: Upload photo picks a picture from your device and shows it, Remove photo takes it away; add the card’s one action and press it (counted); Tab walks the picture, then the action. The photo stays in this browser tab and is sent nowhere, and Edit profile only counts its presses.

When to use

  • A person's own page header, for an account, profile, customer or patient page.

Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Profile card on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.

Terminal
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-profile-card.json --yes
PROMPT
Add the Goop Profile card to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { useState } from 'react';
import { Button } from '@/components/ui/goop/button';
import { ProfileCard } from '@/components/ui/goop/profile-card';

function AccountHeader() {
  const [photo, setPhoto] = useState<string | undefined>(undefined);
  return (
    <ProfileCard
      name="Teodora Valk"
      description="teodora@fieldwork.test"
      src={photo}
      onPhotoUpload={(file) => setPhoto(URL.createObjectURL(file))}
      onPhotoRemove={() => setPhoto(undefined)}
      action={<Button variant="ghost">Edit profile</Button>}
    />
  );
}
  • Fits: record, account: header (subject: person).
  • Put it first on the person's page, the page's width; their facts go in Properties under it, never in the card. Keep the photo yourself: on upload, show the file (URL.createObjectURL(file)) as src, and send it where you keep photos; on remove, clear src. One action at most (Edit profile, Message): more go in the page's header.

API reference

Options
OptionTypeWhat it does
namestringThe person's name: the card's title, and the picture's initials while there is no photo.
description?ReactNodeThe one line under the name: their email, their role.
src?string | undefinedThe person's photo; with none, their initials on their colour.
fill?string | undefinedThe picture's own colour (the person's, content, never the theme's); with none, a colour taken from the name.
onPhotoUpload?(file: File) => voidUpload photo was picked and a file chosen: show it (src).
onPhotoRemove?() => voidRemove photo was picked (it is off while there is no src).
action?ReactNodeThe card's one action, at the end of the name's line: the theme's Button.

Accessibility

  • The native element answers the keyboard.

Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

goop.so/themes/meadow/components/profile-card.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-profile-card.json --yes

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.