
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
A lightweight utility that wraps BEEQ custom elements ("web components") so they can be seamlessly integrated into Vue applications.
BEEQ can generate Vue component wrappers for your web components. This allows BEEQ components to be used within a Vue 3 application. The benefits of using BEEQ's component wrappers over the standard web components include:
v-model.(Adapted from the Stencil official documentation)
[!TIP] Please always refer to the official BEEQ documentation for more information about the installation.
npm install @beeq/{core,vue}
[!NOTE] Make sure that you have installed the
@beeq/corepackage.
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
setBasePathmethod 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 vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
import { viteStaticCopy } from "vite-plugin-static-copy";
export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
// treat all BEEQ tags as custom elements
isCustomElement: (tag) => tag.includes("bq-"),
},
},
}),
vueJsx(),
viteStaticCopy({
targets: [
{
src: "./node_modules/@beeq/core/dist/beeq/svg/*",
dest: "assets/svg",
},
// other assets
],
}),
],
// other configurations
});
// main.ts
import { setBasePath } from '@beeq/core';
setBasePath('icons/svg');
But you can also use a different icons library or a CDN:
import { setBasePath } from '@beeq/core';
// 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.
<script setup lang="ts">
const name = ref('John Doe');
</script>
<template>
<h1>Hello {{ name }}</h1>
<bq-input
name="name"
placeholder="Please type your name..."
v-model="name"
@bqClear="name = ''"
>
<label slot="label">Your name</label>
<bq-icon name="user" slot="prefix"></bq-icon>
</bq-input>
</template>
FAQs
Vue specific wrapper for BEEQ Design System components
We found that @beeq/vue 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.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.