Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web component example #367

Closed
Eliot00 opened this issue Apr 24, 2022 · 3 comments
Closed

web component example #367

Eliot00 opened this issue Apr 24, 2022 · 3 comments

Comments

@Eliot00
Copy link

Eliot00 commented Apr 24, 2022

Specific Demand

I want to use web components in dioxus, but the <dash-name> is not Rust ident.

@jkelleyrtp
Copy link
Member

We added one here:

https://github.com/DioxusLabs/dioxus/blob/master/examples/custom_element.rs

Though, it frankly could be a bit better :)

@davidhmays
Copy link

What is the current way to implement custom elements in Dioxus? (Link above is dead.)

@ealmloff
Copy link
Member

ealmloff commented Nov 8, 2023

What is the current way to implement custom elements in Dioxus? (Link above is dead.)

Here is the updated example:

web-component {
"my-prop": "5%",
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants