@@ -19,6 +19,7 @@ import Data.Tuple.Nested ((/\))
19import Control.Monad.Identity.Trans (runIdentityT)
19import Control.Monad.Identity.Trans (runIdentityT)
20import Beta.DOM.Internal (CSS)
20import Beta.DOM.Internal (CSS)
21import Beta.DOM (class IsJSX)
21import Beta.DOM (class IsJSX)
22+import Data.Time.Duration (Milliseconds)
23-- The type of the HoverCard component props
24-- The type of the HoverCard component props
24type RootProps =
25type RootProps =
@@ -26,6 +27,8 @@ type RootProps =
26 , onOpenChange ::
27 , onOpenChange ::
27 Opt (Boolean -> Effect Unit) -- ^ A callback function that is called when the HoverCard open state changes
28 Opt (Boolean -> Effect Unit) -- ^ A callback function that is called when the HoverCard open state changes
28 , className :: Opt String -- ^ The CSS class name of the HoverCard
29 , className :: Opt String -- ^ The CSS class name of the HoverCard
30+ , openDelay :: Opt Milliseconds -- ^ The duration from when the mouse enters the trigger until the hover card opens
31+ , closeDelay :: Opt Milliseconds -- ^ The duration from when the mouse leaves the trigger until the hover card closes
29 , style :: Opt CSS -- ^ The CSS style of the HoverCard
32 , style :: Opt CSS -- ^ The CSS style of the HoverCard