
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
@beeq/react
Advanced tools
A lightweight utility that wraps BEEQ custom elements ("web components") so they can be used like native React components.
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. ✨
[!TIP] Please always refer to the official BEEQ documentation for more information about the installation.
npm install @beeq/{core,react}
[!NOTE] Make sure that you have installed the
@beeq/core
package.
Import BEEQ styles into your application's main style file:
@import "@beeq/core/dist/beeq/beeq.css";
[!TIP] BEEQ uses SVG icons and these assets are shipped in a separate folder. You can use the
setBasePath
method to set the path to the icons. Make sure that your project bundle the icons in a way that they are accessible from the browser.
You can move the icons from the node_modules folder to your assets folder and set the path like this:
// vite.config.js
import { defineConfig } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [
react(),
viteStaticCopy({
targets: [
{
src: './node_modules/@beeq/core/dist/beeq/svg/*',
dest: 'icons/svg',
},
// add more targets if needed
],
}),
],
// other configurations
});
// main.ts
import { setBasePath } from "@beeq/core/dist/components";
setBasePath('icons/svg');
Please, notice the path 👆
But you can also use a different icons library or a CDN:
import { setBasePath } from "@beeq/core/dist/components";
// Using heroicons library
setBasePath('https://cdn.jsdelivr.net/npm/heroicons@2.1.5/24/outline');
[!CAUTION] When using a different icons library, make sure you use the correct icon names provided by the library or the CDN.
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;
1.9.0 (2025-04-29)
absolute
to fixed
(#1464)NPM
to PNPM
(#1442)@stencil/sass
to v3.1.9 and silence deprecation warnings (#1450)@stencil/core
, @stencil/sass
and @stencil/vue-output-target
dependencies (#1452)@stencil/{core, react-output-target}
to v4.30.0 and v1.0.2 (#1474)@beeq/core
version in the wrapper packages (36870b9)FAQs
React specific wrapper for BEEQ Design System components
The npm package @beeq/react receives a total of 163 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.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.