Function: InsertFrontmatter()

InsertFrontmatter(props): ReactNode | Promise<ReactNode>

A toolbar button that allows the user to insert a front-matter editor (if one is not already present). For this to work, you need to have the frontmatterPlugin plugin enabled.

Parameters

ParameterType
propsobject

Returns

ReactNode | Promise<ReactNode>