
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@zanichelli/albe-web-components
Advanced tools
The Web Components implementation of Albe, the Zanichelli's design system.

Zanichelli's design system is widely documented on Zeroheight at this link.
yarn add @zanichelli/albe-web-components
yarn start
yarn generate component my-component
NB: component name must have a dash (
-)
yarn link
yarn link @zanichelli/albe-web-components
yarn test
yarn test --spec {componentPath}
yarn test.e2e
There are some tools installed to help keeping uniformity of code style:
Install the related official extensions in your IDE to get live errors and warning while coding.
yarn prettier-check
yarn prettify
yarn lint.eslint
yarn lint.stylelint
yarn lint-fix.eslint
yarn lint-fix.stylelint
In this repository we follow the Conventional Commits Specification and we use commit-and-tag-version to update the CHANGELOG.md when publishing a new version of the package to NPM.
commit-and-tag-version automatically detects the type of the update (patch, minor or major) following the Semantic Versioning specification.
Publish a release using GitHub actions
Run workflow (on the right in the blue box)Run workflow button.master, otherwise the action will publish a latest version anyway, ignoring version and tag names.# Start Storybook
yarn start-storybook
local development with Storybook comes with live reloading.
# Build the library
yarn build
# Build Storybook
yarn build-storybook
yarn build
![]() Edge | ![]() Firefox | ![]() Chrome | ![]() Safari |
|---|---|---|---|
| > 16.16 | > 48 | > 69 | > 10.0 |
The library provides a global css variables export. You can import the styles by ES6 import:
import "@zanichelli/albe-web-components/www/build/web-components-library.css";
or via link tag:
// using jsDelivr
<link
type="text/css"
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@zanichelli/albe-web-components/www/build/web-components-library.css"
/>
// using unpkg
<link
type="text/css"
rel="stylesheet"
href="https://unpkg.com/@zanichelli/albe-web-components/www/build/web-components-library.css"
/>
You can use the library by importing the custom elements from npm package:
import {defineCustomElements} from "@zanichelli/albe-web-components/loader";
defineCustomElements(window);
or via a script tag:
// using jsDelivr
<script src="https://cdn.jsdelivr.net/npm/@zanichelli/albe-web-components/dist/web-components-library/web-components-library.esm.js"></script>
// using unpkg
<script src="https://unpkg.com/@zanichelli/albe-web-components/dist/web-components-library/web-components-library.esm.js"></script>
Then use the relative tag as a usual component in your markup.
<section>
<z-button variant="primary">Click me!</z-button>
</section>
Albe's Web Components come with automatically generated React bindings. This means that you can use Web Components in a React application without the need to wrap component references, with full intellisense support thanks to TypeScript definition files for bindings.
Import components reference from the React submodule:
import React from "react";
import ReactDOM from "react-dom";
import "@zanichelli/albe-web-components/www/build/web-components-library.css";
import {defineCustomElements} from "@zanichelli/albe-web-components/loader";
import {ZButton} from "@zanichelli/albe-web-components/react";
defineCustomElements(window);
ReactDOM.render(<ZButton>Click me</ZButton>, document.getElementById("root"));
Each component is structured as follows:
| File name | Description |
|---|---|
index.tsx | Markup and UI logics |
styles.css | Styles |
index.spec.ts | Tests |
index.mdx | Storybook's markdown |
index.stories.ts | Storybook's CSF stories |
readme.md | Auto-generated documentation |
FAQs
The Web Components implementation of Albe, the Zanichelli's design system.
The npm package @zanichelli/albe-web-components receives a total of 2,383 weekly downloads. As such, @zanichelli/albe-web-components popularity was classified as popular.
We found that @zanichelli/albe-web-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 27 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.