
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@prestashopcorp/puik-web-components
Advanced tools
Puik Web Components is a library that aims to provide a complete set of reusable web components based on the PrestaShop Design System for all the PrestaShop ecosystem.
# NPM
$ npm install @prestashopcorp/puik-web-components --save
# Yarn
$ yarn add @prestashopcorp/puik-web-components
# pnpm
$ pnpm install @prestashopcorp/puik-web-components
To use all Puik web components in your application, you first need to import and initialize them. Here’s how you can do it:
import { initAllWeb, PuikExampleCe, PuikAnotherExampleCe, // other components... } from @prestashopcorp/puik-web-components
Then, run the following function in your application:
initAllWeb();
For each component, it replaces 'ce' in the component's name with the provided suffix to form the tagname
.
If no suffix is provided, 'ce' is used as the default suffix
Here’s how you can do it:
// Initialize all web components without argument
initAllWeb(); // The tagname for PuikExampleCe will default to 'puik-example-ce'
// Initialize all web components with 'mySuffix' as the suffix
initAllWeb('mySuffix'); // The tagname for PuikExampleCe will be 'puik-example-mySuffix'
If you only want to use a specific component in your application, you can import and initialize it individually. In this case you can name your web-component whatever you want.
Here’s how you can do it:
import { initCe, PuikExampleCe } from @prestashopcorp/puik-web-components
Then, run the following function in your application:
initCe('your-tagname-here', PuikExampleCe);
Then, use your web-component:
<your-tagname-here>
...
</your-tagname-here>
FAQs
PUIK Web-Components library.
We found that @prestashopcorp/puik-web-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.