A modern React component library for visualizing and interacting with OpenAPI specifications.
- 🚀 Full support for OpenAPI 3.x specifications
- 🎨 Beautiful and responsive UI components
- ⚡️ Interactive "Try it out" functionality
- 📦 Lightweight and tree-shakable
npm install @overtrue/pivot
# or
yarn add @overtrue/pivot
import { OpenApiLayout } from '@overtrue/pivot';
import spec from './openapi-spec.json';
function App() {
return <OpenApiLayout spec={spec} />;
}
The main layout component that renders the complete OpenAPI documentation.
Standalone component for making API requests:
import { TryItOutPanel } from '@overtrue/pivot';
function TestPage() {
return (
<TryItOutPanel
operation={operationObject}
method="post"
path="/api/users"
/>
);
}
# Install dependencies
npm install
# Build the library
npm run build
MIT