With error
How it looks (preview)
How to call this example
<%= render "components/markdown_editor", {
label: {
text: "Body with error"
},
textarea: {
name: "markdown-editor-error",
id: "markdown-editor-error"
},
error_items: [
{
text: "There is a problem with this input"
}
]
} %>