Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andrelmlins/svelte-document-title
- Owner: andrelmlins
- License: mit
- Created: 2020-04-14T21:34:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T14:10:22.000Z (almost 2 years ago)
- Last Synced: 2024-06-11T18:06:16.564Z (6 months ago)
- Topics: document, svelte, title
- Language: JavaScript
- Size: 1.55 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-svelte - Svelte Document Title - Gerenciador de `document.title`. (UI Componentes / Comunidade Global)
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).