Support installing the API playground via Fumadocs CLI
npx @fumadocs/cli add fumadocs/openapi/playground
Use it with the playground.provider and playground.render options, see Customise UI.
Pass full props to schemaUI.render
It now receives the same props as the built-in Schema UI (including renderMarkdown and renderCodeblock), so a customised Schema UI can act as a drop-in replacement:
schemaUI: {
render: (props) => <Schema {...props} />,
},New exports
- OpenAPI schema types from
fumadocs-openapi(e.g.OperationObject,HttpMethods). useRenderContext,useServerContextanduseOperationContextfromfumadocs-openapi/ui.