Expose Popover render prop interface PopoverRenderPropArg
#2362
joshuafsharp
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
Uh oh!
There was an error while loading. Please reload this page.
-
In the react package, when using the Popover component you sometimes need to pass the render props to a function. Even though these props (
open
andclose
) are fairly straightforward to type, it would be nice if the interface for this was exposed so it could be imported and used directly.Here's a pretty contrived example where the interface would be used:
It would be useful to have access to the interface defined here:
https://github.com/tailwindlabs/headlessui/blob/main/packages/%40headlessui-react/src/components/popover/popover.tsx#L194-L199
If the team is happy to expose this interface, I could create a PR exporting it?
Beta Was this translation helpful? Give feedback.
All reactions