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: about 1 month 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T14:10:22.000Z (about 2 years ago)
- Last Synced: 2024-12-22T19:05:50.469Z (2 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
[](https://www.npmjs.com/package/svelte-document-title) • [](https://github.com/andrelmlins/svelte-document-title/blob/master/LICENSE) • [](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
[](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).