| Framework | Live Demo |
|---|---|
| Yew | |
| Dioxus | |
| Leptos |
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.
- π¨ Fully Customizable: Control every attribute, class, style, color, variant, size, ARIA labels, and more.
- π Copy to Clipboard: Built-in copy button with a configurable confirmation label and reset timeout.
- π§© Composable: Compose
Header,Title,CopyTrigger,Content, andLanguageBadgeindependently. - βΏ Accessible by Default:
role="region",aria-label,aria-liveandtabindexwired up automatically. - π§ Framework Agnostic: Same API semantics across Yew, Dioxus, and Leptos.
Refer to our guide to integrate this component into your Yew app.
Refer to our guide to integrate this component into your Dioxus app.
Refer to our guide to integrate this component into your Leptos app.
Contributions are welcome! Whether it's bug fixes, feature requests, or examples, we would love your help to make Code RS better.
- Fork the repository.
- Create a new branch for your feature/bugfix.
- Submit a pull request for review.
Code RS is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.
