3 ms·
Does anyone know how well this integrates with web components? I struggled getting Shoelace components to run well with Yew. It was doable, but by the time I ha
by nirvdrum 3y ago
Does anyone know how well this integrates with web components? I struggled getting Shoelace components to run well with Yew. It was doable, but by the time I had it working I decided I was using the wrong tool for the job. I'd like to revisit that project with another Rust framework though when I can find the time.
- Evan-Almloff 3y agoWe have a web components example here: https://github.com/DioxusLabs/dioxus/blob/fd21c971038840130f2961c7aa5c3541c0823446/examples/web_component.rs#L22 https://github.com/DioxusLabs/dioxus/blob/fd21c971038840130f... Everything should work like normal except: attributes are not typed, custom event listeners must be implemented with web-sys
- nirvdrum 3y agoOh, that’s great. I suppose it’d be nice if I could supply my own types, but strings aren’t the end of the world. Thank you for pointing me at that example. Also, thank you for linking to a particular commit. I wish GitHub would do that by default. The web is littered with GitHub links that either no longer work or highlight incorrect lines.