0.1.4 • Published 4 years ago
kru-components v0.1.4
kru-components
Basic third-party library component to demonstrate @nuxt/components Nuxt module.
Usage
Include Kru Components into your Nuxt project
Using npm:
npm i kru-components
Using yarn:
yarn add kru-components
With Nuxt.js
Kru-components is using @nuxt/components to efficently lazy import components by usage.
Important: Ensure using nuxt >= 2.13.0 and components
option is set from nuxt.config
export default {
components: true,
buildModules: [
"kru-components/nuxt",
],
}
kru-components
is configured with kru
prefix. Below is how you'd use them in the template area of your Nuxt components.
<template>
<kru-counter :increase-by="10"> </kru-counter>
<!-- OR -->
<KruCounter :increase-by="2"></KruCounter>
</template>
With Vue-CLI
Development
- Clone this repository
- Run
yarn install
- Run
yarn dev