@svelterialjs/svelte-extend

1.0.0 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @svelterialjs/svelte-extend

Weekly Downloads

10

Version

1.0.0

License

MIT

Unpacked Size

5.17 kB

Total Files

6

Last publish

Collaborators

  • thecomputerm