Function: InsertCodeBlock()
InsertCodeBlock(
props,context?):ReactNode
A toolbar button that allows the user to insert a fenced code block. Once the code block is focused, you can construct a special code block toolbar for it, using the ConditionalContents primitive. See the ConditionalContents documentation for an example.
Parameters
| Parameter | Type |
|---|---|
props | object |
context? | any |
Returns
ReactNode