swagger-ui-svelte

0.0.13 • Public • Published

Swagger-UI for Svelte

npm npm GitHub Workflow Status

Light version of swagger UI using Svelte JavaScript framework.

Installation

npm i swagger-ui-svelte
// OR
yarn add swagger-ui-svelte

Note: to use this library in sapper, install as devDependency. See the link.

Demo Link

Local demo:

git clone https://github.com/matchid-project/swagger-ui-svelte
cd swagger-ui-svelte
npm install && npm run dev

Examples

An example of how to use the library

<script>
  import SwaggerUISvelte from "swagger-ui-svelte";
</script>
 
<SwaggerUISvelte swaggerUrl="/swagger.json" />

Properties

Component props:

Prop Type Default Description
swaggerUrl string swagger-example.json URL for swagger.json file

/swagger-ui-svelte/

    Package Sidebar

    Install

    npm i swagger-ui-svelte

    Weekly Downloads

    447

    Version

    0.0.13

    License

    none

    Unpacked Size

    1.4 MB

    Total Files

    31

    Last publish

    Collaborators

    • cristianpb