Skip to content

Set document title in tailwind example #734

Answered by IgnisDa
IgnisDa asked this question in Q&A
Discussion options

You must be logged in to vote

NVM figured out how to do it:

#[component]
pub fn App(cx: Scope) -> impl IntoView {
    provide_meta_context(cx);

    view! {
        cx,
        <Stylesheet id="leptos" href="/pkg/project.css"/>
        <Link rel="shortcut icon" type_="image/ico" href="/favicon.ico"/>
        <Title text="Your title"/>
        <Router>
            <Routes>
                <Route path="/" view=  move |cx| view! { cx, <Home/> }/>
            </Routes>
        </Router>
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IgnisDa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant