Installation
Usage
showLineNumbers
showLineNumbers
Components
Terminal
The main container component that creates the terminal window.| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | The terminal content (TypingAnimation, AnimatedSpan). |
className | string | - | Additional class names for the terminal. |
sequence | boolean | true | Whether to sequence animations of children. |
startOnView | boolean | true | Whether to start animation when in view. |
TypingAnimation
Animates text with a typing effect.| Prop | Type | Default | Description |
|---|---|---|---|
children | string | - | The text to animate (must be a string). |
className | string | - | Additional class names. |
duration | number | 60 | Duration between each character in milliseconds. |
delay | number | 0 | Delay before animation starts in milliseconds. |
as | React.ElementType | "span" | The element type to render. |
startOnView | boolean | true | Whether to start animation when in view. |
| …rest | MotionProps | - | All motion props are supported. |
AnimatedSpan
Animates a block of content with fade and slide effect.| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | The content to animate. |
className | string | - | Additional class names. |
delay | number | 0 | Delay before animation starts in milliseconds. |
startOnView | boolean | false | Whether to start animation when in view. |
| …rest | MotionProps | - | All motion props are supported. |
Examples
Sequential Commands
showLineNumbers
Custom Typing Speed
showLineNumbers
Without Sequence
showLineNumbers