@ksankarkumar34/react-toast-notify
v1.1.0
Published
toast notification library for React
Maintainers
Readme
React Toast Notification 🍞
A lightweight, customizable toast notification system for React applications built with TypeScript and Vite.
Features ✨
- 🚀 Easy to integrate with React applications
- 🎨 Customizable toast notifications
- ⌨️ Built with TypeScript
- 🪶 Lightweight implementation
- 📱 Responsive design
Installation 📦
This package is currently in development. To use it in your project:
- Clone the repository
git clone [your-repository-url]- Install dependencies
npm install- Build the project
npm run buildUsage 🚀
import { ToastProvider, useToast } from './path-to-library';
// Wrap your app with ToastProvider
function App() {
return (
<ToastProvider>
<YourApp />
</ToastProvider>
);
}
// Use in your components
function Example() {
const toast = useToast();
return (
<button onClick={() => toast.show('Hello, World!')}>
Show Toast
</button>
);
}Development 🛠️
# Start development server
npm run dev
# Build the library
npm run build
# Preview the build
npm run previewContributing 🤝
Contributions are welcome! Feel free to open issues and pull requests.
License 📄
MIT License
