pub fn Meta(props: MetaProps) -> impl IntoView
Expand description
Injects an HTMLMetaElement
into the document
head to set metadata
use leptos::prelude::*;
use leptos_meta::*;
#[component]
fn MyApp() -> impl IntoView {
provide_meta_context();
view! {
<main>
<Meta charset="utf-8"/>
<Meta name="description" content="A Leptos fan site."/>
<Meta http_equiv="refresh" content="3;url=https://github.com/leptos-rs/leptos"/>
</main>
}
}
§Optional Props
- charset:
impl Into<TextProp>
- The
charset
attribute.
- The
- name:
impl Into<TextProp>
- The
name
attribute.
- The
- property:
impl Into<TextProp>
- The
property
attribute.
- The
- http_equiv:
impl Into<TextProp>
- The
http-equiv
attribute.
- The
- itemprop:
impl Into<TextProp>
- The
itemprop
attribute.
- The
- content:
impl Into<TextProp>
- The
content
attribute.
- The