Skip to content

prosekit/vue/inline-popover

InlinePopoverEmits

Emits for the InlinePopover component.

openChange

Fired when the open state changes.

Type: (event: boolean) => void

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. When defaultOpen is false, the popover will never be opened unless the open 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

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

Type: DefineSetupFnComponent<InlinePopoverProps & HTMLAttributes, InlinePopoverEmits>