apeman-react-head
apeman react package for head component.
Installation
$ npm install apeman-react-head --save
Usage
Render head tag with meta tags.
'use strict' import React from 'react'import ApHead from 'apeman-react-head' const ExampleComponent = React
Results like:
foo
Components
ApHead
Props
Name | Type | Default | Description |
---|---|---|---|
charSet | string | 'utf-8' | |
title | string | ||
icon | string | ||
meta | arrayOf | object | |
itemProps | arrayOf | object | |
css | array | ||
js | array | ||
version | string | 'unknown' | |
versionKey | string | 'v' | |
globals | object | ||
viewPort | object | { |
width: 'device-width', initialScale: '1.0' } | | View port settings | | base | string | null | | Base url | | baseTarget | string | undefined | | Target of base url. '_blank', '_parent', '_self', '_top' or frame name | | manifest | string | | | Path of manifest.json | | color | string | | | Theme color |
Props
Name | Type | Default | Description |
---|---|---|---|
charset | string | null | Charset value. |
title | string | null | Title value. |
icon | string | null | Favicon file path. |
meta | object | null | Meta values. |
css | array | null | Css file urls. |
js | array | null | Js file urls. |
version | string | 'unknown' | Version number. |
versionKey | string | 'v' | Key of version in query string. |
License
This software is released under the MIT License.