Components
Animated
The Animated component is a versatile wrapper that adds animations to its children elements. It leverages Framer Motion to provide smooth, customizable animations for enhancing user interface interactions.
page.tsx
Properties
as
ElementType | 'div'
default: "'div'"The HTML element or React component to render
variant
PresetVariant | Variants
default: "'fadeIn'"The animation variant to apply, currently there are 5 presets: ‘slideUp’, ‘slideDown’, ‘slideUpBlur’, ‘fadeIn’, ‘scaleIn’, or you can pass a custom variant object
animateInView
boolean
default: "true"Whether to animate when the component enters the viewport
className
string
Custom CSS classes to apply to the component
Usage
example.tsx
If you need basic components like buttons, inputs, and more, they are available with Shadcn UI.
Was this page helpful?