Comic Text
Comic text animation that looks like a comic book text
BOOM!
import { ComicText } from '@/registry/magicui/comic-text'
export function ComicTextDemo() { return ( <div class="space-y-8 text-center"> <ComicText fontSize={5}>BOOM!</ComicText> </div> )}Installation
Section titled “Installation”pnpm dlx shadcn@latest add @magicui-solid/comic-textbunx shadcn@latest add @magicui-solid/comic-textyarn dlx shadcn@latest add @magicui-solid/comic-textnpx shadcn@latest add @magicui-solid/comic-textimport { ComicText } from "@/components/magicui/comic-text"<ComicText>Comic Text</ComicText>| Prop | Type | Default | Description |
|---|---|---|---|
class |
string |
- |
The class name to be applied to the component |
fontSize |
number |
5 |
The font size of the text |
style |
CSSProperties |
- |
The style of the text |
children |
string |
- |
The text to be displayed |
Credits
Section titled “Credits”- Credit to @iambharathpadhu
Original:
magicui.design/docs/components/comic-text