---
title: Links Blocks for Astro
description: "Astro resource lists and link collections with optional destination previews."
seo:
    title: "Astro Links blocks: examples and source"
sidebar:
    label: "Links"
related:
    - /blocks
    - /components
    - /docs/astro-business-websites
---

## Resource carousel

Let readers browse a compact set of related destinations.

```astro
---
import Links2Block from "@/components/blocks/links/links-2.astro"
---

<Links2Block
  title="Keep these planning references nearby"
  description="A short list of references for preparing tasks, recording decisions, and checking the next step."
  links={[
    {
      href: "https://example.com/fieldwork/projects",
      title: "Plan the week",
      description: "Pick a short list of tasks that fits the time available.",
      preview: "section",
    },
    {
      href: "https://example.com/fieldwork/projects",
      title: "Record a decision",
      description:
        "Leave enough context for a teammate to understand the choice.",
      preview: "card",
    },
    {
      href: "https://example.com/fieldwork/projects",
      title: "Prepare a review",
      description: "Collect the questions your team needs to answer together.",
      preview: "accordion",
    },
    {
      href: "https://example.com/fieldwork/projects",
      title: "Write the next step",
      description: "Describe the action and the person who will take it.",
      preview: "tabs",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/links-2
```

## Choose a links layout

Choose a links block for a curated set of resources, project links, or destinations. Group related entries and describe why each destination is useful.

## Pass content from Astro

Pass the links array supported by the chosen variant. Use descriptive titles, accurate hrefs, and concise descriptions. Preview data is supplied by the page; the block does not scrape destination metadata.

## Responsive layout and images

Check long URLs and titles at narrow widths. If a preview image is used, choose a small, relevant asset and avoid depending on it as the only link label. Check hover and keyboard focus separately.

## Compose the next section

Use [Articles](/blocks/articles) for editorial content and [Services](/blocks/services) for an offer that needs more detail.
