Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

1.5 KB
Raw Blame
---
title: Comic Text
date: 2025-07-15
description: Comic text animation that looks like a comic book text
author: iambharathpadhu
published: true
---

<ComponentPreview name="comic-text-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx shadcn@latest add @magicui/comic-text
```

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="comic-text" />

<Step>Update the import paths to match your project setup.</Step>

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx showLineNumbers
import { ComicText } from "@/components/ui/comic-text"
```

```tsx showLineNumbers
<ComicText>Comic Text</ComicText>
```

## Props

| Prop        | Type            | Default   | Description                                   |
| ----------- | --------------- | --------- | --------------------------------------------- |
| `className` | `string`        | `-`       | The class name to be applied to the component |
| `fontSize`  | `number`        | `4`       | The font size of the text                     |
| `style`     | `CSSProperties` | `#ffffff` | The style of the text                         |
| `children`  | `string`        | `-`       | The text to be displayed                      |

## Credits

- Credit to [@iambharathpadhu](https://github.com/iambharathpadhu)