@stencil/helmet
Declaratively update the head from a Stencil app.
Last updated 17 days ago by maxlynch .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @stencil/helmet 
SYNC missed versions from official npm registry.

CircleCI @stencil/helmet

Stencil Helmet

Declaratively update the <head> from a Stencil app.


This is a Stencil component meant to be used within Stencil apps to declaratively update the document <head>. You pass it elements that you'd normally place in <head>, and it updates <head> accordingly. Each instance will override duplicate tags from preceding instances.

Note that, because it uses virtual DOM as input, stencil-helmet can only be used within Stencil apps and not as a standalone web component.

Installation

npm install @stencil/helmet

Usage

import Helmet from '@stencil/helmet';

//...
export class MyComponent {
  render() {
    return (
      <div>
        <Helmet>
          <title>{this.title}</title>
          <meta name="description" content={this.description}/>
          <link rel="stylesheet" href="/styles.css"/>
        </Helmet>
      </div>
    );
  }
}

Current Tags

  • 0.3.2                                ...           latest (17 days ago)
  • 0.3.0-2                                ...           next (2 years ago)

15 Versions

  • 0.3.2                                ...           17 days ago
  • 0.3.1                                ...           a month ago
  • 0.3.0-2                                ...           2 years ago
  • 0.3.0-1                                ...           2 years ago
  • 0.3.0-0                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.1-0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 27
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |