dioxus-helmet
General
Inspired by react-helmet, this small Dioxus component allows you to place elements in the head of your code.
Configuration
Add the package as a dependency to your Cargo.toml.
cargo add dioxus-helmet
Usage
Import it in your code:
use Helmet;
Then just use it anywhere in your components like this:
cx.render
Any children passed to the helmet component will be placed in the <head></head> of your document.
They will be removed together with the containing component. Duplicates won't get appended multiple times.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in dioxus-helmet by you, shall be licensed as MIT, without any additional terms or conditions.