@svelterialjs/svelte-extend

Generate new Svelte components by extending existing ones.

Usage no npm install needed!

<script type="module">
  import svelterialjsSvelteExtend from 'https://cdn.skypack.dev/@svelterialjs/svelte-extend';
</script>

README

@svelterialjs/svelte-extend

Version Documentation Maintenance License: MIT Twitter: TheComputerM

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

🤝 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