input | OpenApiInput | OpenApiDocument | null | required | The OpenAPI/Swagger document (object, JSON string, or YAML string) |
autoUpgrade | boolean | true | Validate and upgrade to OAS 3.2 via @powerduck/openapi-parser |
defaultOperationId | string | — | Operation ID to select on initial render |
onOperationChange | (operation) => void | — | Callback on user-initiated selection changes |
className | string | — | Additional CSS class for root |
style | React.CSSProperties | — | Inline styles for root |
theme | "light" | "dark" | "light" | Initial theme. Persisted to localStorage. |
header | OasDocumentHeaderConfig | — | Header configuration (logo, title, nav links) |
showTree | boolean | true | Show sidebar tree |
treeWidth | number | 340 | Sidebar width in pixels (range 240-480) |