Skip to content

↕️ A highly customizable accordion component for WASM frameworks.

License

Notifications You must be signed in to change notification settings

opensass/accordion-rs

Repository files navigation

↕️ Accordion RS

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

Join our Discord

logo

🎬 Demo

accordion-rs-demo

Framework Live Demo
Yew Netlify Status
Dioxus Netlify Status
Leptos Netlify Status

📜 Intro

Accordion RS is a highly customizable accordion component designed for Wasm-based frameworks like Yew, Dioxus, and Leptos. Easily create interactive, collapsible sections with rich behaviors, smooth transitions, and complete styling control.

🤔 Why Use Accordion-RS?

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

  1. 🎨 Customizable Content: Define separate content for expanded and collapsed states.
  2. ⚡ Smooth Animations: Control the transition speed and style of the opening and closing actions.
  3. 🔄 Callbacks: Attach callbacks to detect when the accordion opens or closes, giving you full control of state transitions.
  4. 🧑‍💻 Easy Integration: Works seamlessly with modern Wasm frameworks like Yew, Dioxus, and Leptos.
  5. 🧩 Accessibility: Optionally include ARIA attributes to make your accordion accessible to screen readers.

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 Accordion RS better.

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

📜 License

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