Markdown WYSIWYG Editor

MarkdownLexicalsupports SSR and can be used in your NextJs application with Server Actions:

Enter some Text
async function addItem(data: any) {
'use server'
console.log(data);
}
return (
<>
<form action={addItem} className='w-full' >
<MarkdownLexical name="markdown">
<MarkdownLexicalFormatTextPlugin />
</MarkdownLexical>
<Button type="submit">Submit</Button>
</form>
</>
)
);