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
| Prop | Type | Description |
|---|---|---|
| children* | string | Markdown, or HTML which is converted to markdown first. |
| linkRender | ReactElement<Record<string, unknown>, string | JSXElementConstructor<any>> | Router link element used for internal links, e.g. `<Link />`. |