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.
-
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.
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"
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>