Installation
Get started with Adopta Un Abuelo React Components by installing the package and its peer dependencies.Package Installation
The library is available as an npm package. Install it using your preferred package manager:The library requires React 18+ or React 19+ and styled-components 5+ or 6+ as peer dependencies.
Peer Dependencies
These dependencies are required for the library to function:| Package | Version | Purpose |
|---|---|---|
react | ^18.0.0 || ^19.0.0 | React framework |
react-dom | ^18.0.0 || ^19.0.0 | React DOM rendering |
styled-components | ^5.0.0 || ^6.0.0 | CSS-in-JS styling |
Optional Dependencies
Some components require additional dependencies. Install only what you need for the components you plan to use:Google Maps (InputLocation)
For theInputLocation component with autocomplete functionality:
Stripe (Payout)
For thePayout component with payment processing:
Rich Text Editor (TextArea)
For theTextArea component with rich text editing capabilities:
Loading Animations (Button)
For theButton component’s Lottie-based loading and success animations:
Webcam (InputImage)
For theInputImage component with webcam capture:
Styled Components Compatibility
For better styled-components compatibility (recommended):Quick Reference Table
| Component(s) | Required Package(s) |
|---|---|
InputLocation | @react-google-maps/api |
Payout | @stripe/react-stripe-js, @stripe/stripe-js |
TextArea (Rich Text) | @tiptap/react, @tiptap/starter-kit, @tiptap/extension-text-align, @tiptap/extension-text-style, @tiptap/extensions |
Button (Loading/Success) | @lottiefiles/react-lottie-player |
InputImage (Webcam) | react-webcam |
| All components | @emotion/is-prop-valid (recommended) |
Verifying Installation
After installation, verify that the library is installed correctly by importing a component:Version Information
Current version: 0.3.148Check the changelog for the latest updates and breaking changes.
Troubleshooting
Styled Components Version Conflict
If you encounter issues with styled-components, ensure you’re using version 5.x or 6.x:React Version Compatibility
The library supports React 18 and React 19. If you’re using an older version of React, you may need to upgrade:TypeScript Support
The library includes TypeScript definitions. No additional@types packages are needed.
Next Steps
Quick Start Guide
Learn how to use the library with practical examples