Team: featured profile and biography
An individual profile pairs an initials panel with a biography and a short list of interests.
pnpm dlx shadcn@latest add @haze/team-featured-profile---
import { ArrowUpRight, MapPin } from "@lucide/astro";
import { cn } from "../../../lib/haze/utils";
interface Props {
id?: string;
eyebrow?: string;
title?: string;
headingLevel?: 1 | 2 | 3;
name?: string;
initials?: string;
role?: string;
location?: string;
biography?: string;
interests?: string[];
profileHref?: string;
class?: string;
}
const {
id = "team-featured-profile",
eyebrow = "Example team profile",
title = "The people behind the work",
headingLevel = 2,
name = "Avery Solis",
initials = "AS",
role = "Design lead",
location = "Barcelona, Spain",
biography = "Avery helps teams turn complicated problems into useful, thoughtful products. Their practice brings research, writing and design together from the first sketch to the final detail.",
interests = ["Making complex work feel approachable", "Building with small, focused teams", "Finding better questions to ask"],
profileHref,
class: className,
} = Astro.props;
const Heading = ({ 1: "h1", 2: "h2", 3: "h3" } as const)[headingLevel];
const PersonHeading = ({ 1: "h2", 2: "h3", 3: "h4" } as const)[headingLevel];
---
<section aria-labelledby={`${id}-title`} class={cn("bg-background px-6 py-20 sm:py-24", className)}>
<div class="mx-auto max-w-6xl">
<p class="text-[0.6875rem]/4 font-medium tracking-wider text-muted-foreground uppercase">{eyebrow}</p>
<Heading id={`${id}-title`} class="mt-3 text-3xl/9 font-semibold tracking-tight text-balance text-foreground sm:text-4xl/11">{title}</Heading>
<article class="mt-10 grid overflow-hidden rounded-2xl border border-border bg-card md:grid-cols-[minmax(0,0.85fr)_minmax(0,1.15fr)]">
<div class="flex flex-col justify-between gap-10 bg-foreground/5 p-7 sm:p-9">
<span aria-hidden="true" class="flex size-20 items-center justify-center rounded-2xl border border-frame bg-card text-2xl/8 font-semibold tracking-tight text-foreground">{initials}</span>
<div>
<PersonHeading class="text-2xl/8 font-semibold tracking-tight text-foreground">{name}</PersonHeading>
<p class="mt-1 text-sm/6 text-muted-foreground">{role}</p>
<p class="mt-4 flex items-center gap-2 text-[0.8125rem]/5 text-muted-foreground"><MapPin aria-hidden="true" class="size-4 shrink-0" />{location}</p>
</div>
</div>
<div class="border-t border-border p-7 sm:p-9 md:border-t-0 md:border-l">
<p class="text-[0.6875rem]/4 font-medium tracking-wider text-muted-foreground uppercase">A little about {name}</p>
<p class="mt-4 text-base/7 text-pretty text-foreground">{biography}</p>
<div class="mt-8 border-t border-border pt-6">
<p class="text-sm/5 font-medium text-foreground">What they care about</p>
<ul class="mt-3 space-y-2 text-sm/6 text-muted-foreground">{interests.map((interest) => <li class="flex gap-3"><span aria-hidden="true" class="text-foreground">—</span>{interest}</li>)}</ul>
</div>
{profileHref && <a href={profileHref} class="mt-7 inline-flex min-h-6 items-center gap-1 rounded-sm text-sm/5 font-medium text-foreground underline-offset-4 hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring">Read {name}'s profile <ArrowUpRight aria-hidden="true" class="size-4" /></a>}
</div>
</article>
</div>
</section>When to use
- Introducing one person with more context than a compact team card allows
- A team page needs a profile without relying on a portrait
When not to use
- Several teammates should have equal emphasis; use team-profile-grid
Installation
Add the Haze registry to components.json once, then install Team: featured profile and biography with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.
pnpm dlx shadcn@latest add @haze/team-featured-profilenpx shadcn@latest add @haze/team-featured-profileyarn dlx shadcn@latest add @haze/team-featured-profilebunx --bun shadcn@latest add @haze/team-featured-profileFirst time? Registry and theme setup
1. Add to components.json:
{
"registries": {
"@haze": "http://localhost:4329/r/{name}.json"
}
}2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| id | string | "team-featured-profile" | Unique section ID prefix. |
| eyebrow | string | "Example team profile" | Label above the heading; the default identifies the fictional profile. |
| title | string | demo heading | Section heading. |
| headingLevel | 1 | 2 | 3 | 2 | Heading level; the person's name uses the next level. |
| name | string | "Avery Solis" | Person's name; the default is fictional. |
| initials | string | "AS" | Decorative initials used in place of a portrait. |
| role | string | "Design lead" | Person's role. |
| location | string | "Barcelona, Spain" | Location shown beneath the role. |
| biography | string | fictional biography | Short profile biography. |
| interests | string[] | 3 example interests | Short list of areas the person cares about. |
| profileHref | string | – | Optional destination for a fuller profile. |
| class | string | – | Additional section classes. |
Keyboard interactions
- Tab, Enter
- Follow the optional profile link.
Accessibility
- The profile has a heading and full name; initials and the location icon are decorative.
- A descriptive profile link is rendered only when its destination is supplied.
Notes for AI
Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.
Install and use
Install the Haze UI block "Team: featured profile and biography" with `npx shadcn@latest add @haze/team-featured-profile`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import TeamFeaturedProfile from "@/components/haze/blocks/team-featured-profile.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/blocks/team-featured-profile.md
Customize with real content
Adapt the Haze team-featured-profile block for our product. Replace the demo values of these props with our real content: id, eyebrow, title, headingLevel, name, initials, role, location, biography, interests, profileHref, class. Keep the layout, the heading level rules and these accessibility details: The profile has a heading and full name; initials and the location icon are decorative. A descriptive profile link is rendered only when its destination is supplied. Do not add raw color classes; use the Haze tokens.
Choose the right block
Before using team-featured-profile, check it fits: use it when introducing one person with more context than a compact team card allows; a team page needs a profile without relying on a portrait. Avoid it when several teammates should have equal emphasis; use team-profile-grid. Alternatives: @haze/team-profile-grid.
Dependencies
- npm: @lucide/astro
- @haze/utils
- @haze/theme (one-time setup)
Source · Original Haze UI work.