The goal of this repository/library is to collect Renderless Components for Svelte, enabling developers to solve common tasks quickly. To contribute to this collection, simply fork the project, make your changes and make a Pull Request to staging
! (very important, maintainers will take care of versioning)
Just add the file to the src folder /src/<your-component>.svelte
Then add it to /src/index.js
as well
All documentation goes in /docs/<your-component>.md
Remember to add a link to this file in README
The website should of course also have documentation, adding this is a bit more complicated.
- Create a folder under routes for your component
- Add an
index.svx
file and write documentation there (or copy it from the other file) - Add a
<NavItem>
tag to the navigation in/site/src/components/Nav.svelte
- [optional] Add sample pages
- [optional] Add those samples in the navigation as well
Alternatively, just have a look at how the other components are done ;)