2.6.0 • Published 5 months ago
@prestashopcorp/puik-components v2.6.0
About The Project
Puik Components is a Vue Components library that aims to provide a complete set of reusable components based on the PrestaShop Design System for all the PrestaShop ecosystem.
ℹ️ see list of available Vue components
Prerequisites
- Node.js LTS is required.
- Vue 3
Installation
# NPM
$ npm install @prestashopcorp/puik-components @prestashopcorp/puik-theme --save
# Yarn
$ yarn add @prestashopcorp/puik-components @prestashopcorp/puik-theme
# pnpm
$ pnpm install @prestashopcorp/puik-components @prestashopcorp/puik-themeStyle
import css in your application:
@import "@prestashopcorp/puik-theme";
Auto import using Puik Resolver (recommended)
First you need to install unplugin-vue-components, unplugin-auto-import and the Puik resolver @prestashopcorp/puik-resolver
$ 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 -DThen add the code below in your vite.config file
ℹ️ if you don't use Vite follow this link
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()],
}),
],
})On demand import
Import the vue component directly into your vue file
<script setup>
import { PuikButton } from '@prestashopcorp/puik-components'
</script>
<template>
<puik-button>Example button</puik-button>
</template>2.3.0
12 months ago
2.5.0
7 months ago
2.4.0
10 months ago
2.6.0
5 months ago
2.5.1
7 months ago
2.2.0
1 year ago
2.1.0
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
2.0.0-beta.4
1 year ago
2.0.0-beta.3
1 year ago
2.0.0-beta.2
2 years ago
2.0.0-beta.0
2 years ago
0.0.1
2 years ago