@prestashopcorp/puik-resolver
PUIK resolver - For unplugin-vue-components.
42,900
24
| Install | |
|---|---|
npm install @prestashopcorp/puik-resolver |
|
| Latest Version: | 9.0.1 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Jun 30, 2026 |
| Links: | GitHub · npm |
Maintainer: natsuflame
About The Project
Puik Resolver is a vue component resolver for unplugin-vue-components and unplugin-auto-import that will auto import components from the @prestashopcorp/puik-components
Prerequisites
- Node.js LTS is required.
- Vue 3
@prestashopcorp/puik-components
Installation
$ npm install -D unplugin-vue-components unplugin-auto-import @prestashopcorp/puik-resolver
# Yarn
$ yarn add unplugin-vue-components unplugin-auto-import @prestashopcorp/puik-resolver -D
# pnpm
$ pnpm install unplugin-vue-components unplugin-auto-import @prestashopcorp/puik-resolver -D
ℹ️ unplugin-auto-import is only used for the snackbar component at the moment if you don't need this component you can skip everything related to unplugin-auto-import
Usage
Add the following code to your vite.config.ts file
import { defineConfig } from 'vite'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'
import { PuikResolver } from '@prestashopcorp/puik-resolver'
export default defineConfig({
plugins: [
// ...
Components({
resolvers: [PuikResolver()],
}),
AutoImport({
resolvers: [PuikResolver()],
}),
],
})
Then you can use the components without importing them like that
<script setup></script>
<template>
<PuikButton>Example button</PuikButton>
</template>
You can find out more about unplugin-vue-components and unplugin-auto-imports in their documentation
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 9.0.1 | MIT | |
| 9.0.0 | MIT | |
| 8.0.0 | MIT | |
| 7.0.0 | MIT | |
| 6.0.1 | MIT | |
| 6.0.0 | ||
| 5.0.0 | ||
| 4.0.0 | ||
| 3.0.0 | ||
| 2.0.1 | ||
| 2.0.0 | ||
| 0.0.1 |
Pre-releases (4)
| Version | Released | License |
|---|---|---|
| 2.0.0-beta.5 | ||
| 2.0.0-beta.4 | ||
| 2.0.0-beta.3 | ||
| 2.0.0-beta.1 |