Registry / web-framework / leptos-meta

leptos-meta

JSON →
library0.8.6rscratesunverified

Tools to set HTML metadata in the Leptos web framework.

# Cargo.toml [dependencies] leptos_meta = "0.8.6"
INSTALL
IMPORT
SIG · LEPTOS-META
L
leptos-meta
web-frameworkrustv0.8.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Meta
use leptos_meta::Meta;

Sets HTML metadata in a Leptos component.

use leptos_meta::Meta; fn my_component() -> impl IntoView { view! { <Meta name="description" content="My app"/> } }
Debug
Known issues
gotchaRequires Leptos SSR or hydrate context to function properly.
fix
Ensure you are using leptos_meta within a Leptos application with SSR or hydrate enabled.
affects: >=0.8.0
Upgrade
Version history
0.8.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
leptos-meta — cargo add leptos-meta · libregistry