#alert #yew #leptos #dioxus #wasm-framework #rust

alert-rs

⚠️ A highly customizable alert component for WASM frameworks like Yew, Dioxus, and Leptos

3 releases

new 0.2.2 Dec 22, 2024
0.2.1 Dec 21, 2024
0.2.0 Dec 21, 2024

#1836 in Web programming

36 downloads per month

MIT license

83KB
963 lines

⚠️ Alert RS

Crates.io Crates.io Downloads Crates.io License made-with-rust Rust Maintenance

Open SASS Discord

logo

🎬 Demo

alert-rs-demo

📜 Intro

Alert-RS is a highly customizable alert component designed for Wasm-based frameworks like Yew, Dioxus, and Leptos. Create fully-featured, styled alerts with configurable behaviors like auto-close, button actions, and customizable icons, all within your Rust-based frontend.

🤔 Why Use Alert-RS?

The following are some reasons why Alert-RS is a fantastic addition to your Wasm projects:

  1. 🚨 Custom Alerts: Create fully customizable alert boxes with title, message, and buttons.
  2. 🎨 Styling Flexibility: Customize every element with CSS classes and inline styles.
  3. ⚡ Button Actions: Display and handle buttons like Confirm, Cancel, and Close with callback support.
  4. ⏲️ Auto-Close: Optionally auto-close the alert after a timeout.
  5. 🔧 Highly Configurable: Control alert position, icon type, and visibility based on scroll position.

Y Yew Usage

Refer to our guide to integrate this component into your Yew app.

🧬 Dioxus Usage

Refer to our guide to integrate this component into your Dioxus app.

🌱 Leptos Usage

Refer to our guide to integrate this component into your Leptos app.

🤝 Contributions

Contributions are welcome! Whether it's bug fixes, feature requests, or examples, we would love your help to make Alert-RS better.

  1. Fork the repository.
  2. Create a new branch for your feature/bugfix.
  3. Submit a pull request for review.

📜 License

Alert-RS is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.

Dependencies

~7–20MB
~284K SLoC