Works everywhere
Animated works in both server and client environments. Always use the standard import (e.g. @prokodo/ui/animated) — the library detects the runtime automatically.
Animated
The Animated component wraps any React child and applies a CSS entrance animation. Animation direction, delay, and duration are controlled via props and design tokens.
Overview
import { Animated } from "@prokodo/ui/animated"
;<Animated direction="up">
<p>This content fades in from below.</p>
</Animated>
Live PreviewOpen in Storybook ↗
Import
import { Animated } from "@prokodo/ui/animated"
CSS:
import "@prokodo/ui/animated.css"
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode |