npm.io
2.8.1 • Published 4 months ago

@prestashopcorp/puik

Licence
MIT
Version
2.8.1
Deps
4
Size
17 kB
Vulns
0
Weekly
0
Stars
24
Logo

Puik

The PrestaShop UI Kit

Documentation

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 project includes the following packages:

Prerequisites

  • Node.js LTS is required.

Installation

# chose your favorite package manager
# NPM
$ npm install @prestashopcorp/puik --save

# Yarn
$ yarn add @prestashopcorp/puik

# pnpm
$ 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

// tsconfig.json
{
  "compilerOptions": {
    "types": ["@prestashopcorp/puik/global"]
  }
}