Expand description
§Leptos Notification
A beautiful notification system for Leptos applications with animated toasts.
§Features
- Four notification types: Info, Success, Warning, Error
- Smooth enter and exit animations
- Progress bar showing remaining time
- Easy to use API
§Quick Start
use leptos_notification::{ToastContainer, show_info, show_success, show_warning, show_error};
use leptos::prelude::*;
#[component]
fn App() -> impl IntoView {
view! {
<div>
<button on:click=move |_| show_info("This is an info notification")>
"Show Info"
</button>
<ToastContainer />
</div>
}
}Structs§
- Default
Icons - 默认图标配置
- Default
Styles - 默认样式配置
- Notification