Meta
Registers a <meta>.
Registers a <meta>. Identity follows name, property, http-equiv or charset, so the last
description wins. Children are ignored: a meta carries no text.
Import#
ts
import { Meta } from "@shadow-js/web";
Signature#
ts
function Meta(props: HeadAttributeProps): null
Parameters#
| Name | Description |
|---|---|
props |
Attributes, such as name and content. |
Returns#
Always null: nothing is rendered in place.
Throws#
- TypeError (production message
SHADOW_HEAD_ATTRIBUTE_VALUE) for an attribute value that is not a string, number or boolean, and for an invalid attribute name or an event attribute (seenormalizeTags).
Examples#
ts
import { Meta } from "@shadow-js/web";
function About() {
return <Meta name="description" content="About us" />;
}