DioxusLabs / DioxusLabs/dioxus

Dioxus needs a way to reference HTML elements

Open
#4,678 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Feature Request

I think it's necessary to have a way to reference HTML elements (e.g. `node_ref` in `leptos` or similar in JS frameworks) and be able to use this reference on desktop and mobile with `eval` to call browser APIs.

The lack of such feature probably makes porting something like `radix ui` to `dioxus` impossible.

## Implement Suggestion

No idea, but I think a form of mapping between `vdom` elements and the browser elements is needed. `eval` has to be able to use this reference someway.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.