Components

Markdown

This renders a markdown text editor with a live preview.

Usage

const blogPostMd = await io.input.markdown('Create a blog post')
console.log(blogPostMd)

Parameters

labelrequired
string

The label to render above the input.

options { ... }
defaultValue
string

Default value rendered in input. Default ''.

placeholder
string

The placeholder to render within the input. Default undefined.

customValidator
(input: unknown) => Promise<string | true>

An asynchronous function that takes unknown input and outputs either true or an error message string to show the user.