Rich text / foldkit-richtext-dom/toolbar

blockAnchor

const · packages/richtext-dom/src/floating.ts:262

const blockAnchor: Mount.MountDefinitionWithArgs<
  'RichTextBlockAnchor',
  {
    hostId: Schema.String
    node: Schema.brand<Schema.NonEmptyString, 'foldkit-richtext/NodeId'>
    gap: Schema.Number
    side: Schema.optionalKey<
      Schema.Literals<readonly ['left', 'above', 'inside-end']>
    >
  },
  never
>

anchorToBlock as a Mount, for the element a block handle is drawn in. Key that element by node.