Files
upstream-mirror 1416db152c
All checks were successful
Release / Create Version PR or Publish Stable Release (push) Has been skipped
Release / Publish Prerelease to NPM (push) Has been skipped
Monitor Registries / Monitor registry health (push) Has been skipped
snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
2026-09-15 22:44:43 +05:00

28 lines
556 B
TypeScript

"use client"
import * as React from "react"
import { code } from "@streamdown/code"
import { cn } from "cn"
import { Streamdown } from "streamdown"
const DEFAULT_PLUGINS = { code }
function Markdown({
className,
plugins = DEFAULT_PLUGINS,
controls = false,
...props
}: React.ComponentProps<typeof Streamdown>) {
return (
<Streamdown
data-slot="markdown"
plugins={plugins}
controls={controls}
className={cn("cn-markdown w-full min-w-0 overflow-hidden", className)}
{...props}
/>
)
}
export { Markdown }