prosekit/lit/inline-popover
InlinePopover
Extends
BaseElement
<this
> &InlinePopoverProps
<this
>
Constructors
new InlinePopover()
new InlinePopover():
InlinePopover
Returns
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).constructor
Properties
defaultOpen
defaultOpen:
boolean
Whether the popover is open by default when some inline content is selected.
When defaultOpen
is true, the popover will open or close based on the inline selection. When defaultOpen
is false, the popover will never be opened unless the open
prop is true.
Default
true
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).defaultOpen
dismissOnEscape
dismissOnEscape:
boolean
Whether the inline popover should be dismissed when the editor receives an Escape key press.
Default
true
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).dismissOnEscape
editor
editor:
null
|Editor
<any
>
The ProseKit editor instance.
Default
null
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).editor
flip
flip:
boolean
|Placement
[]
Default
true
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).flip
hide
hide:
boolean
Default
true
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).hide
hoist
hoist:
boolean
Default
true
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).hoist
inline
inline:
boolean
Default
true
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).inline
offset
offset:
null
|OffsetOptions
Default
12
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).offset
onOpenChange
onOpenChange:
null
| (open
) =>void
Event handler called when the open state changed caused by user interaction (i.e. select or unselect inline content).
Default
null
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).onOpenChange
open
open:
boolean
Whether the popover is open.
Notice that the popover will be always hidden if the inline selection is empty.
Default
false
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).open
overlap
overlap:
boolean
Default
true
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).overlap
placement
placement:
Placement
The placement of the popover, relative to the selected inline content.
Default
"top"
Inherited from
ElementBuilder<InlinePopoverProps>(useInlinePopover, defaultInlinePopoverProps).placement