2.0.3 • Published 3 years ago
sveltekit-page-title-component v2.0.3
SvelteKit Page Title Component
This package provides a PageTitle Svelte component that automatically updates the document title with the name of the current page. It is intended for use in SvelteKit projects.
Installation
You can install this package using npm:
npm i sveltekit-page-title-componentUsage
npx sveltekit-page-title-componentThe <PageTitle /> component, will automatically be added to all +page.svelte files.
If it already exists, it will not be added.
If the <script></script> tag does not exist, it will be added to the +page.svelte files.
<script>
import PageTitle from "sveltekit-page-title-component";
</script>You can also set a custom title for the page by passing a customTitle prop:
<PageTitle customTitle="Custom Title"/>Contributing
If you find a bug or want to suggest a new feature, feel free to open an issue on the GitHub repository. Pull requests are also welcome.
License
This package is licensed under the MIT License.