Skip to main content

Installation

npm install @powerduck/oas-document

Peer dependencies

npm install react react-dom

CSS import

import "@powerduck/oas-document/react/index.css";

The component bundles its own stylesheet (tree CSS, md-editor CSS) — no extra CSS imports needed beyond the package entry.

Entry points

ImportDescription
@powerduck/oas-document/react<OasDocument /> component and useOasDocument hook
@powerduck/oas-documentCore: loadOasDocument, parseOperations, buildNavigationGroups