Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/andrelmlins/svelte-document-title

A document.title manager for Svelte
https://github.com/andrelmlins/svelte-document-title

document svelte title

Last synced: 26 days ago
JSON representation

A document.title manager for Svelte

Awesome Lists containing this project

README

        

# Svelte Document Title

[![npm version](https://badge.fury.io/js/svelte-document-title.svg)](https://www.npmjs.com/package/svelte-document-title) • [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/andrelmlins/svelte-document-title/blob/master/LICENSE) • [![Build Status](https://travis-ci.com/andrelmlins/svelte-document-title.svg?branch=master)](https://travis-ci.com/andrelmlins/svelte-document-title)

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](https://github.com/sveltejs/sapper-template#using-external-components).

## Demo

Local demo:

```
git clone https://github.com/andrelmlins/svelte-document-title.git
cd svelte-document-title
npm install && npm rum dev
```

## Examples

An example of how to use the library:

```js

import DocumentTitle from "svelte-document-title";

Hello World!!!

```

## Properties

Component props:

| Prop | Type | Description |
| ----- | ------ | ------------------------- |
| title | string | Title showing in document |

## NPM Statistics

Download stats for this NPM package

[![NPM](https://nodei.co/npm/svelte-document-title.png)](https://nodei.co/npm/svelte-document-title/)

## License

Svelte Document Title is open source software [licensed as MIT](https://github.com/andrelmlins/svelte-document-title/blob/master/LICENSE).