mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
25 stars 27 forks source link

[ic-ui-kit]: Investigate components use with Svelte #890

Open jd239 opened 1 year ago

jd239 commented 1 year ago

💬 Description

This ticket is allow a core team member to spend some time doing further investigation into Svelte and the ICDS components library. One main issue to look at is the use of Svelte bindings and whether that is possible with our components as Svelte bindings are fundamental when using Svelte to create applications.

Additional info

Svelte can also be used to create web components so might be worth creating a simple component using svelte and compare the structure to the Stencil ouput: https://svelte.dev/docs/custom-elements-api

Example of using bindings with web-components: https://stackoverflow.com/questions/62186324/svelte-bind-is-not-working-when-customelement-true-is-set/62239040#62239040

Stencil Svelte OutputTarget: https://github.com/ionic-team/stencil-ds-output-targets/issues/103 (Not maintained for a while)

MI6-255 commented 1 year ago

Be good to consider here how much more effort it'll be to support, and what the benefits are. Be great to play this back to the team