Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stencil-community/stencil-helmet

Declaratively update the <head> from a Stencil app.
https://github.com/stencil-community/stencil-helmet

component stencil

Last synced: 2 months ago
JSON representation

Declaratively update the <head> from a Stencil app.

Awesome Lists containing this project

README

        

[![@stencil-community/helmet](https://img.shields.io/npm/v/@stencil-community/helmet.svg)](https://npm.im/@stencil-community/helmet)

# Stencil Helmet

> Declaratively update the `` from a Stencil app.

---

This is a [Stencil](https://github.com/ionic-team/stencil) component meant to be used within Stencil apps to declaratively update the document ``. You pass it elements that you'd normally place in ``, and it updates `` 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-community/helmet
```

## Usage

```jsx
import Helmet from '@stencil-community/helmet';

//...
export class MyComponent {
render() {
return (



{this.title}




);
}
}
```