@svelterialjs/svelte-extend
v1.0.0
Published
Generate new Svelte components by extending existing ones.
Downloads
1
Readme
Generate new Svelte components by extending existing ones.
🏠 Homepage
Install
npm i -D @svelterialjs/svelte-extend
Usage
<script>
import Component from './Component.svelte';
import createComponent from '@svelterialjs/svelte-extend';
const NewComponent = createComponent(Component, {value: 'hello'});
</script>
<!-- Both are the SAME -->
<Component value="hello" />
<NewComponent />
<!-- Even works with SSR! -->
Author
👤 TheComputerM
- Website: https://thecomputerm.github.io/
- Twitter: @TheComputerM
- Github: @TheComputerM
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2021 TheComputerM. This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator