Marketing sectionsTeamList
Searchastronomic.dev# TeamList
To introduce a few people in depth, one per row, with a longer bio and links.
Static: no JavaScript.
## Usage
```astro
import TeamList from "@astronomic/ui-pro/components/TeamList.astro";
```
## Examples
### In depth
One person per row, each row on a hairline. From a 42rem container a square photo sits in a narrow column beside the name, role, long bio and links; below that the photo stacks over the text. Each link has an icon and is read with the person's name.
```astro
---
import Globe from "@lucide/astro/icons/globe";
import Mail from "@lucide/astro/icons/mail";
import TeamList from "@astronomic/ui-pro/components/TeamList.astro";
// Your own photos.
import ada from "../../photos/portrait-curly-hair.webp";
import jonas from "../../photos/portrait-grey-hair.webp";
import lena from "../../photos/portrait-glasses.webp";
const people = [
{
name: "Ada Brook",
role: "Founder and design lead",
image: { src: ada },
bio: "Ada started Astronomic after ten years of designing sites for law firms and clinics. She runs the first workshop on every project and signs off each design before it goes to the build. Outside the studio she teaches typography to evening classes.",
links: [
{ label: "Email", href: "mailto:ada@example.com", icon: Mail },
{ label: "Portfolio", href: "#ada-portfolio", icon: Globe },
],
},
{
name: "Jonas Weber",
role: "Developer",
image: { src: jonas },
bio: "Jonas builds the pages and the editing setup, and he trains your editors before launch. He has written software for print shops, a city archive and a railway, and he still checks every page with a screen reader before it ships.",
links: [
{ label: "Email", href: "mailto:jonas@example.com", icon: Mail },
{ label: "Portfolio", href: "#jonas-portfolio", icon: Globe },
],
},
{
name: "Lena Ruiz",
role: "Content strategist",
image: { src: lena },
bio: "Lena plans every page with you before a word is written, so the site answers what your clients ask. She writes the first draft of the copy, moves your old content across, and leaves your team a short guide to keep the voice the same.",
links: [
{ label: "Email", href: "mailto:lena@example.com", icon: Mail },
{ label: "Portfolio", href: "#lena-portfolio", icon: Globe },
],
},
];
---
<div class="mx-auto max-w-5xl px-6 py-16">
<TeamList heading="Who you will work with" text="The three people on every project, from the first workshop to the handover." items={people} />
</div>
```
## Props
### TeamList
| 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` | `TeamMemberItem[]` | 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. The quote is not shown here (TeamSpotlight shows it). |
| `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 layout ((min-width: 48rem) 14rem, 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".
TeamList
ProTo introduce a few people in depth, one per row, with a longer bio and links.
- File
- TeamList.astro
- Group
- Marketing sections
- Kind
- Static: no JavaScript
- Examples
- 1
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
In depth
One person per row, each row on a hairline. From a 42rem container a square photo sits in a narrow column beside the name, role, long bio and links; below that the photo stacks over the text. Each link has an icon and is read with the person's name.
This preview did not load.
main.astro
examples/teamlist/main.astro
---
import Globe from "@lucide/astro/icons/globe";
import Mail from "@lucide/astro/icons/mail";
import TeamList from "@astronomic/ui-pro/components/TeamList.astro";
// Your own photos.
import ada from "../../photos/portrait-curly-hair.webp";
import jonas from "../../photos/portrait-grey-hair.webp";
import lena from "../../photos/portrait-glasses.webp";
const people = [
{
name: "Ada Brook",
role: "Founder and design lead",
image: { src: ada },
bio: "Ada started Astronomic after ten years of designing sites for law firms and clinics. She runs the first workshop on every project and signs off each design before it goes to the build. Outside the studio she teaches typography to evening classes.",
links: [
{ label: "Email", href: "mailto:ada@example.com", icon: Mail },
{ label: "Portfolio", href: "#ada-portfolio", icon: Globe },
],
},
{
name: "Jonas Weber",
role: "Developer",
image: { src: jonas },
bio: "Jonas builds the pages and the editing setup, and he trains your editors before launch. He has written software for print shops, a city archive and a railway, and he still checks every page with a screen reader before it ships.",
links: [
{ label: "Email", href: "mailto:jonas@example.com", icon: Mail },
{ label: "Portfolio", href: "#jonas-portfolio", icon: Globe },
],
},
{
name: "Lena Ruiz",
role: "Content strategist",
image: { src: lena },
bio: "Lena plans every page with you before a word is written, so the site answers what your clients ask. She writes the first draft of the copy, moves your old content across, and leaves your team a short guide to keep the voice the same.",
links: [
{ label: "Email", href: "mailto:lena@example.com", icon: Mail },
{ label: "Portfolio", href: "#lena-portfolio", icon: Globe },
],
},
];
---
<div class="mx-auto max-w-5xl px-6 py-16">
<TeamList heading="Who you will work with" text="The three people on every project, from the first workshop to the handover." items={people} />
</div>Minimal · Light