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
| Import | Description |
|---|---|
@powerduck/oas-document/react | <OasDocument /> component and useOasDocument hook |
@powerduck/oas-document | Core: loadOasDocument, parseOperations, buildNavigationGroups |