0.1.0 • Published 4 years ago

svelte-document-title v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Svelte Document Title

npm version License: MIT Build Status

A document.title manager for Svelte.

Installation

npm i svelte-document-title
// OR
yarn add svelte-document-title

Note: to use this library in sapper, install as devDependency. See the link.

Demo

Local demo:

git clone https://github.com/andrelmlins/svelte-document-title.git
cd svelte-document-title
yarn install && yarn start

Examples

An example of how to use the library:

<script>
  import DocumentTitle from "svelte-document-title";
</script>

<DocumentTitle
  title="XXX"
>
  <p>Hello World!!!</p>
</DocumentTitle>

Properties

Component props:

PropTypeDescription
titlestringTitle showing in document

NPM Statistics

Download stats for this NPM package

NPM

License

Svelte Document Title is open source software licensed as MIT.