UNPKG

next-openapi-gen

Version:

Automatically generate OpenAPI 3.0 documentation from Next.js projects, with support for Zod schemas and TypeScript types.

22 lines (19 loc) 444 B
export const rapidocDeps = ["rapidoc"]; export const rapidocDevDeps = []; export function RapidocUI(outputFile) { return ` "use client"; import "rapidoc"; export default function ApiDocsPage() { return ( <section style={{ height: "100vh" }}> <rapi-doc spec-url="${outputFile}" render-style="read" style={{ height: "100vh", width: "100%" }} ></rapi-doc> </section> ); } `; }