<div align="center">
# 🃏 Card RS
[](https://crates.io/crates/card-rs)
[](https://crates.io/crates/card-rs)

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

</div>
## 🎬 Demo
| Yew | [](https://card-rs.netlify.app) |
| Dioxus | [](https://card-dio.netlify.app) |
| Leptos | [](https://card-lep.netlify.app) |
## 📜 Intro
A highly customizable, accessible card component for WASM frameworks: Yew, Dioxus, and Leptos.
Supports semantic prominence variants, composable sub-components (header, title, description,
content, footer), and full WCAG compliance.
## 🤔 Why Card RS?
1. **🎨 Fully Customizable**: Control variant, class, style, ARIA labels, and every sub-component attribute.
1. **🧩 Composable API**: Use `Card`, `Header`, `Title`, `Description`, `Content`, and `Footer` independently or together.
1. **🏷️ Semantic Variants**: `transparent`, `default`, `secondary`, `tertiary`, themes interpret prominence without hard-coded colors.
1. **♿ Accessible by Default**: `role="article"`, `aria-labelledby`, and `aria-label` wired up automatically.
1. **🔧 Framework Agnostic**: Same API semantics across Yew, Dioxus, and Leptos.
## Y Yew Usage
Refer to [our guide](https://github.com/opensass/card-rs/blob/main/YEW.md) to integrate this component into your Yew app.
## 🧬 Dioxus Usage
Refer to [our guide](https://github.com/opensass/card-rs/blob/main/DIOXUS.md) to integrate this component into your Dioxus app.
## 🌱 Leptos Usage
Refer to [our guide](https://github.com/opensass/card-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 Card RS better.
1. Fork the repository.
1. Create a new branch for your feature/bugfix.
1. Submit a pull request for review.
## 📜 License
Card RS is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this library in your projects.