Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kong-ui-public/spec-renderer

Package Overview
Dependencies
Maintainers
0
Versions
1220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kong-ui-public/spec-renderer

A Kong UI component for displaying and filtering API specs

  • 2.3.22
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
664
decreased by-31.12%
Maintainers
0
Weekly downloads
 
Created
Source

@kong-ui-public/spec-renderer

A Kong UI component for displaying and filtering API specs

Features

  • Render spec with optional side nav and filtering

Requirements

  • vue must be initialized in the host application
  • @kong/kongponents must be available as a dependency in the host application, along with the package's style imports. See here for instructions on installing Kongponents. Specifically, the following Kongponents must be available:
    • KBadge
    • KCollapse
    • KIcon
    • KInput

Usage

Install

Install the component in your host application

yarn add @kong-ui-public/spec-renderer

Register

You can register spec-renderer locally. In order to support proper tree-shaking in the host application, please only import and register the components in the page/component where they are being utilized.

<!-- Local registration -->
<template>
  <SpecRenderer />
  <SpecOperationsList />
  <SpecDetails />
</template>

<script setup lang="ts">
// Only import the components you need
import { SpecRenderer, SpecOperationsList, SpecDetails } from '@kong-ui-public/spec-renderer'
// CSS import required for ANY of the components
import '@kong-ui-public/spec-renderer/dist/style.css'
</script>

Included Components

The SpecRenderer component is a combination of two subcompoents, SpecOperationsList and SpecDetails which are exported for individual use if desired.

SpecRenderer

See the component documentation.

SpecOperationsList

See the component documentation.

SpecDetails

See the component documentation.

FAQs

Package last updated on 20 Jan 2025

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc