Module

Solid.Meta

Package
purescript-purs-solid
Repository
arazorda/purs-solid

Document head tags. Render them anywhere; they're collected into <head> (on the server, into the head markup Solid.Web.SSR returns), and the last registered tag wins per identity. No provider is needed. Props are the element's, plus key: the tag's identity for deduplication, e.g. for several og:image metas.

#head Source

head :: Array JSX -> JSX

Same-identity tags inside a group coexist; a later group replaces an earlier one's set while it's rendered.

#title Source

title :: forall v. ToBinding v String => v -> JSX

#titleWith Source

titleWith :: forall v props. ToBinding v String => Props (key :: String | HTMLtitle) props => Record props -> v -> JSX

#meta Source

meta :: forall props. Props (key :: String | HTMLmeta) props => Record props -> JSX

#stylesheet Source

stylesheet :: forall props. Props (key :: String | HTMLlink) props => Record props -> JSX

<link rel="stylesheet">.

#style Source

style :: forall props. Props (key :: String | HTMLstyle) props => Record props -> String -> JSX

#script Source

script :: forall props. Props (key :: String | HTMLscript) props => Record props -> String -> JSX

The content isn't escaped.

#base Source

base :: forall props. Props HTMLbase props => Record props -> JSX

Rendered with the document shell on the server; ignored on the client.