Skip to content

Commit

Permalink
book: Fix <Body/> link in metadata.md (#1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 authored Nov 7, 2023
1 parent 0dea6fd commit 68d67c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/book/src/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ There’s a very simple way to determine whether you should use a capital-S `<Sc

## `<Body/>` and `<Html/>`

There are even a couple elements designed to make semantic HTML and styling easier. [`<Html/>`](https://docs.rs/leptos_meta/latest/leptos_meta/fn.Html.html) lets you set the `lang` and `dir` on your `<html>` tag from your application code. `<Html/>` and [`<Body/>`](https://docs.rs/leptos_meta/latest/leptos_meta/fn.Html.html) both have `class` props that let you set their respective `class` attributes, which is sometimes needed by CSS frameworks for styling.
There are even a couple elements designed to make semantic HTML and styling easier. [`<Html/>`](https://docs.rs/leptos_meta/latest/leptos_meta/fn.Html.html) lets you set the `lang` and `dir` on your `<html>` tag from your application code. `<Html/>` and [`<Body/>`](https://docs.rs/leptos_meta/latest/leptos_meta/fn.Body.html) both have `class` props that let you set their respective `class` attributes, which is sometimes needed by CSS frameworks for styling.

`<Body/>` and `<Html/>` both also have `attributes` props which can be used to set any number of additional attributes on them via the `attr:` syntax:

Expand Down

0 comments on commit 68d67c9

Please sign in to comment.