prosekit/react/inline-popover
InlinePopoverProps
Props for the InlinePopover component.
defaultOpen
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. WhendefaultOpen
is false, the popover will never be opened unless theopen
prop is true.Type:
boolean
Default:
true
dismissOnEscape
Whether the inline popover should be dismissed when the editor receives an Escape key press.
Type:
boolean
Default:
true
hide
Type:
boolean
Default:
true
inline
Type:
boolean
Default:
true
offset
Type:
OffsetOptions
Default:
12
onOpenChange
Type:
undefined | ((event: boolean) => void)
open
Whether the popover is open.
Notice that the popover will be always hidden if the inline selection is empty.
Type:
boolean
Default:
false
overflowPadding
Type:
number
Default:
8
overlap
Type:
boolean
Default:
true
placement
Type:
Placement
Default:
"top"
InlinePopover
function InlinePopover(props: InlinePopoverProps & RefAttributes<InlinePopover> & HTMLAttributes<InlinePopover>): ReactNode