feat: expose useActivePress
#3527
pondorasti
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I love the concept of ejecting from the default browser
active
behavior and using data attributes for the new system. My only problem is that it's really hard to integrate the same UX into existing projects and frameworks.For example, I use Next.js and I would like to have the same
active
attributes for the<Link>
component. Exposing theuseActivePress
hook would allow me to create my own low level components based on the same system.https://github.com/tailwindlabs/headlessui/blob/main/packages/%40headlessui-react/src/hooks/use-active-press.tsx
Beta Was this translation helpful? Give feedback.
All reactions