Skip to content

Markdown

Renders Markdown with the design system's typography and code styles.

Installation

bun add @xerobi/ui
import { Markdown } from "@xerobi/ui/markdown"

This component is client-side. In Astro, hydrate it with a client directive.

API reference

Markdown

PropTypeDescription
children*stringMarkdown, or HTML which is converted to markdown first.
linkRenderReactElement<Record<string, unknown>, string | JSXElementConstructor<any>>Router link element used for internal links, e.g. `<Link />`.

Search documentation

Search pages, components and blocks.