<div align="center">
# 💻 Code RS
[](https://crates.io/crates/coders)
[](https://crates.io/crates/coders)

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

</div>
## 🎬 Demo
| Yew | [](https://code-rs.netlify.app) |
| Dioxus | [](https://code-dio.netlify.app) |
| Leptos | [](https://code-lep.netlify.app) |
## 📜 Intro
A highly customizable, accessible inline code and code-block component for WASM frameworks: Yew, Dioxus, and Leptos. Supports multiple colors, variants, sizes, copy-to-clipboard, and composable sub-components, all WCAG compliant.
## 🤔 Why Code RS?
1. **🎨 Fully Customizable**: Control every attribute, class, style, color, variant, size, ARIA labels, and more.
1. **📋 Copy to Clipboard**: Built-in copy button with a configurable confirmation label and reset timeout.
1. **🧩 Composable**: Compose `Header`, `Title`, `CopyTrigger`, `Content`, and `LanguageBadge` independently.
1. **♿ Accessible by Default**: `role="region"`, `aria-label`, `aria-live` and `tabindex` 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/coders/blob/main/YEW.md) to integrate this component into your Yew app.
## 🧬 Dioxus Usage
Refer to [our guide](https://github.com/opensass/coders/blob/main/DIOXUS.md) to integrate this component into your Dioxus app.
## 🌱 Leptos Usage
Refer to [our guide](https://github.com/opensass/coders/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 Code RS better.
1. Fork the repository.
1. Create a new branch for your feature/bugfix.
1. Submit a pull request for review.
## 📜 License
Code RS is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this library in your projects.