pub fn Html() -> impl IntoView
Expand description
A component to set metadata on the document’s <html>
element from
within the application.
This component takes no props, but can take any number of spread attributes
following the {..}
operator.
use leptos::prelude::*;
use leptos_meta::*;
#[component]
fn MyApp() -> impl IntoView {
provide_meta_context();
view! {
<main>
<Html
{..}
lang="he"
dir="rtl"
data-theme="dark"
/>
</main>
}
}