Package Exports
- my-animated-components
- my-animated-components/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (my-animated-components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
My Animated Components
A comprehensive React component library with built-in Framer Motion animations, Tailwind CSS styling, and full TypeScript support.
Documentation
For detailed documentation and examples, visit the official documentation.
Support Me!
For Your Support Visit.
Features
- 🎨 Customizable colors, sizes, and variants
- 🌟 Built-in animations using Framer Motion (80+ motion variants)
- 📱 Responsive design with Tailwind CSS
- 🎭 Accessible components with ARIA attributes
- 🧩 Easy to use and integrate
- 📦 Tree-shakeable with ESM support
- 🔧 Full TypeScript support with exported prop types
- ♿ Keyboard navigation support
- 🏗️
forwardRefon all form components - ✅ Error/validation states on form fields
Installation
npm install my-animated-componentsOr using yarn:
yarn add my-animated-componentsPeer Dependencies
This library requires the following peer dependencies:
npm install react react-dom framer-motion tailwindcssUsage
import { Button, Card, Modal, Input } from 'my-animated-components';
function MyComponent() {
return (
<Card>
<h2>Welcome to My App</h2>
<Input
label="Email"
type="email"
placeholder="Enter your email"
error="Invalid email"
helperText="We'll never share your email"
/>
<Button
color="primary"
motionVariant="fadeIn"
loading={isSubmitting}
leftIcon={<SendIcon />}
>
Submit
</Button>
</Card>
);
}TypeScript
All prop types are exported for full IntelliSense support:
import type { ButtonProps, InputProps, ModalProps } from 'my-animated-components';Available Components
UI Components
- Accordion
- Alert
- Avatar
- Badge
- Breadcrumb
- Button (with loading, leftIcon, rightIcon, fullWidth)
- Card (with CardBody, CardFooter, CardHeader)
- Dropdown (with DropdownItem)
- IconButton
- Modal (with ModalBody, ModalFooter, ModalHeader)
- Navbar (with NavItem)
- Offcanvas (with OffcanvasBody, OffcanvasHeader)
- Pagination
- ProgressBar
- Skeleton
- Stepper
- Table (with TableBody, TableCell, TableHead, TableRow — striped, hoverable, bordered)
- Tabs
- Tooltip (with delay, keyboard support)
Form Components (with forwardRef)
- Checkbox (with error/helperText)
- FileUpload (with maxSize validation)
- Input (with label, error, helperText)
- Radio (with error/helperText)
- Select (with placeholder, error, helperText)
- Switch (with size variants)
- Textarea (with resize, charCount, error)
Layout
- Container
- Flex
- Grid
Typography
- Heading
- Text
Media
- Carousel (with autoplay, swipe, thumbnails, keyboard navigation)
- ImageEditor
Utilities
- List (with ListItem)
- RangeSlider
- Slider
Customization
Most components accept props for customization, including:
color: Choose from 'primary', 'secondary', 'success', 'danger', 'warning', 'info'size: Usually 'xs', 'sm', 'md', 'lg', 'xl'motionVariant: Animation variant (e.g., 'fadeIn', 'slideUp', 'zoomIn', 'bounce')variant: Visual style ('solid', 'outline', 'ghost')unstyled: Bypass all default styling for full customizationuseAnimation: Toggle animations on/offdisabled: Disable interactive componentserror/helperText: Form validation states
Motion Variants
80+ built-in animation variants including:
fadeIn, slideUp, slideDown, slideLeft, slideRight, bounce, rotateIn, flip, pulse, shake, zoomIn, zoomOut, scaleUp, and many more with fast/slow variations.
import { motionVariants } from 'my-animated-components';
// Use with any component
<Button motionVariant="bounce">Click me!</Button>
<Card motionVariant="slideUp">Content</Card>License
This project is licensed under the ISC License.