---
title: Team Blocks for Astro
description: "Astro team grids and carousels with profiles, roles, and social links."
seo:
    title: "Astro Team blocks: examples and source"
sidebar:
    label: Team
related:
    - /blocks
    - /blocks/content
    - /blocks/contact
mode: wide
---

Introduce the people behind your work. Pass names, roles, images, and links as content props.

## Team grid

Supply your own content. The section uses the selected project preset.

```astro
---
import Block from "@/components/blocks/content/content-team-grid/content-team-grid.astro"
import type { TeamGridContent } from "@/components/blocks/content/content-team-grid/types"
import { getImage } from "astro:assets"
import lake from "../../../src/assets/images/mountain-beyond-lake-scene.png"
import hall from "../../../src/assets/images/entrance-hall.png"
import field from "../../../src/assets/images/open-field-illustration.png"

const lakeUrl = (await getImage({ src: lake, width: 1200, format: "webp" })).src
const hallUrl = (await getImage({ src: hall, width: 1200, format: "webp" })).src
const fieldUrl = (await getImage({ src: field, width: 1200, format: "webp" }))
  .src
const content = {
  label: "From the print room",
  title: "Meet the printmakers",
  people: [
    {
      title: "Mara Reed",
      description: "Printer",
      image: {
        src: lakeUrl,
        alt: "Mountain ridge beyond a lake",
      },
      href: "",
    },
    {
      title: "Eli Moss",
      description: "Illustrator",
      image: {
        src: hallUrl,
        alt: "An illustrated entrance hall",
      },
      href: "",
    },
    {
      title: "Kit Shaw",
      description: "Editor",
      image: {
        src: fieldUrl,
        alt: "Illustration of an open field",
      },
      href: "",
    },
  ],
} satisfies TeamGridContent
---

<Block {content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-team-grid
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/content/content-team-grid/types.ts"
    name="TeamGridProps"
/>

## Editorial team

Use this section for the team part of a studio site.

```astro
---
import Section from "@/components/blocks/team/team-portrait-carousel/team-portrait-carousel.astro"
import { getImage } from "astro:assets"
import lake from "../../../src/assets/images/mountain-beyond-lake-scene.png"
import hall from "../../../src/assets/images/entrance-hall.png"
import field from "../../../src/assets/images/open-field-illustration.png"

const lakeUrl = (await getImage({ src: lake, width: 1200, format: "webp" })).src
const hallUrl = (await getImage({ src: hall, width: 1200, format: "webp" })).src
const fieldUrl = (await getImage({ src: field, width: 1200, format: "webp" }))
  .src
const section = {
  label: "From the print room",
  title: "People at the press",
  accent: "in small editions",
  members: [
    {
      title: "Mara Reed",
      role: "Printer",
      department: "Print room",
      image: {
        src: lakeUrl,
        alt: "Mountain ridge beyond a lake",
      },
    },
    {
      title: "Eli Moss",
      role: "Illustrator",
      department: "Print room",
      image: {
        src: hallUrl,
        alt: "An illustrated entrance hall",
      },
    },
    {
      title: "Kit Shaw",
      role: "Editor",
      department: "Print room",
      image: {
        src: fieldUrl,
        alt: "Illustration of an open field",
      },
    },
  ],
}
---

<Section {...section} />
```

```sh
bunx --bun shadcn@latest add @gnostic/team-portrait-carousel
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/team/team-portrait-carousel/types.ts"
    name="TeamPortraitCarouselProps"
/>

See [serif accent font setup](/ui/docs/installation#serif-accent-fonts-for-editorial-blocks) when installing this section.

## Responsive layout and images

Use consistent portrait crops and supply image dimensions. Check long names,
roles, social links, and carousel controls in a narrow container. Keep focus
indicators visible when using a keyboard.
