Markdown editor

A textarea with live preview.

Prefilled

API reference

Inputs

PropTypeDefaultDescription
namestring''Name attribute applied to the textarea for form submission.
placeholderstring'Write markdown…'Placeholder text shown while the textarea is empty.
rowsnumber8Number of visible rows in the write textarea.
writeLabelstring—Text of the write tab. Falls back to `provideBuiLabels`.
previewLabelstring—Text of the preview tab. Falls back to `provideBuiLabels`.
formattingLabelstring—Accessible label override for the formatting toolbar.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
valuestring''Markdown source text. Two-way bindable with `[(value)]`.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.