@lexical/react/LexicalBlockWithAlignableContents
Functions
BlockWithAlignableContents()
BlockWithAlignableContents(
__namedParameters):Element
Defined in: packages/lexical-react/src/LexicalBlockWithAlignableContents.tsx:50
A wrapper component for the contents of a DecoratorBlockNode that
keeps the block in sync with node selection and element alignment. It renders
its children inside a container that reflects the node's format
alignment, responds to FORMAT_ELEMENT_COMMAND to update that alignment, and
toggles the node's selection when the container is clicked.
Parameters
__namedParameters
Props
Returns
Element
The element to render for the decorator block.