Animate UI

Code

A code component that animates the code as it is written.

Made by imskyleen
Edit on GitHub
my-component.tsx

Installation

Usage

<Code>
  <CodeHeader />
  <CodeBlock />
</Code>

API Reference

Code

PropTypeDefault
code
string
-
...props?
React.ComponentProps<"div">
-

CodeHeader

PropTypeDefault
icon
React.ElementType
-
copyButton?
boolean
false
...props?
React.ComponentProps<"div">
-

CodeBlock

Animate UI API Reference - CodeBlock Primitive
PropTypeDefault
lang
string
-
theme?
"light" | "dark"
light
themes?
{ light: string; dark: string }
{ light: "github-light", dark: "github-dark" }
writing?
boolean
false
duration?
number
5000
delay?
number
0
onDone?
() => void
-
inView?
boolean
false
inViewMargin?
string
0px
inViewOnce?
boolean
true
...props?
React.ComponentProps<"div">
-

Built by Skyleen. The source code is available on GitHub.