@kong-ui-public/misc-widgets
v2.1.52
Published
A collection of miscellaneous components and widgets.
Downloads
3,271
Readme
@kong-ui-public/misc-widgets
A collection of miscellaneous components and widgets.
This package is a good home for random, one-off components that aren't complex and a standalone package is not necessary.
Components
Requirements
vue
must be initialized in the host application@kong/kongponents
must be available as adependency
in the host application, along with the package's style imports. See here for instructions on installing Kongponents.@kong-ui-public/i18n
must be available as adependency
in the host application.
Usage
Install
Install the package in your host application
yarn add @kong-ui-public/misc-widgets
# OR
pnpm --filter="@kong-ui/konnect-app-{name} add @kong-ui-public/misc-widgets"
Register Components
You can import individual components locally where they are being used. Don't forget to import the styles as well.
<template>
<GithubStar />
</template>
<script setup lang="ts">
import { GithubStar } from '@kong-ui-public/misc-widgets'
import '@kong-ui-public/misc-widgets/dist/style.css'
</script>