Skip to main content

@lexical/react/LexicalTouchIndentationPlugin

Functions

TouchIndentationPlugin()

TouchIndentationPlugin(__namedParameters): null

Defined in: packages/lexical-react/src/LexicalTouchIndentationPlugin.tsx:20

This plugin adds the ability to indent/outdent content by swiping left or right on touch devices. It dispatches the existing INDENT_CONTENT_COMMAND and OUTDENT_CONTENT_COMMAND commands.

Parameters

__namedParameters
swipeThreshold?

number

Returns

null

References

registerTouchIndentation

Re-exports registerTouchIndentation