creativetimofficial / material-tailwind

@material-tailwind is an easy-to-use components library for Tailwind CSS and Material Design.
https://material-tailwind.com/
MIT License
3.51k stars 307 forks source link

Allow for custom floating-ui root portal element #510

Open irg1008 opened 7 months ago

irg1008 commented 7 months ago

Could be possible to allow custom floating-ui root element reference? Instead of using body to append floating elements like pop-ups, etc

Could it be possible to reference a custom element to append the floating-ui to?

My use case it's embedding an app inside another and I am not allowed to use iframe for encapsulation.

Thanks and sorry if this falls out of scope for this library!

rohit-arium commented 6 months ago

I am using Popover in video player with custom controls. When I am going fullscreen the Popover is not showing as it is appended to the body tag. It would be great if we can use Popover inside desired tag.