UNPKG

fumadocs-openapi

Version:

Generate MDX docs for your OpenAPI spec

7 lines (6 loc) 301 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Heading } from 'fumadocs-ui/components/heading'; export function heading(depth, text, ctx, children = text) { const id = ctx.slugger.slug(text); return (_jsx(Heading, { id: id, as: `h${depth.toString()}`, children: children }, id)); }