Skip to content

Page Metas

Rouage is powered internally by Solid Meta. Most APIs are directly re-exported, while some are extended or newly added.

Installation of @solidjs/meta is not needed, all features are provided by solid-rouage.

HTML Metas

ComponentDocumentation
Base/solid-meta/reference/meta/base
Link/solid-meta/reference/meta/link
Meta/solid-meta/reference/meta/meta
Style/solid-meta/reference/meta/style
Title/solid-meta/reference/meta/title

Example:

jsx
<Title>Title of page</Title>
<Link rel="canonical" href="http://rouage.dev/" />
<Meta name="example" content="whatever" />

HTML Attributes

ComponentDescription
HtmlSets attributes on the html element
HeadSets attributes on the head element (rarely needed)
BodySets attributes on the body element

Example:

jsx
<Html lang="en" />
<Body class="bg-gray-50" />

HTTP Metas

ComponentDescription
StatusSets the HTTP status code for SSR responses
HeaderAdds custom HTTP headers to SSR responses

Example:

jsx
<Status code={404} />
<Header name="Cache-Control" value="no-store" />

Released under the MIT License.