https://github.com/opensass/accordion-rs
↕️ A highly customizable accordion component for WASM frameworks.
https://github.com/opensass/accordion-rs
accordion accordion-component css dioxus html leptos rust tailwindcss yew
Last synced: 6 months ago
JSON representation
↕️ A highly customizable accordion component for WASM frameworks.
- Host: GitHub
- URL: https://github.com/opensass/accordion-rs
- Owner: opensass
- License: mit
- Created: 2024-01-28T17:43:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-31T07:01:39.000Z (about 1 year ago)
- Last Synced: 2025-04-07T06:02:36.780Z (about 1 year ago)
- Topics: accordion, accordion-component, css, dioxus, html, leptos, rust, tailwindcss, yew
- Language: Rust
- Homepage: https://docs.rs/accordion-rs
- Size: 4.99 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ↕️ Accordion RS
[](https://crates.io/crates/accordion-rs)
[](https://crates.io/crates/accordion-rs)

[](https://www.rust-lang.org/)
[](https://www.rust-lang.org)
[](https://github.com/wiseaidev)
[](https://discord.gg/b5JbvHW5nv)

## 🎬 Demo

| Framework | Live Demo |
| --- | --- |
| Yew | [](https://accordion-rs.netlify.app) |
| Dioxus | [](https://accordion-rs-dioxus.netlify.app) |
| Leptos | [](https://accordion-rs-leptos.netlify.app) |
## 📜 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.
1. **⚡ Smooth Animations**: Control the transition speed and style of the opening and closing actions.
1. **🔄 Callbacks**: Attach callbacks to detect when the accordion opens or closes, giving you full control of state transitions.
1. **🧑💻 Easy Integration**: Works seamlessly with modern Wasm frameworks like Yew, Dioxus, and Leptos.
1. **🧩 Accessibility**: Optionally include ARIA attributes to make your accordion accessible to screen readers.
## Y Yew Usage
Refer to [our guide](https://github.com/opensass/accordion-rs/blob/main/YEW.md) to integrate this component into your Yew app.
## 🧬 Dioxus Usage
Refer to [our guide](https://github.com/opensass/accordion-rs/blob/main/DIOXUS.md) to integrate this component into your Dioxus app.
## 🌱 Leptos Usage
Refer to [our guide](https://github.com/opensass/accordion-rs/blob/main/LEPTOS.md) 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.
1. Create a new branch for your feature/bugfix.
1. Submit a pull request for review.
## 📜 License
Accordion RS is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this library in your projects.