@scalar/api-client-modal
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

Scalar Draggable component

Version Downloads License Discord

Installation

npm install @scalar/api-client-modal

Usage

import { createScalarApiClient } from '@/api-client-modal'

// Initialize
const { open } = await createScalarApiClient(document.getElementById('root'), {
  spec: {
    url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.json',
  },
})

// Open the API client right-away
open()

// Or: Open a specific operation
// open({
//   method: 'GET',
//   path: '/me',
// })

You can find this example in the playground folder.

Readme

Keywords

Package Sidebar

Install

npm i @scalar/api-client-modal

Weekly Downloads

114

Version

0.0.16

License

MIT

Unpacked Size

25 kB

Total Files

19

Last publish

Collaborators

  • amritkahlon
  • cameronrohani
  • marclave
  • tommastro
  • scalar_geoff
  • hwkr
  • mason-little
  • hanspagel
  • bgrcs
  • scalar-machine