# Team: featured profile and biography

> An individual profile pairs an initials panel with a biography and a short list of interests.

- Kind: block · Category: Team · Interactivity: native
- Install: `npx shadcn@latest add @haze/team-featured-profile`
- File: `src/components/haze/blocks/team-featured-profile.astro`
- npm dependencies: @lucide/astro
- Registry dependencies: @haze/utils
- Docs page: https://hazeui.com/blocks/team-featured-profile

## Use 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 when
- Several teammates should have equal emphasis; use team-profile-grid

## Alternatives
- [team-profile-grid](https://hazeui.com/blocks/team-profile-grid.md)

## Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| id | `string` | "team-featured-profile" | no | Unique section ID prefix. |
| eyebrow | `string` | "Example team profile" | no | Label above the heading; the default identifies the fictional profile. |
| title | `string` | demo heading | no | Section heading. |
| headingLevel | `1 \| 2 \| 3` | 2 | no | Heading level; the person's name uses the next level. |
| name | `string` | "Avery Solis" | no | Person's name; the default is fictional. |
| initials | `string` | "AS" | no | Decorative initials used in place of a portrait. |
| role | `string` | "Design lead" | no | Person's role. |
| location | `string` | "Barcelona, Spain" | no | Location shown beneath the role. |
| biography | `string` | fictional biography | no | Short profile biography. |
| interests | `string[]` | 3 example interests | no | Short list of areas the person cares about. |
| profileHref | `string` |  | no | Optional destination for a fuller profile. |
| class | `string` |  | no | Additional section classes. |

## 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.
- Key Tab, Enter: Follow the optional profile link.

## Agent prompts

### 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": "https://hazeui.com/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: https://hazeui.com/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.

## Example requests that should lead here
- Introduce a team member with a biography, location and areas of interest

## Source

```astro
---
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>
```
