💡 Proposal: Scoped UI State via Element-Level data-* Attributes #9
Austin1serb
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🧠 Idea
Add support for element-level state toggles, like:
Where
useUI('tooltip')sets adata-tooltipon the current element, not<body>.✅ Benefits
🛠 Proposed Change
In build step (
buildCss):That’s it. Two selectors per key-value pair.
🔥 Why Now?
Would love feedback before I ship the PR.
Is this the right direction?
Beta Was this translation helpful? Give feedback.
All reactions