Socket
Book a DemoInstallSign in
Socket

@scalar/api-reference-react

Package Overview
Dependencies
Maintainers
8
Versions
397
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/api-reference-react

The react client only integration for api references

Source
npmnpm
Version
0.1.40
Version published
Weekly downloads
33K
-24.96%
Maintainers
8
Weekly downloads
 
Created
Source

Scalar API Reference React Component

Version Downloads License Discord

Installation

npm install @scalar/api-reference-react

Usage

import { ApiReferenceReact } from '@scalar/api-reference-react'
import React from 'react'

function App() {
  return (
    <ApiReferenceReact
      configuration={{
        spec: {
          url: 'https://petstore.swagger.io/v2/swagger.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.

Keywords

api

FAQs

Package last updated on 15 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts