@readyapi/api-reference-react
v0.1.57
Published
The react client only integration for api references
Downloads
5
Maintainers
Readme
Scalar API Reference React Component
Installation
npm install @readyapi/api-reference-react
Usage
import { ApiReferenceReact } from '@readyapi/api-reference-react'
import React from 'react'
function App() {
return (
<ApiReferenceReact
configuration={{
spec: {
url: 'https://petstore3.swagger.io/api/v3/openapi.json',
},
}}
/>
)
}
export default App
Example
You can find an example in this repo under examples/react
Props
ApiReference only takes one prop which is the configuration object.
configuration: ReferenceProps
You can find the full configuration options under packages/api-reference.