
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
@beeq/react
Advanced tools
A lightweight utility that wraps BEEQ custom elements ("web components") so they can be used like native React components.
npm install @beeq/react
npm install @beeq/react@latest
if @beeq/core package is installed you should update both
npm install @beeq/{core,react}
Make sure that BEEQ main style is imported into your application's main style file:
@import "@beeq/core/dist/beeq/beeq";
❗️The icons SVG are shipped in a separate folder. Depending on your React stack, your project will need to include
node_modules/@beeq/core/dist/beeq/svgin the build in such a way that it respond to:http://<domain>/svg
import React from 'react';
import { BqButton } from '@beeq/react';
function App() {
const handleButtonClick = (ev: CustomEvent) => {
console.log(ev.detail);
};
return (
<BqButton appearance="primary" onBqClick={handleButtonClick}>
Click Me
</BqButton>
);
}
export default App;
React and custom elements don't play nicely together. The problem is best described by Custom Elements Everywhere:
Handling data
React passes all data to Custom Elements in the form of HTML attributes. For primitive data this is fine, but the system breaks down when passing rich data, like objects or arrays. In these instances you end up with stringified values like some-attr="[object Object]" which can't actually be used.
Handling events
Because React implements its own synthetic event system, it cannot listen for DOM events coming from Custom Elements without the use of a workaround. Developers will need to reference their Custom Elements using a ref and manually attach event listeners with addEventListener. This makes working with Custom Elements cumbersome.
This utility solves these problems by exposing a native React component that maps properties and events to the underlying custom element. ✨
FAQs
React specific wrapper for BEEQ Design System components
The npm package @beeq/react receives a total of 113 weekly downloads. As such, @beeq/react popularity was classified as not popular.
We found that @beeq/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.