prosekit/svelte/block-handle
Anatomy
Section titled “Anatomy”Interfaces
Section titled “Interfaces”BlockHandleAddProps
Section titled “BlockHandleAddProps”Props for the BlockHandleAdd Svelte component.
Properties
Section titled “Properties”-
children?:Snippet<[]>
BlockHandleDraggableProps
Section titled “BlockHandleDraggableProps”Props for the BlockHandleDraggable Svelte component.
Properties
Section titled “Properties”-
children?:Snippet<[]>
BlockHandlePopupProps
Section titled “BlockHandlePopupProps”Props for the BlockHandlePopup Svelte component.
Properties
Section titled “Properties”-
children?:Snippet<[]>
BlockHandlePositionerProps
Section titled “BlockHandlePositionerProps”Props for the BlockHandlePositioner Svelte component.
Properties
Section titled “Properties”-
placement?:Placement -
The placement of the popover, relative to the hovered block.
Default
Section titled “Default”"left"
-
hoist?:boolean -
Whether to use the browser Popover API to place the floating element on top of other page content.
Default
Section titled “Default”false
-
strategy?:"fixed"|"absolute" -
The strategy to use for positioning
Default
Section titled “Default”"absolute"
-
autoUpdate?:boolean|AutoUpdateOptions -
Options to activate auto-update listeners
https://floating-ui.com/docs/autoUpdate
Default
Section titled “Default”true
-
offset?:OffsetOptions -
The distance between the reference and floating element.
Default
Section titled “Default”6
-
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
-
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
-
children?:Snippet<[]>
BlockHandleRootProps
Section titled “BlockHandleRootProps”Props for the BlockHandleRoot Svelte component.
Properties
Section titled “Properties”-
onStateChange?: (event:BlockHandleStateChangeEvent) =>void -
Fired when the hovered block changes.
-
children?:Snippet<[]>
Variables
Section titled “Variables”BlockHandleAdd
Section titled “BlockHandleAdd”-
const BlockHandleAdd:Component<BlockHandleAddProps&HTMLAttributes<BlockHandleAddElement>> -
A Svelte component that renders an
prosekit-block-handle-addcustom element.
BlockHandleDraggable
Section titled “BlockHandleDraggable”-
const BlockHandleDraggable:Component<BlockHandleDraggableProps&HTMLAttributes<BlockHandleDraggableElement>> -
A Svelte component that renders an
prosekit-block-handle-draggablecustom element.
BlockHandlePopup
Section titled “BlockHandlePopup”-
const BlockHandlePopup:Component<BlockHandlePopupProps&HTMLAttributes<BlockHandlePopupElement>> -
A Svelte component that renders an
prosekit-block-handle-popupcustom element.
BlockHandlePositioner
Section titled “BlockHandlePositioner”-
const BlockHandlePositioner:Component<BlockHandlePositionerProps&HTMLAttributes<BlockHandlePositionerElement>> -
A Svelte component that renders an
prosekit-block-handle-positionercustom element.
BlockHandleRoot
Section titled “BlockHandleRoot”-
const BlockHandleRoot:Component<BlockHandleRootProps&HTMLAttributes<BlockHandleRootElement>> -
A Svelte component that renders an
prosekit-block-handle-rootcustom element.