About The Project
Puik is a library that aims to provide a complete set of reusable components based on the PrestaShop Design System for all the PrestaShop ecosystem. This packages includes the following packages:
Prerequisites
Installation
$ npm install @prestashopcorp/puik --save
$ yarn add @prestashopcorp/puik
$ pnpm install @prestashopcorp/puik
Usage
Imports
For the usage you can refer to the other packages README, the only thing that will change is the import path, you will use @prestashopcorp/puik
instead of the specific package name (that doesn't apply to @prestashopcorp/puik-theme
)
Full import
If you don't care about bundle size you can full import the library by following these instructions
Import the vue library and the css directly into your main.js / main.ts
import { createApp } from 'vue'
import Puik from '@prestashopcorp/puik'
import '@prestashopcorp/puik-theme/index.css'
import App from './App.vue'
const app = createApp(App)
app.use(Puik)
app.mount('#app')
If you are using Volar you need to add the global component type definitions to your tsconfig.json
{
"compilerOptions": {
"types": ["@prestashopcorp/puik/global"]
}
}