> ## Documentation Index > Fetch the complete documentation index at: https://www.canva.dev/docs/apps/llms.txt > Use this file to discover all available pages before exploring further. # DraggableAudio API reference for the DraggableAudio component. **Warning:** The `DraggableAudio` component has been deprecated. Instead, use the [`AudioCard`](https://www.canva.dev/docs/apps/app-ui-kit/storybook/?path=/docs/canva-app-ui-kit-card-audiocard--docs) component. ## Usage ```tsx import React from "react"; import { AudioContextProvider } from "components/audio_context"; import { DraggableAudio } from "components/draggable_audio"; import { upload } from "@canva/asset"; export function App() { return ( { return upload({ type: "audio", title: "Example audio", mimeType: "audio/mp3", durationMs: 86047, url: "https://www.canva.dev/example-assets/audio-import/audio.mp3", aiDisclosure: "none", }); }} /> ); } ``` **Note:** The `AudioContextProvider` component ensures that only one audio file will play at a time. ## Props A human-readable title that appears in the Canva editor. The URL of the audio file. The URL of the audio file to play when the user clicks the **Play** button. The duration of the audio file, in milliseconds. A function that returns the result of the [`upload`](https://www.canva.dev/docs/apps/api/latest/asset-upload/) method.