Expand description
Β§π¬ Demo
Β§π Intro
Browser RS is a browser window emulator for Rust-based WASM frameworks like Yew, Leptos, and Dioxus. Designed to wrap embedded content in a mock browser frame, it offers complete control over styling, layout, and interactions.
Β§π€ Why Use Browser RS?
-
πΌοΈ Realistic Browser Look: Simulates a browser window with address bar, controls (close, minimize, maximize), and content area.
-
π© Highly Configurable: Toggle visibility, customize styles, and control behavior with dozens of props.
-
π Accessible by Default: Comes with semantic roles and ARIA attributes for screen readers and keyboard users.
-
β‘ Interactive Hooks: Emit callbacks on user actions like URL change, hover, click, blur, focus, and keyboard events.
-
ποΈ Theming-Ready and Style-Agnostic: Comes with sensible defaults but is easily styled via Tailwind, CSS classes, or inline styles.
Β§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 (TODO)
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 Browser RS better.
- Fork the repository.
- Create a new branch for your feature/bugfix.
- Submit a pull request for review.
Β§π License
Browser RS is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.
Re-exportsΒ§
pub use common::ButtonType;
pub use common::Size;
pub use common::Variant;