prosekit/solid/popover
Anatomy
Section titled “Anatomy”Interfaces
Section titled “Interfaces”PopoverPopupProps
Section titled “PopoverPopupProps”Props for the PopoverPopup Solid component.
PopoverPositionerProps
Section titled “PopoverPositionerProps”Props for the PopoverPositioner Solid component.
Properties
Section titled “Properties”-
strategy?:"fixed"|"absolute" -
The strategy to use for positioning
Default
Section titled “Default”"absolute"
-
placement?:Placement -
The initial placement of the floating element
Default
Section titled “Default”"top"
-
autoUpdate?:boolean|AutoUpdateOptions -
Options to activate auto-update listeners
https://floating-ui.com/docs/autoUpdate
Default
Section titled “Default”true
-
hoist?:boolean -
Whether to use the browser Popover API to place the floating element on top of other page content.
Default
Section titled “Default”true
-
offset?:OffsetOptions -
The distance between the reference and floating element.
Default
Section titled “Default”6
-
flip?:boolean|Placement[] -
Whether to flip the
placementin order to keep it in view when the preferred placement(s) will overflow the clipping boundary. You can also provide an array of placements to try sequentially if the preferredplacementdoes not fit.Default
Section titled “Default”true
-
shift?:boolean -
Whether the floating element should shift to keep it in view.
Default
Section titled “Default”true
-
overlap?:boolean -
Whether the floating element can overlap the reference element to keep it in view.
Default
Section titled “Default”false
-
fitViewport?:boolean -
Whether to constrain the floating element's width and height to not exceed the viewport.
Default
Section titled “Default”false
-
sameWidth?:boolean -
Whether to constrain the floating element's width so that it matches the reference element.
Default
Section titled “Default”false
-
sameHeight?:boolean -
Whether to constrain the floating element's height so that it matches the reference element.
Default
Section titled “Default”false
-
inline?:boolean -
Whether to improve positioning for inline reference elements that span over multiple lines.
Default
Section titled “Default”false
-
hide?:boolean -
Whether to hide the floating element when the reference element or the floating element is fully clipped.
Default
Section titled “Default”false
-
boundary?:Boundary -
Describes the clipping element(s) or area that overflow will be checked relative to. Please see https://floating-ui.com/docs/detectoverflow#boundary for more information.
Default
Section titled “Default”'clippingAncestors'
-
rootBoundary?:RootBoundary -
Describes the root boundary that the element will be checked for overflow relative to. Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.
Default
Section titled “Default”'viewport'
-
overflowPadding?:number -
Describes the virtual padding around the boundary to check for overflow. Please see https://floating-ui.com/docs/detectoverflow#padding for more information.
Default
Section titled “Default”4
-
elementContext?:ElementContext -
The element that will be used to check for overflow. Please see https://floating-ui.com/docs/detectoverflow#elementcontext for more information.
Default
Section titled “Default”'floating'
-
altBoundary?:boolean -
Whether to check the alternate elementContext's boundary. Please see https://floating-ui.com/docs/detectoverflow#altboundary for more information.
Default
Section titled “Default”false
PopoverRootProps
Section titled “PopoverRootProps”Props for the PopoverRoot Solid component.
Properties
Section titled “Properties”-
modal?:boolean -
Whether the popover should be modal. When true, the popover will trap focus and prevent interaction with the rest of the page.
Default
Section titled “Default”false
-
defaultOpen?:boolean -
Whether the overlay is initially open.
Default
Section titled “Default”false
-
open?:boolean|null -
Whether the overlay is currently open.
Default
Section titled “Default”null
-
disabled?:boolean -
Whether the component should ignore user interaction.
Default
Section titled “Default”false
-
onOpenChange?: (event:OpenChangeEvent) =>void -
Emitted when the popover is opened or closed.
PopoverTriggerProps
Section titled “PopoverTriggerProps”Props for the PopoverTrigger Solid component.
Properties
Section titled “Properties”-
disabled?:boolean -
Whether the component should ignore user interaction.
Default
Section titled “Default”false
-
openOnHover?:boolean -
Whether the popover should also open when the trigger is hovered.
Default
Section titled “Default”false
-
delay?:number -
The delay in milliseconds before opening the popover when hovering. Only applies when
openOnHoveris true.Default
Section titled “Default”300
-
closeDelay?:number -
The delay in milliseconds before closing the popover when hover ends. Only applies when
openOnHoveris true.Default
Section titled “Default”0
-
onOpenChange?: (event:OpenChangeEvent) =>void -
Emitted when the popover is opened or closed.
Variables
Section titled “Variables”PopoverPopup
Section titled “PopoverPopup”-
const PopoverPopup:Component<PopoverPopupProps&JSX.HTMLAttributes<PopoverPopupElement>> -
A Solid component that renders an
prosekit-popover-popupcustom element.
PopoverPositioner
Section titled “PopoverPositioner”-
const PopoverPositioner:Component<PopoverPositionerProps&JSX.HTMLAttributes<PopoverPositionerElement>> -
A Solid component that renders an
prosekit-popover-positionercustom element.
PopoverRoot
Section titled “PopoverRoot”-
const PopoverRoot:Component<PopoverRootProps&JSX.HTMLAttributes<PopoverRootElement>> -
A Solid component that renders an
prosekit-popover-rootcustom element.
PopoverTrigger
Section titled “PopoverTrigger”-
const PopoverTrigger:Component<PopoverTriggerProps&JSX.HTMLAttributes<PopoverTriggerElement>> -
A Solid component that renders an
prosekit-popover-triggercustom element.