Alert Block with Full UX
In this example, we create a custom Alert
block which is used to emphasize text, same as in the minimal Alert
block example. However, in this example, we also add a command to insert the block via the Slash Menu, and an entry in the Formatting Toolbar's Block Type Select to change the current block to an Alert
.
Try it out: Press the "/" key to open the Slash Menu and insert an Alert
block! Or highlight text in a paragraph, then change the block type to an Alert
using the Block Type Select in the Formatting Toolbar!
Relevant Docs: