next-gradients
v2.0.8
Published
This package provides an easy way to add gradients to nextjs apps
Downloads
14
Readme
Next Gradients
Description
Package of components and utilities for creating complex and animated gradients for Next.js apps.
Features
- Random gradient generation
Installation
You can install this package via npm:
npm i next-gradients
Usage
The components can be used either on the app/
or pages/
directories. Here’s a basic example:
import { RandomGradient } from 'next-gradients';
// This page will have a different background gradient every time the page reloads
export default function page() {
return (
<RandomGradient>
{/* ...other elements */}
</RandomGradient>
)
}
Contributing
If you’d like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.