DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.45k stars 748 forks source link

Elements should be easier to extend #2040

Open jkelleyrtp opened 4 months ago

jkelleyrtp commented 4 months ago

Feature Request

To support a number of usecases like resize observer, we should consider changing how we do element attributes and element instantiation. In theory if we used traits, we could allow any third party to extend existing elements with traits.

This would also let us drop the need for the use dioxus_elements::* hack we need to do to get attributes in scope.