ziko-toaster
Version:
Lightweight toast notification library
41 lines (28 loc) • 909 B
Markdown
# @ziko/toaster => this link my Git-hub:https://github.com/ZiadMahmoudas
Lightweight toast notification library with support for icons, colors, and auto-dismiss.
## 🚀 Features
- Simple and lightweight
- Supports 4 types: `info`, `success`, `warning`, `error`
- Smooth animations
- Icons from FontAwesome
- Auto-dismiss with timeout
- Clickable icon to close manually
## 📦 Installation
```bash
npm install ziko-toaster
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ziko-toaster@1.0.0/src/style.css" />
```js
import createToast from 'https://unpkg.com/ziko-toaster';
### in the script use type="module" Don't Forget That
### 🔧 Customizing Toast Position
You can change the toast position using CSS variables:
```css
:root {
--toast-top: 20px;
--toast-bottom: auto;
--toast-right: 20px;
--toast-left: auto;
}