DEV Community

Discussion on: Svelte quick tip: Style prop defaults

Collapse
 
paratron profile image
Christian Engel

Thanks for the clarification!

Do IDEs assist with that? For regular props its fairly easy since they are announced with export let foo; but how does it work for style props? Or do I need to assign them blindly?

Thread Thread
 
geoffrich profile image
Geoff Rich

For now, there's no way for component authors to specify which style props are available, aside from documentation. There's an open issue on the Svelte language tools (which makes IDE autocomplete work) to implement this feature.