Marketing sectionsTeamSplit
Searchastronomic.dev# TeamSplit
To show a small team beside a heading, each person with a small round photo, name and role.
Static: no JavaScript.
## Usage
```astro
import TeamSplit from "@astronomic-dev/ui/components/TeamSplit.astro";
```
## Examples
### Beside the heading
From a 48rem container the header sits in a start column and the people in the end column; below that they stack, the header first. Each person is a small round avatar beside the name and role, in two columns when there is room: from a 28rem container when stacked, and from 56rem beside the header. Sam has no photo, so his initials show.
```astro
---
import Badge from "@astronomic-dev/ui/components/Badge.astro";
import TeamSplit from "@astronomic-dev/ui/components/TeamSplit.astro";
// Your own photos. Sam has none yet: his initials show in the avatar.
import ada from "../../photos/portrait-curly-hair.webp";
import lena from "../../photos/portrait-glasses.webp";
import tomas from "../../photos/portrait-smiling.webp";
const people = [
{ name: "Ada Brook", role: "Founder and design lead", image: { src: ada } },
{ name: "Sam Okafor", role: "Lead developer" },
{ name: "Lena Ruiz", role: "Content strategist", image: { src: lena } },
{ name: "Tomás Vidal", role: "Project manager", image: { src: tomas } },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<TeamSplit heading="A small studio, on purpose" text="Four people see your project through, so you always talk to someone who knows it." items={people}>
<Badge slot="eyebrow">Team</Badge>
</TeamSplit>
</div>
```
## Props
### TeamSplit
| 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. Only the name, role, photo and links show here, as a compact list; the bio and the quote do not. |
| 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".
TeamSplit
FreeTo show a small team beside a heading, each person with a small round photo, name and role.
- File
- TeamSplit.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
Beside the heading
From a 48rem container the header sits in a start column and the people in the end column; below that they stack, the header first. Each person is a small round avatar beside the name and role, in two columns when there is room: from a 28rem container when stacked, and from 56rem beside the header. Sam has no photo, so his initials show.
This preview did not load.
main.astro
examples/teamsplit/main.astro
---
import Badge from "@astronomic-dev/ui/components/Badge.astro";
import TeamSplit from "@astronomic-dev/ui/components/TeamSplit.astro";
// Your own photos. Sam has none yet: his initials show in the avatar.
import ada from "../../photos/portrait-curly-hair.webp";
import lena from "../../photos/portrait-glasses.webp";
import tomas from "../../photos/portrait-smiling.webp";
const people = [
{ name: "Ada Brook", role: "Founder and design lead", image: { src: ada } },
{ name: "Sam Okafor", role: "Lead developer" },
{ name: "Lena Ruiz", role: "Content strategist", image: { src: lena } },
{ name: "Tomás Vidal", role: "Project manager", image: { src: tomas } },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<TeamSplit heading="A small studio, on purpose" text="Four people see your project through, so you always talk to someone who knows it." items={people}>
<Badge slot="eyebrow">Team</Badge>
</TeamSplit>
</div>Minimal · Light