🚀 Feature Request: Export Context Hooks from Radix Primitives (like useDialogContext
, useCheckboxContext
, etc.)
#3536
Unanswered
programming-with-ia
asked this question in
Ideas
Replies: 1 comment 1 reply
-
I have the same requirement, and I have already submitted PR: |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
🚀 Feature Request: Export Context Hooks from Radix Primitives (like
useDialogContext
,useCheckboxContext
, etc.)👋 Why This Matters
Radix is awesome for accessible UI primitives, but there’s one thing that makes building real-world UIs harder than it should be:
This limitation makes certain very common use-cases awkward or nearly impossible without hacks.
🔥 Real Developer Pain Points
💡 What We Need
Please consider exporting internal context hooks like:
useDialogContext()
useCheckboxContext()
useSwitchContext()
These hooks are already being used internally. Just export them!
It would allow developers to:
🧩 Real-World Use Case Example
Currently, this pattern is impossible. You’re forced to either:
🏁 Conclusion
This is a small change that would make a huge difference to Radix's flexibility.
Please consider this — it’s a highly practical and high-impact improvement for many use-cases.
Happy to open a PR or help if needed!
Beta Was this translation helpful? Give feedback.
All reactions