the-head
Head of the-components
Installation
$ npm install the-head --save
Usage
'use strict' PureComponent { return <TheHtml> <TheHead id='my-component' /> </TheHtml> }
Components
TheHead
Head of the-components
Props
Name | Type | Description | Default |
---|---|---|---|
base |
string | Base url | null |
baseTarget |
string | Target of base url. '_blank', '_parent', '_self', '_top' or frame name | undefined |
cdn |
string | CDN URL | null |
charSet |
string | Char set | 'utf-8' |
className |
string | null |
|
color |
string | Theme color | null |
fallbackUnless |
string | Global property for fall back | null |
globals |
object | Global variables | {} |
icon |
string | Favicon url | null |
id |
string | DOM Id | null |
itemProps |
object | Item props | {} |
manifest |
string | Path of manifest.json | null |
metaContents |
object | Met contents | {} |
metaProperties |
object | Met properties | {} |
ogpContents |
object | OGP contents | {} |
title |
string | Document title | null |
version |
string | Version string | 'unknown' |
versionKey |
string | Key for version query | 'v' |
viewPort |
object | View port settings | { initialScale: '1.0', width: 'device-width' } |
License
This software is released under the MIT License.