1.0.0 âĒ Published 11 months ago
@ksankarkumar34/react-toast-notify v1.0.0
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