---
metaTitle: DownloadLink component | AwesCode UI
meta:
  - name: description
    content: The <AwDownloadLink /> component provides file download functionality - UI Vue component for AwesCode UI.
title: DownloadLink
---

# AwDownloadLink

**Category:** Organism | **Import:** Dynamic

The `AwDownloadLink` component handles file downloads with loading states and error handling.

## Usage

```markup
<AwDownloadLink
  href="/api/download/file.pdf"
  filename="document.pdf"
>
  Download PDF
</AwDownloadLink>
```

## API

### Props

| Name | Description | Type | Required | Default |
|------|-------------|------|----------|---------|
| href | Download URL | `String` | `true` | - |
| filename | Downloaded filename | `String` | `false` | - |

### Events

| Name | Payload | Description |
|------|---------|-------------|
| success | - | Download completed |
| error | `error` | Download failed |

## Notes

- **Import Method:** Dynamic - Component is loaded on-demand as organism
- Shows loading state during download
- Uses axios for download requests
