Closed k11q closed 1 year ago
@zernonia do you think this can be done with floating ui? they have that feature supported in react. ref: https://github.com/radix-ui/primitives/pull/688 https://floating-ui.com/docs/useHover#safepolygon
I think that's possible. I'm thinking to create a package floating-ui/vue-composable
to have all the build in feature similar to React. That way we could benefit Vue community with that feature, and not limited to Radix-Vue.
But yeah I can implement this here to test it out 😁
I think that's possible. I'm thinking to create a package
floating-ui/vue-composable
to have all the build in feature similar to React. That way we could benefit Vue community with that feature, and not limited to Radix-Vue.But yeah I can implement this here to test it out 😁
yeah thats a huge task, I think floating-ui team wouldnt mind if you lead the official floating-ui/vue package. but yeah, huge task 😂
enhancement: add safe polygon feature for better UX and accessibility:
Reference
https://github.com/floating-ui/floating-ui/blob/073da89da80577565a69cebd786430e11ea9e3bc/packages/react/src/safePolygon.ts
https://floating-ui.com/docs/useHover#safepolygon
https://height.app/blog/guide-to-build-context-menus
https://github.com/radix-ui/primitives/pull/688 #214