Marketing sectionsTeamSpotlight
Searchastronomic.dev# TeamSpotlight
To feature one to three people, such as the founders, each with a line in their own words.
Static: no JavaScript.
## Usage
```astro
import TeamSpotlight from "@astronomic/ui-pro/components/TeamSpotlight.astro";
```
## Examples
### Two founders
Each person on a card: the photo, their line in the quote role (sized to the card, so it stays under the section heading), then the name and role. Two sit side by side from a 42rem container, three from 48rem; below that they stack, each card held to a reading width.
```astro
---
import TeamSpotlight from "@astronomic/ui-pro/components/TeamSpotlight.astro";
// Your own photos.
import ada from "../../photos/portrait-curly-hair.webp";
import tomas from "../../photos/portrait-smiling.webp";
const founders = [
{ name: "Ada Brook", role: "Founder and design lead", image: { src: ada }, quote: "A good site is one your team can change on a Monday morning without calling us." },
{ name: "Tomás Vidal", role: "Co-founder and project manager", image: { src: tomas }, quote: "We show you real pages every Friday, so nothing at launch is a surprise." },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<TeamSpotlight heading="The founders" text="Astronomic is two people who wanted a studio that hands over everything." items={founders} />
</div>
```
### One person
One card at a reading width, never stretched across the page.
```astro
---
import TeamSpotlight from "@astronomic/ui-pro/components/TeamSpotlight.astro";
import lena from "../../photos/portrait-glasses.webp";
const people = [{ name: "Lena Ruiz", role: "Content strategist", image: { src: lena }, quote: "Every page starts with the question a client asks, not with the layout." }];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<TeamSpotlight heading="Meet your strategist" items={people} />
</div>
```
## Props
### TeamSpotlight
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `heading` | `string` | None | The section heading, in the title role in display type. Without it there is no section and no header: a plain <div> holds only the people. |
| `emphasis` | `boolean` | `false` | Turn one *phrase* in the heading into <em>: exactly two asterisks around text with no space inside, as in "Built for *the long run*". Any other asterisks show as typed. Off by default, so the heading shows as typed. How the <em> looks is the theme's. |
| `mark` | `string` | None | A short mark after the heading, such as "(12)" or "©2026", in small muted type. It sits beside the heading, outside it, so the heading's name stays plain. Shown only with a heading. |
| `markLabel` | `string` | None | What the mark says to a screen reader, such as "12 projects": the mark is then hidden from screen readers and this is read in its place. Without it, the mark is read as written. |
| `text` | `string` | None | One or two sentences under the heading, in the lead role, muted. Shown only with a heading. |
| `headingTag` | `"h2" \| "h3" \| "h4"` | `"h2"` | The heading element. Each name sits one level under it. |
| `class` | `string` | None | More classes for the root (the <section>, or the <div> without a heading), merged with cn(), so yours win on conflicts. The root is a named size container (inline-size containment): in a shrink-to-fit parent (inline-flex, a float, fit-content) it collapses, so give it a width there. |
| `itemHeadingTag` | `"h2" \| "h3" \| "h4" \| "h5"` | `"h3"` | The name element when there is no heading. With a heading, names sit one level under it. |
| `items` | `TeamSpotlightItem[]` | None | Required. The people, in order: { name, role, href?, image?, bio?, links?, quote? } (TeamMemberItem). href is the person's own page: their name becomes the card's one link. image is { src, width?, height?, focalPoint?, loading? }, with no alt: the part writes alt="", since the name is under it. links are { label, href, icon? }. Only these fields reach each person, so a CMS entry's other fields never reach the page. An empty list renders an empty list: leave the section out when there are none. Here quote is required (TeamSpotlightItem), and the bio is not shown (TeamList shows it). One to three people: more throws an error; use TeamGrid or TeamList. |
| `imageComponent` | `ImageComponent` | None | Your image component, for every photo: Astro's <Image>, or a small wrapper for your CMS. The recipe passes a sizes hint for its columns, for the number of people (one: (min-width: 40rem) 36rem, 100vw; two: (min-width: 80rem) 38rem, (min-width: 45rem) 50vw, (min-width: 40rem) 36rem, 100vw; three: (min-width: 80rem) 25rem, (min-width: 51rem) 33vw, (min-width: 40rem) 36rem, 100vw). See TeamGrid's own-images example and "Your own images" in the kit README. |
| Slot | Description |
| --- | --- |
| `eyebrow` | A short line above the heading, such as a Badge. Shown only with a heading. |
Any other attribute goes on the <section>, or on the <div> without a heading.
## Accessibility
- With a heading, renders a <section> named by it, so it is a region landmark. The heading id is unique on the page.
- Without a heading, renders a plain <div>. Put your own heading above it.
- The people are a list (<ul role="list">), so a screen reader says how many there are. With no people the list is still there, empty: leave the section out when there are none.
- Each name sits one level under the section heading (h2 gives h3), so a reader can jump from person to person. With no heading, it is an h3 unless you set itemHeadingTag.
- A photo has empty alt text, since the name is right under it. Without a photo, the initials show in the same box and are hidden from screen readers.
- Each link is read with the person's name, such as "Ada Brook on LinkedIn", so a list of links on the page never reads "LinkedIn, LinkedIn, LinkedIn".
- Each quote is a <blockquote> above the person's name, so a screen reader hears the words, then who said them.
TeamSpotlight
ProTo feature one to three people, such as the founders, each with a line in their own words.
- File
- TeamSpotlight.astro
- Group
- Marketing sections
- Kind
- Static: no JavaScript
- Examples
- 2
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
Two founders
Each person on a card: the photo, their line in the quote role (sized to the card, so it stays under the section heading), then the name and role. Two sit side by side from a 42rem container, three from 48rem; below that they stack, each card held to a reading width.
This preview did not load.
main.astro
examples/teamspotlight/main.astro
---
import TeamSpotlight from "@astronomic/ui-pro/components/TeamSpotlight.astro";
// Your own photos.
import ada from "../../photos/portrait-curly-hair.webp";
import tomas from "../../photos/portrait-smiling.webp";
const founders = [
{ name: "Ada Brook", role: "Founder and design lead", image: { src: ada }, quote: "A good site is one your team can change on a Monday morning without calling us." },
{ name: "Tomás Vidal", role: "Co-founder and project manager", image: { src: tomas }, quote: "We show you real pages every Friday, so nothing at launch is a surprise." },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<TeamSpotlight heading="The founders" text="Astronomic is two people who wanted a studio that hands over everything." items={founders} />
</div>One person
One card at a reading width, never stretched across the page.
This preview did not load.
one.astro
examples/teamspotlight/one.astro
---
import TeamSpotlight from "@astronomic/ui-pro/components/TeamSpotlight.astro";
import lena from "../../photos/portrait-glasses.webp";
const people = [{ name: "Lena Ruiz", role: "Content strategist", image: { src: lena }, quote: "Every page starts with the question a client asks, not with the layout." }];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<TeamSpotlight heading="Meet your strategist" items={people} />
</div>Minimal · Light