git.iko.soy/rowtype-yoga/purescript-radix-ui
on main help sign in
Add container option to HoverCard Portal
commit6bfa7f4e3f80a0fa9a9405f48a966b1e00eea11b authorMark Eibes <mark.eibes@gmail.com> dateThu 2 Nov 2023, 14:57 (3 years ago) parent6357c45
1 file changed+3−1
src/RadixUI/HoverCard.purs+3−1
src/RadixUI/HoverCard.purs+3−1
@@ -20,6 +20,7 @@ import Control.Monad.Identity.Trans (runIdentityT)
2020import Beta.DOM.Internal (CSS)
2121import Beta.DOM (class IsJSX)
2222import Data.Time.Duration (Milliseconds)
23+import Web.HTML.HTMLElement (HTMLElement)
2324
2425-- The type of the HoverCard component props
2526type RootProps =
@@ -92,7 +93,8 @@ arrow props kids = React.element arrowImpl
9293
9394-- The type of the portal component props
9495type HoverCardPortalProps =
95− {}
96+ { container :: Opt HTMLElement -- ^ The DOM element to render the portal into
97+ }
9698
9799-- The foreign component for the HoverCard portal
98100foreign import portalImpl :: forall a. ReactComponent { | a }