---
sidebar_position: 2.1
sidebar_label: "Slidev Link"
sidebar_custom_props:
  section: "Features"
  section_position: 2
---

import SlidevLink from "@theme/SlidevLink";

# Slidev Link Component

Embed slide previews directly in your MDX documentation:

<SlidevLink link="/slidev/creating-your-first-slidev" />

## Example Usage

```mdx
import SlidevLink from "@theme/SlidevLink";

# Module 1: Introduction

Before starting this module, review the presentation:

<SlidevLink link="/slidev/module-01" />
```

### Props

| Prop       | Type     | Default     | Description                         |
| ---------- | -------- | ----------- | ----------------------------------- |
| `link`     | `string` | _required_  | URL path to the presentation        |
| `width`    | `string` | `'550px'`   | Card width                          |
| `pluginId` | `string` | `'default'` | Plugin ID for multi-instance setups |


## Error Handling

If the presentation URL doesn't exist, the component displays an error state with the invalid path, making it easy to identify broken links during development.
