# @stencil-community/helmet

> Declaratively update the head from a Stencil app.

Latest version **0.3.3** (published 2023-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stencil-community/helmet
pnpm add @stencil-community/helmet
yarn add @stencil-community/helmet
bun add @stencil-community/helmet
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2023-08-04 |
| First published | 2023-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Ionic Team |
| Maintainers | aliceionic, rwaskiewicz-ionic |

## Links

- npm: https://www.npmjs.com/package/@stencil-community/helmet
- Repository: https://github.com/stencil-community/stencil-helmet
- Issues: https://github.com/stencil-community/stencil-helmet
- npm.io page: https://npm.io/package/@stencil-community/helmet

## Recent versions

- 0.3.3 (latest) — 2023-08-04

## 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 `<head>` 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 `<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-community/helmet
```

## Usage

```jsx
import Helmet from '@stencil-community/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>
    );
  }
}
```

---
_Source: https://npm.io/package/@stencil-community/helmet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
