BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/vinkas-ui/markdown-text

Markdown Text

vinkas-ui/markdown-text
FreeComponent

A text view that renders beautiful Typeset styled HTML from Markdown

Live preview

live · rendered by the registry
Rendered by vinkas-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.vinkas.com/r/markdown-text.json

Source

registry/components/ui/markdown-text.tsxui.vinkas.com/r/markdown-text.json
1import markdownit from "markdown-it"
2import { cn } from "@/lib/utils"
3import { ComponentProps } from "react"
4
5const md = markdownit()
6
7type MarkdownTextProps = {
8 text: string,
9 className?: string,
10} & ComponentProps<"div">
11
12export default function MarkdownText({
13 text,
14 className,
15 ...props
16}: MarkdownTextProps) {
17 const html = md.render(text)
18 return (
19 <div dangerouslySetInnerHTML={{ __html: html }} className={cn("typeset", className)} {...props} />
20 )
21}

What it pulls in

npm packages

  • markdown-it

Files it writes

  • registry/components/ui/markdown-text.tsx

Facts

Registry
vinkas-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-04
Last confirmed
today

Go to the source

Docs on vinkas-ui ui.vinkas.com vinkashq/ui on GitHub Raw registry item This item as JSON

More from vinkas-ui

All 7 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Copyright Textcopyright-textvinkas-uiComponentsFreeno deps
Input Copyableinput-copyablevinkas-uiComponentsFree1 dep
Relative Timerelative-timevinkas-uiComponentsFreeno deps · 2 files
UTM Linkutm-linkvinkas-uiComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex