Module
React.Aria.Overlays
- Package
- purescript-react-aria
- Repository
- rowtype-yoga/purescript-react-aria
#UseModalOptions Source
type UseModalOptions = { isDisabled :: Boolean }
#UseOverlayProps Source
type UseOverlayProps :: Row Type
type UseOverlayProps = (isDismissable :: Boolean, isKeyboardDismissaDisabled :: Boolean, isOpen :: Boolean, onClose :: Effect Unit, shouldCloseOnBlur :: Boolean, shouldCloseOnInteractOutside :: HTMLElement -> Boolean)
#OverlayAria Source
type OverlayAria = { overlayProps :: { onKeyDown :: EventHandler }, underlayProps :: { onPointerDown :: EventHandler } }
#useOverlayImpl Source
useOverlayImpl :: forall useOverlayProps. EffectFn2 useOverlayProps (Ref (Nullable Node)) OverlayAria
#useOverlay Source
useOverlay :: forall props props_. Union props props_ UseOverlayProps => Record props -> Ref (Nullable Node) -> Hook UseOverlay OverlayAria
#UseAriaPositionPropsOptional Source
type UseAriaPositionPropsOptional :: Row Type
type UseAriaPositionPropsOptional = (boundaryElement :: HTMLElement, containerPadding :: Number, crossOffset :: Number, isOpen :: Boolean, offset :: Number, onClose :: Effect Unit, placement :: String, scrollRef :: Ref (Nullable Node), shouldFlip :: Boolean, shouldUpdatePosition :: Boolean)
#useOverlayPositionImpl Source
useOverlayPositionImpl :: forall props. EffectFn1 props PositionAria
#usePosition Source
usePosition :: forall props props_. Union props props_ UseAriaPositionPropsOptional => Record (UseAriaPositionPropsRequired props) -> Hook UseOverlayPosition PositionAria
#UseOverlayTriggerProps Source
type UseOverlayTriggerProps = { type :: String }
Type must be one of the following 'dialog' 'menu' 'listbox' 'tree' 'grid'
#OverlayTriggerAriaImpl Source
type OverlayTriggerAriaImpl = { overlayProps :: { id :: String }, triggerProps :: Object Foreign }
#OverlayTriggerAria Source
type OverlayTriggerAria = { overlayProps :: { id :: String }, triggerProps :: { _aria :: Object String } }
#UsePreventScrollOptions Source
type UsePreventScrollOptions = { isDisabled :: Boolean }
#overlayProvider Source
overlayProvider :: ReactComponent { children :: Array JSX }
#overlayContainer Source
overlayContainer :: ReactComponent { children :: Array JSX }
#dismissButton Source
dismissButton :: ReactComponent { onDismiss :: Effect Unit }
#modalProvider Source
modalProvider :: ReactComponent { children :: Array JSX }