# Link Cards

To display links to different pages prominently, use the `<LinkCard>` component.

:::card{title="Customizing Starlight" href="/guides/guides-customization"}
Learn how to make your Starlight site your own with custom styles, fonts, and more.
:::

## Import

```tsx
import { LinkCard } from '@astrojs/starlight/components';
```

## Usage

Display a link prominently using the `<LinkCard>` component.
Each `<LinkCard>` requires a [`title`](#title) and an [`href`](#href) attribute.

```mdx
import { LinkCard } from '@astrojs/starlight/components';

<LinkCard title="Authoring Markdown" href="/guides/authoring-content/" />
```

```markdoc
{% linkcard title="Authoring Markdown" href="/guides/authoring-content/" /%}
```

:::card{title="Authoring Markdown" href="/guides/guides-authoring-content"}
:::

### Add a link description

Add a short description to a link card using the [`description`](#description) attribute.

```mdx {6}
import { LinkCard } from '@astrojs/starlight/components';

<LinkCard
	title="Internationalization"
	href="/guides/i18n/"
	description="Configure Starlight to support multiple languages."
/>
```

```markdoc {4}
{% linkcard
   title="Internationalization"
	 href="/guides/i18n/"
	 description="Configure Starlight to support multiple languages." /%}
```

:::card{title="Internationalization" href="/guides/guides-i18n"}
Configure Starlight to support multiple languages.
:::

### Group link cards

Display multiple link cards side-by-side when there’s enough space by grouping them using the [`<CardGrid>`](/guides/components-card-grids) component.
See the [“Group link cards”](/guides/components-card-grids#group-link-cards) guide for an example.

## `<LinkCard>` Props

**Implementation:** [`LinkCard.astro`](https://github.com/withastro/starlight/blob/main/packages/starlight/src/user-components/LinkCard.astro)

The `<LinkCard>` component accepts the following props, as well as all other [`<a>` element attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a):

### `title`

**required**\
**type:** `string`

The title of the link card to display.

### `href`

**required**\
**type:** `string`

The URL to link to when the card is interacted with.

### `description`

**type:** `string`

An optional description to display below the title.

## Related pages

- [Starlight](../index.md)
- [Using Components](./components-using-components.md)
- [Pages](./guides-pages.md)
- [Not found](./more-404.md)
- [Configuration Reference](./reference-configuration.md)
- [Plugins and Integrations](./resources-plugins.md)
- [Start Here](./start-here-index.md)
- [Getting Started](./start-here-getting-started.md)
- [Cards](./components-cards.md)
- [Guides](./guides-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
