--- title: Download Trigger description: Used to trigger a download of a file. links: source: components/download-trigger storybook: components-download-trigger--basic ark: https://ark-ui.com/docs/utilities/download-trigger --- ## Usage ```jsx import { DownloadTrigger } from "@chakra-ui/react" ``` ```jsx ``` ## Examples ### Basic Pass the data you want to download to the `data` prop, and specify the `fileName` and `mimeType` of the file. ### Download SVG Here's an example of how to download an SVG file. ### Promise You can also trigger downloads from a promise that returns a `Blob`, `File`, or `string`. ### File Size Compose the `DownloadTrigger` with the `FormatByte` component to display the size of the file in a human-readable format. ## Props