Back

VibeFox JS UI — Demo

Quick start

Plain HTML

The order form of the quick start: a searchable select, a date picker that does not allow past dates, and a button that shows a toast. Open the select, type to filter, pick a date and click Order.

Core concepts

Events

Every event handler receives one payload object. Drag the slider or use the arrow keys: valueChange comes while the value changes, slideEnd when the thumb is released.

State snapshots

getState() returns what the user changed, setState() restores it. Pick a tab or drag a tab to another place, click Save state, change the tabs again and click Restore state.

Content

The content of a tab (dialog, panel, tile, card …) is an HTML string, a DOM node or a function that fills the element. The three tabs show one of each.

Buttons

Button

Variants, icons and a disabled button. Click Save: it shows a spinner while the (simulated) work runs.

ButtonGroup and SplitButton

A single-choice group (alignment), a multiple-choice group of toggle buttons and a split button with a menu. Click the buttons and the arrow of Send.

Form controls

Input and NumberInput

A phone field with a mask, a clearable e-mail field and two number inputs. Type digits into Phone and use the arrow keys in Quantity.

Select

A multiple select with search, groups and tags (two tags, then "+N"), and a simple single select. Open the lists and type to filter.

AutoComplete

The first field loads suggestions from an async source (a stand-in for your server, with a delay); the second filters a static list fuzzily and keeps several values as chips. Type "ber" or "pa" in City, "apl" in Fruits.

Checkbox, Switch, RadioGroup, Segmented

The on / off and one-of-many controls; the line below shows their values. Click them or use Space and the arrow keys.

Slider and Rating

A range slider with two thumbs and tooltips, a single slider and a rating with half stars and labels. Drag the thumbs, hover over the stars.

OTP input

A one-time code in two groups of three digits. Type or paste a 6-digit code: complete fires when every cell is filled.

Form fields in native forms

VibeFox JS controls inside a plain <form>: Submit with empty required fields shows their messages and focuses the first one; a valid form shows its FormData below. Reset restores the initial values.

Date, time and color pickers

A date range, a date with time, a time with 30-minute steps and a color with transparency. Open each picker; the calendars work with the arrow keys and PageUp / PageDown.

Lists and trees

ListView and ListBox

A list box with check boxes (one disabled item) and a list you can reorder: drag an item, press Alt+ArrowUp / ArrowDown, or open the Move handle of an item for the move menu.

TransferList

Choose the columns to show: move items between the lists with the buttons, a double click or by drag, reorder the chosen ones; at most four can be chosen.

Tree

A tree with tri-state check boxes, search and lazy children (the folder lib loads its files after a short delay, like from a server). Expand lib, check items, type in the search box.

Forms and file upload

Form

A form built from field descriptions with rules. Click Register with empty fields to see the errors; a valid form shows its value and the FormData of its form element below.

FileUpload

Uploads in chunks with progress, cancel and retry. Here the transport is a stand-in for your server (nothing leaves the page): drop files on the box, or click Add sample files (the third one is too large and is rejected).

Navigation

Tabs and Accordion

Closable tabs you can reorder (drag a tab or use its move handle) and an accordion where several sections can be open. Close a tab with its cross or the Delete key.

Menu and Toolbar

A dropdown menu with a check item, a divider and a submenu, the same menu as the context menu of the grey box (right click or Shift+F10), and a toolbar with toggle buttons. The line below shows the clicks.

Breadcrumb and Pagination

A breadcrumb that folds the middle items when there are too many, and a pagination with the page size and the total. Click the pages and change the page size.

Stepper and Wizard

A wizard whose first step checks its field before going on: click Next with an empty name to see the error. The second step is optional; Finish shows the result.

CommandPalette

A searchable list of commands. Click Open palette (or press Ctrl+K / Cmd+K inside the example), type "dark" or "new" and press Enter; recent commands come first.

Dialogs and overlays

Dialog

A modal dialog with buttons, and windows that are not modal: open two, drag them by the header, resize them by the corners, maximize or minimize; the window menu button moves them without dragging.

Drawer

A panel that slides in from an edge. Open it from the left, the right or the bottom; Esc or a click on the backdrop closes it.

Toast

Notifications in the corner: four types, one with an action that stays until it is used, and one that follows a promise (loading, then done). At most three are shown, the rest wait.

Tooltip and Popover

A tooltip shows on hover and keyboard focus; a popover with a title and rich content opens on click. Hover or tab to Help, click Order 42.

Tour

An onboarding tour: a spotlight on each target with a step card. Click Start tour and go through the steps with Next or the arrow keys.

Layout

Splitter

Three panes with draggable gutters; the first one collapses with a double click on its gutter. A click on a gutter opens its move menu, the arrow keys move a focused gutter.

DockLayout

Panels in zones like an IDE. Drag a panel tab to another zone, or open the move handle of a tab (or press Alt+arrows) to dock it left, top, center, bottom or right.

TileLayout

A dashboard grid: drag a tile by its header, resize it by the corner, or click the grip for the move menu (move, wider, narrower …). Ctrl+Z undoes a change; at a narrow width the tiles get fewer columns.

Data display

Card

Cards with a picture, a title, text and actions: elevated, outlined and a card that is a link. Click Book.

Avatar, Chip, Badge

Avatars with initials, a status and a "+2" group; filter chips you can select and remove; badges with a count on a button and as a dot.

Progress, Spinner, Skeleton

A progress bar, spinners and a skeleton placeholder. Click Load: the bar fills, then the skeleton is replaced by the content.

Carousel

Slides with arrows, indicators, swipe and a loop; one, two or three slides at once depending on the width. Use the arrows, the dots or the arrow keys.

Kanban

A board with a WIP limit of 2 on In progress, labels, assignees, due dates and progress. Drag cards between columns, or open the small move handle of a card for its "Move" menu; use the search and quick add, Ctrl+Z undoes a move.

Chat and AI Prompt

Chat

Messages with Markdown, avatars and reactions, suggestions and a typing indicator. Send a message: a stand-in for the other side "types" and answers. Hover a message for reply, react and copy.

AI Prompt

A chat with an assistant whose answer streams word by word. The request function here is a stand-in for your model (nothing is sent anywhere). Click a suggestion or ask something; Stop aborts the answer.

File manager

An explorer over an in-memory adapter (your backend goes there): open folders in the tree, switch details / tiles, sort, search, rename (F2), copy and paste, drag files to folders, right-click for the menu.

Query builder

Conditions with AND / OR groups; below are the SQL with parameters, the readable text and the rows of a small table that match. Add a rule or a group, change a field or an operator.

Spreadsheet

A sheet with formulas, number formats and styles, the formula bar and the toolbar. Change a number in Units and see the totals follow; type =TAX(D4) into a cell to use the own function.

Image editor

The editor with a picture drawn in the code: crop, rotate, flip, filters and annotations, with undo. Pick a tool in the toolbar, add an arrow or text, try a filter.

Signature pad and barcodes

SignaturePad

Sign with the mouse, a pen or a finger (the line follows the speed); undo, redo and clear are in the toolbar. Export shows the size of the PNG and the SVG.

QR code and barcodes

A QR code, a Data Matrix, an EAN-13 and a Code 128 made in the browser (also in Node). Type into the field to change the QR code.

Theming and styling

Themes

The same controls in every theme: the three built in and the pack of vibefox-js-themes.css. Pick a theme in the list.

CSS variables

Every color and size is a CSS variable. Pick an accent color and a corner radius: a CSS rule sets --vfjs-accent and --vfjs-radius on the box below, and every control inside follows.

Variants and sizes

The looks filled, outline and ghost in the sizes s, m and l, set once on a container with data-vfjs-ui-variant / data-vfjs-ui-size.

Density and size

Switch the density of the container: heights and paddings of every control inside follow. The size unit --vfjs-size-unit scales everything at once.

Your own CSS

The library rules are in the cascade layer vfjs, so plain CSS of the page wins without !important: here primary buttons get capitals and pressed toggle buttons get bold text.

Localization and RTL

Languages

English is built in, Russian comes from the language pack vibefox-js-ui.ru.js loaded after the library. Switch the page language: the calendar, the select, the pagination and the upload box re-render in it.

Adding a language

addLocale() adds German strings for some keys; the keys that are not given fall back to English. The select and the pagination use the locale de.

Right-to-left

With rtl: true the components are laid out right-to-left and the arrow keys follow the reading order. Switch the direction.

Accessibility

Drag and drop without dragging

Everything that can be dragged also has a "Move…" menu. Focus an item and press Shift+F10, right-click it, or click its small move handle: move a task up, down or to the other list.

Using with other VibeFox JS libraries

Connecting components with link()

A query builder of VibeFox JS UI filters a table of VibeFox JS Grid (both libraries on the page): link() passes every change of the conditions to grid.setFilterModel(). Change a condition and watch the rows.

AI tools

The tool loop with a stand-in model function in the code (your model goes there): it asks for the tool sheet_set_range and a total row is written into the sheet, then sheet_format_range makes it bold. Click Ask.

Bug Report

Thank you for helping us improve. We carefully review every report, but we do not reply to them individually. If your report leads to a change, it will be listed in the product changelog together with the report number. To discuss something in detail, please open a support ticket.

Slide to fit the puzzle