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.
writeLabelstringText of the write tab. Falls back to `provideBuiLabels`.
previewLabelstringText of the preview tab. Falls back to `provideBuiLabels`.

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.