@webx-ui/module-banners

Banners for the WebX UI admin panel: pictures, a video and up to three buttons in named places, arranged by hand and printed by the site's own templates.
2,773
Install
npm install @webx-ui/module-banners
Latest Version:0.3.2
Vue:3
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: ahabzig

@webx-ui/module-banners

The front end of the banners section of the WebX UI admin panel: pictures (and a narrower one for a phone), an optional video, a title, a text and up to three buttons, standing in named places and arranged by hand.

The other half is the Composer package webx-ui/module-banners, which owns the places, the banners, banners() and banners_layout() for templates and the API. A section appears in the panel when both halves are installed. Banners reach a site only through a template helper: the site's own markup draws them.

Install

npm install @webx-ui/module-banners
import { createAdmin } from '@webx-ui/module-admin'
import { banners } from '@webx-ui/module-banners'
import '@webx-ui/module-banners/style.css'

createAdmin({
  basePath: '/cms',
  modules: [banners()],
}).mount()

banners() is one section and one entry of the menu, at the top level. banners({ path: '/promo' }) puts it somewhere else inside the panel.

Places and banners

/banners is the places on the left and the banners of one of them on the right. A place the site's config declares is on the list before anything was saved into it, carries a lock and cannot be renamed or deleted here: a template asks for it by key, and the list says how — banners('hero'). A place of somebody's own is made with New place, renamed from its row, and deleted only when it is empty, the bin included.

The banners of a place are in the order the site shows them: drag the grip, or pick it up with the keyboard (space, arrows, space). A switched-off banner stays in its place, quieter; the bin is the same list turned over, and a banner comes back from it with Restore.

A banner opens on a page of its own (/banners/<id>, a new one at /banners/new?place=<key>): the place above the described screen banners.form, one Save under it, Ctrl+S, and a question before leaving with something unsaved. Moved to another place, a banner stands last in it. A new banner starts switched off.

The guide — places, the two helpers, a complete template with its styles and slider script, the agent's tools — is at https://webx-ui.github.io/webx-ui/guide/banners.

Related Packages

@webx-ui/module-pages

Pages for the WebX UI admin panel: the tree of a site's pages, their addresses,...

7,462 0
@webx-ui/module-blog

Blog for the WebX UI admin panel: articles made of blocks, rubrics and tags, sch...

6,583 0
@webx-ui/module-services

Services for the WebX UI admin panel: a catalogue of services made of blocks, fl...

4,031 0
@webx-ui/module-menu

Menus for the WebX UI admin panel: named menus, a tree of items, and what each o...

3,844 0
@webx-ui/module-faq

FAQ for the WebX UI admin panel: questions and answers with flat categories, ord...

3,160 0

Version History

Version Released License
0.3.2 MIT
0.3.1 MIT
0.3.0 MIT
0.2.4 MIT
0.2.3 MIT