Skip to content

API > @blocksuite/virgo > renderElement

Function: renderElement ​

renderElement<TextAttributes>( delta, parseAttributes, selected): TemplateResult< 1 >

Type parameters ​

Parameter
TextAttributes extends {bold: null | true; code: null | true; italic: null | true; link: null | string; strike: null | true; underline: null | true;}

Parameters ​

ParameterType
deltaDeltaInsert< TextAttributes >
parseAttributesfunction
selectedboolean

Returns ​

TemplateResult< 1 >

Defined In ​

packages/virgo/src/utils/renderer.ts:6