> ## 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.
# DraggableText
API reference for the DraggableText component.
**Warning:** The `DraggableText` component has been deprecated. Instead, use the [`TypographyCard`](https://www.canva.dev/docs/apps/app-ui-kit/storybook/?path=/docs/canva-app-ui-kit-card-typographycard--docs) component.
## Usage
### Basic usage
```tsx
import React from "react";
import { DraggableText } from "components/draggable_text";
export function App() {
return Drag me into the design;
}
```
### Styling the text
You can use the `style` prop to style the text in the app's iframe. Where possible, Canva will use these styles to determine the style of the text that's dropped into the design.
```tsx
import React from "react";
import { DraggableText } from "components/draggable_text";
export function App() {
return (
Drag me into the design
);
}
```
### Customizing the drag data
If you want the text that's dropped into the design to look different from the text that's in the app's iframe, set props that are distinct from the `style` prop.
```tsx
import React from "react";
import { DraggableText } from "components/draggable_text";
export function App() {
return (
Drag me into the design
);
}
```
## Props
The text to make draggable.
The decoration of the text.
The available values include:
* `"none"`
* `"underline"`
The default value is `"none"`.
The style of the text.
The available values include:
* `"normal"`
* `"italic"`
The default value is `"normal"`.
The weight of the text.
The available values include:
* `"normal"`
* `"bold"`
The default value is `"normal"`.
The style of the text.
The available values include:
* `"none"`
* `"italic"`
The default value is `"none"`.
The alignment of the text.
The available values include:
* `"start"`
* `"center"`
* `"end"`
The default value is `"start"`.