Crate browser_rs

Source
Expand description

§🧭 Browser RS

Crates.io Crates.io Downloads Crates.io License made-with-rust Rust Maintenance

Join our Discord

logo

§🎬 Demo

FrameworkLive Demo
YewNetlify Status
DioxusNetlify Status
LeptosTODO

Β§πŸ“œ 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?

  1. πŸ–ΌοΈ Realistic Browser Look: Simulates a browser window with address bar, controls (close, minimize, maximize), and content area.

  2. πŸ”© Highly Configurable: Toggle visibility, customize styles, and control behavior with dozens of props.

  3. πŸ“Ÿ Accessible by Default: Comes with semantic roles and ARIA attributes for screen readers and keyboard users.

  4. ⚑ Interactive Hooks: Emit callbacks on user actions like URL change, hover, click, blur, focus, and keyboard events.

  5. πŸŽ›οΈ 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.

  1. Fork the repository.
  2. Create a new branch for your feature/bugfix.
  3. 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;

ModulesΒ§

common
dioxusdio
🧬 Browser RS Dioxus Usage
leptoslep
yewyew
Browser RS Yew Usage