BlockSuite API Documentation / @blocksuite/inline / AttributeRenderer
Type Alias: AttributeRenderer()<TextAttributes>
AttributeRenderer<
TextAttributes>: (props) =>TemplateResult<1>
Type Parameters
• TextAttributes extends BaseTextAttributes = BaseTextAttributes
Parameters
• props
• props.delta: DeltaInsert<TextAttributes>
• props.editor: InlineEditor<TextAttributes>
• props.endOffset: number
• props.lineIndex: number
• props.selected: boolean
• props.startOffset: number
Returns
TemplateResult<1>
Defined in
packages/framework/inline/src/types.ts:13