PopoverContentProps
Extends
Omit<AriaPopoverProps,"children">
Properties
aria-describedby?
optionalaria-describedby:string
Identifies the element (or elements) that describes the object.
Inherited from
Omit.aria-describedby
aria-details?
optionalaria-details:string
Identifies the element (or elements) that provide a detailed, extended description for the object.
Inherited from
Omit.aria-details
aria-label?
optionalaria-label:string
Defines a string value that labels the current element.
Inherited from
Omit.aria-label
aria-labelledby?
optionalaria-labelledby:string
Identifies the element (or elements) that labels the current element.
Inherited from
Omit.aria-labelledby
arrowBoundaryOffset?
optionalarrowBoundaryOffset:number
The minimum distance the arrow's edge should be from the edge of the overlay element.
Default
0
Inherited from
Omit.arrowBoundaryOffset
arrowRef?
optionalarrowRef:RefObject<Element|null>
A ref for the popover arrow element.
Inherited from
Omit.arrowRef
boundaryElement?
optionalboundaryElement:Element
Element that that serves as the positioning boundary.
Default
document.body
Inherited from
Omit.boundaryElement
children?
optionalchildren:ReactNode| (props) =>ReactNode
className?
optionalclassName:string
The CSS className for the element. A function may be provided to compute the class based on component state.
Overrides
Omit.className
containerPadding?
optionalcontainerPadding:number
The placement padding that should be applied between the element and its surrounding container.
Default
12
Inherited from
Omit.containerPadding
crossOffset?
optionalcrossOffset:number
The additional offset applied along the cross axis between the element and its anchor element.
Default
0
Inherited from
Omit.crossOffset
defaultOpen?
optionaldefaultOpen:boolean
Whether the overlay is open by default (uncontrolled).
Inherited from
Omit.defaultOpen
dir?
optionaldir:string
Inherited from
Omit.dir
hidden?
optionalhidden:boolean
Inherited from
Omit.hidden
inert?
optionalinert:boolean
Inherited from
Omit.inert
isEntering?
optionalisEntering:boolean
Whether the popover is currently performing an entry animation.
Inherited from
Omit.isEntering
isExiting?
optionalisExiting:boolean
Whether the popover is currently performing an exit animation.
Inherited from
Omit.isExiting
isKeyboardDismissDisabled?
optionalisKeyboardDismissDisabled:boolean
Whether pressing the escape key to close the popover should be disabled.
Most popovers should not use this option. When set to true, an alternative way to close the popover with a keyboard must be provided.
Default
false
Inherited from
Omit.isKeyboardDismissDisabled
isNonModal?
optionalisNonModal:boolean
Whether the popover is non-modal, i.e. elements outside the popover may be interacted with by assistive technologies.
Most popovers should not use this option as it may negatively impact the screen reader experience. Only use with components such as combobox, which are designed to handle this situation carefully.
Inherited from
Omit.isNonModal
isOpen?
optionalisOpen:boolean
Whether the overlay is open by default (controlled).
Inherited from
Omit.isOpen
lang?
optionallang:string
Inherited from
Omit.lang
maxHeight?
optionalmaxHeight:number
The maxHeight specified for the overlay element. By default, it will take all space up to the current viewport height.
Inherited from
Omit.maxHeight
offset?
optionaloffset:number
The additional offset applied along the main axis between the element and its anchor element.
Default
8
Inherited from
Omit.offset
onAnimationEnd?
optionalonAnimationEnd:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationEnd
onAnimationEndCapture?
optionalonAnimationEndCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationEndCapture
onAnimationIteration?
optionalonAnimationIteration:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationIteration
onAnimationIterationCapture?
optionalonAnimationIterationCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationIterationCapture
onAnimationStart?
optionalonAnimationStart:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationStart
onAnimationStartCapture?
optionalonAnimationStartCapture:AnimationEventHandler<HTMLDivElement>
Inherited from
Omit.onAnimationStartCapture
onAuxClick?
optionalonAuxClick:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onAuxClick
onAuxClickCapture?
optionalonAuxClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onAuxClickCapture
onClick?
optionalonClick:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onClick
onClickCapture?
optionalonClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onClickCapture
onContextMenu?
optionalonContextMenu:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onContextMenu
onContextMenuCapture?
optionalonContextMenuCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onContextMenuCapture
onDoubleClick?
optionalonDoubleClick:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onDoubleClick
onDoubleClickCapture?
optionalonDoubleClickCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onDoubleClickCapture
onGotPointerCapture?
optionalonGotPointerCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onGotPointerCapture
onGotPointerCaptureCapture?
optionalonGotPointerCaptureCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onGotPointerCaptureCapture
onLostPointerCapture?
optionalonLostPointerCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onLostPointerCapture
onLostPointerCaptureCapture?
optionalonLostPointerCaptureCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onLostPointerCaptureCapture
onMouseDown?
optionalonMouseDown:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseDown
onMouseDownCapture?
optionalonMouseDownCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseDownCapture
onMouseEnter?
optionalonMouseEnter:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseEnter
onMouseLeave?
optionalonMouseLeave:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseLeave
onMouseMove?
optionalonMouseMove:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseMove
onMouseMoveCapture?
optionalonMouseMoveCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseMoveCapture
onMouseOut?
optionalonMouseOut:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOut
onMouseOutCapture?
optionalonMouseOutCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOutCapture
onMouseOver?
optionalonMouseOver:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOver
onMouseOverCapture?
optionalonMouseOverCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseOverCapture
onMouseUp?
optionalonMouseUp:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseUp
onMouseUpCapture?
optionalonMouseUpCapture:MouseEventHandler<HTMLDivElement>
Inherited from
Omit.onMouseUpCapture
onOpenChange()?
optionalonOpenChange: (isOpen) =>void
Handler that is called when the overlay's open state changes.
Parameters
isOpen
boolean
Returns
void
Inherited from
Omit.onOpenChange
onPointerCancel?
optionalonPointerCancel:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerCancel
onPointerCancelCapture?
optionalonPointerCancelCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerCancelCapture
onPointerDown?
optionalonPointerDown:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerDown
onPointerDownCapture?
optionalonPointerDownCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerDownCapture
onPointerEnter?
optionalonPointerEnter:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerEnter
onPointerLeave?
optionalonPointerLeave:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerLeave
onPointerMove?
optionalonPointerMove:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerMove
onPointerMoveCapture?
optionalonPointerMoveCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerMoveCapture
onPointerOut?
optionalonPointerOut:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOut
onPointerOutCapture?
optionalonPointerOutCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOutCapture
onPointerOver?
optionalonPointerOver:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOver
onPointerOverCapture?
optionalonPointerOverCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerOverCapture
onPointerUp?
optionalonPointerUp:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerUp
onPointerUpCapture?
optionalonPointerUpCapture:PointerEventHandler<HTMLDivElement>
Inherited from
Omit.onPointerUpCapture
onScroll?
optionalonScroll:UIEventHandler<HTMLDivElement>
Inherited from
Omit.onScroll
onScrollCapture?
optionalonScrollCapture:UIEventHandler<HTMLDivElement>
Inherited from
Omit.onScrollCapture
onTouchCancel?
optionalonTouchCancel:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchCancel
onTouchCancelCapture?
optionalonTouchCancelCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchCancelCapture
onTouchEnd?
optionalonTouchEnd:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchEnd
onTouchEndCapture?
optionalonTouchEndCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchEndCapture
onTouchMove?
optionalonTouchMove:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchMove
onTouchMoveCapture?
optionalonTouchMoveCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchMoveCapture
onTouchStart?
optionalonTouchStart:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchStart
onTouchStartCapture?
optionalonTouchStartCapture:TouchEventHandler<HTMLDivElement>
Inherited from
Omit.onTouchStartCapture
onTransitionCancel?
optionalonTransitionCancel:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionCancel
onTransitionCancelCapture?
optionalonTransitionCancelCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionCancelCapture
onTransitionEnd?
optionalonTransitionEnd:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionEnd
onTransitionEndCapture?
optionalonTransitionEndCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionEndCapture
onTransitionRun?
optionalonTransitionRun:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionRun
onTransitionRunCapture?
optionalonTransitionRunCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionRunCapture
onTransitionStart?
optionalonTransitionStart:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionStart
onTransitionStartCapture?
optionalonTransitionStartCapture:TransitionEventHandler<HTMLDivElement>
Inherited from
Omit.onTransitionStartCapture
onWheel?
optionalonWheel:WheelEventHandler<HTMLDivElement>
Inherited from
Omit.onWheel
onWheelCapture?
optionalonWheelCapture:WheelEventHandler<HTMLDivElement>
Inherited from
Omit.onWheelCapture
placement?
optionalplacement:Placement
The placement of the element with respect to its anchor element.
Default
'bottom'
Inherited from
Omit.placement
scrollRef?
optionalscrollRef:RefObject<Element|null>
A ref for the scrollable region within the overlay.
Default
overlayRef
Inherited from
Omit.scrollRef
shouldCloseOnInteractOutside()?
optionalshouldCloseOnInteractOutside: (element) =>boolean
When user interacts with the argument element outside of the popover ref, return true if onClose should be called. This gives you a chance to filter out interaction with elements that should not dismiss the popover. By default, onClose will always be called on interaction outside the popover ref.
Parameters
element
Element
Returns
boolean
Inherited from
Omit.shouldCloseOnInteractOutside
shouldFlip?
optionalshouldFlip:boolean
Whether the element should flip its orientation (e.g. top to bottom or left to right) when there is insufficient room for it to render completely.
Default
true
Inherited from
Omit.shouldFlip
shouldUpdatePosition?
optionalshouldUpdatePosition:boolean
Whether the overlay should update its position automatically.
Default
true
Inherited from
Omit.shouldUpdatePosition
slot?
optionalslot:string|null
A slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null value indicates that the local props completely override all props received from a parent.
Inherited from
Omit.slot
style?
optionalstyle:StyleOrFunction<PopoverRenderProps>
The inline style for the element. A function may be provided to compute the style based on component state.
Inherited from
Omit.style
translate?
optionaltranslate:"yes"|"no"
Inherited from
Omit.translate
trigger?
optionaltrigger:string
The name of the component that triggered the popover. This is reflected on the element
as the data-trigger attribute, and can be used to provide specific
styles for the popover depending on which element triggered it.
Inherited from
Omit.trigger
triggerRef?
optionaltriggerRef:RefObject<Element|null>
The ref for the element which the popover positions itself with respect to.
When used within a trigger component such as DialogTrigger, MenuTrigger, Select, etc., this is set automatically. It is only required when used standalone.
Inherited from
Omit.triggerRef
UNSTABLE_portalContainer?
optionalUNSTABLE_portalContainer:Element
The container element in which the overlay portal will be placed. This may have unknown behavior depending on where it is portalled to.
Default
document.body
Deprecated
- Use a parent UNSAFE_PortalProvider to set your portal container instead.
Inherited from
Omit.UNSTABLE_portalContainer