New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@x4b/webcomponent-banner

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@x4b/webcomponent-banner

Banner webcomponent for X4B

latest
Source
npmnpm
Version
70.4.0
Version published
Maintainers
1
Created
Source

X4B Webcomponent Banner

This project provides a webcomponent component for the banner

Install

  • Install the banner package
npm install @x4b/webcomponent-banner
# or
yarn add @x4b/webcomponent-banner
  • Install the fonts

By default, the banner uses the open sans font. In the head of the HTML file, add the following code:

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap" />

Example

First, you have to register the webcomponent:

import { register } from './library';

register();

Add the webcomponent to your application:

<x4b-banner
    apps-service-url="https://x4b.dev.xcomponent.com/apps"
    notification-count="3"
    application="scenario"
    version="dev-test"
    language="en"
    languages="en,fr"
></x4b-banner>

You can listen to the following DOM events:

EventDescriptionParameter
languageChangedTriggered when a language is selectedSelected language
menuToggleButtonClickedTriggered when the burger button is clickedMenu state (true -> full size, false -> reduced)
notificationButtonClickedTriggered when the notification button is clickedNone
tokenRefreshedTriggered when the token is refreshedNone
startupFinishedTriggered when the banner is initializedNone

FAQs

Package last updated on 22 Jan 2026

Did you know?

Socket

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.

Install

Related posts