Vinkas UI

Markdown Text

A text view that renders beautiful Typeset styled HTML from Markdown

Demo

A bold text and italic text

  import { MarkdownText } from "@/components/ui/markdown-text"

  export function MarkdownTextDemo() {
    return <MarkdownText text="A **bold text** and _italic text_" />
  }

Installation

npx shadcn@latest add @vinkas-ui/markdown-text

Make sure you already have the @vinkas-ui registry added to your components.json file. Read the installation guide for more information. Also, you should have installed the Typeset from shadcn/ui.

Properties

PropertyTypeRequiredDescriptionDefault
textstringYesThe markdown text.-
classNamestringNoThe className to be applied to the component.-