Head of the-components
$ npm install the-head --save
'use strict'
import React from 'react'
import TheHtml from 'the-html'
import TheHead from 'the-head'
class ExampleComponent extends React.PureComponent {
render () {
return (
<TheHtml>
<TheHead id='my-component'
/>
</TheHtml>
)
}
}
export default ExampleComponent
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 | {} |
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'} |
This software is released under the MIT License.