Code
A code component that animates the code as it is written.
Made by imskyleenInstallation
Usage
API Reference
Code
Prop | Type | Default |
---|---|---|
code | string | - |
...props? | React.ComponentProps<"div"> | - |
CodeHeader
Prop | Type | Default |
---|---|---|
icon | React.ElementType | - |
copyButton? | boolean | false |
...props? | React.ComponentProps<"div"> | - |
CodeBlock
Animate UI API Reference - CodeBlock PrimitiveProp | Type | Default |
---|---|---|
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"> | - |