# Download

> The Download component enables users to download PDFs and files from your documentation. Simple setup with custom filenames.

The `<Download>` component lets users download assets like PDFs directly from your documentation.

<Info>
  For information on how to embed images, PDFs, and other assets, check out the documentation on [Rich media in Markdown](/learn/docs/writing-content/markdown-media).
</Info>

## Usage

<div>
  <Download src="https://files.buildwithfern.com/fern.docs.buildwithfern.com/learn/895aa63b32f0782585a69f55a203e36aab6f6a8dd3ce7ef154f65d1dc11120bf/products/docs/pages/component-library/default-components/all-about-ferns.pdf">
    <Button intent="primary">
      Download PDF
    </Button>
  </Download>
</div>

```jsx Markdown
<Download src="./all-about-ferns.pdf">
  <Button intent="primary">Download PDF</Button>
</Download>
```

## Properties

<ParamField path="src" type="string" required={true}>
  Path to your local asset (relative to current MDX file). The asset must be located within the `fern` folder.
</ParamField>

<ParamField path="children" type="React.ReactNode" required={true}>
  The text or element to display as the click target for the download.
</ParamField>

<ParamField path="filename" type="string">
  The filename to use for the downloaded asset. If not provided, the filename will be the same as the asset's name.
</ParamField>