https://github.com/metonym/template-svelte-component
Template for building Svelte components
https://github.com/metonym/template-svelte-component
component library rollup svelte typescript
Last synced: 3 months ago
JSON representation
Template for building Svelte components
- Host: GitHub
- URL: https://github.com/metonym/template-svelte-component
- Owner: metonym
- License: mit
- Created: 2019-09-04T11:23:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-16T17:05:06.000Z (about 6 years ago)
- Last Synced: 2025-10-09T20:46:08.740Z (9 months ago)
- Topics: component, library, rollup, svelte, typescript
- Language: JavaScript
- Homepage: https://metonym.github.io/template-svelte-component/
- Size: 2.78 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# template-svelte-component
> Template for building Svelte components.
This is a minimal template for building and documenting Svelte components.
- **Rollup** is used to build the component for ES/UMD formats.
- **Sapper** is used for component development and documentation (demo deployed using GitHub Pages). See the [demo](demo) folder.
## Install
```bash
yarn add -D template-svelte-component
```
## Usage
```html
import Component from "template-svelte-component";
```
## API
| Property name | Value |
| :------------ | :--------------------------------------- |
| class | `string` (default: 'default-class-name') |
## Forwarded events
- on:click
- on:mouseover
- on:mouseenter
- on:mouseout
- on:focus
- on:blur
- on:keydown
## [Changelog](CHANGELOG.md)
## License
[MIT](LICENSE)
[npm]: https://img.shields.io/npm/v/template-svelte-component.svg?color=blue
[npm-url]: https://npmjs.com/package/template-svelte-component
[build]: https://travis-ci.com/metonym/template-svelte-component.svg?branch=master
[build-badge]: https://travis-ci.com/metonym/template-svelte-component