Components
117 components
Every component, by what it is for. Each page has live examples, the markup behind them and the API read from the source.
117 components
Form 32
- AutoComplete A text box that suggests as you type, with suggestions supplied by your app, single or multiple values as chips, and a button for the whole list.
- CascadeSelect A select for nested options, one column per level, opening each group beside the last.
- Checkbox A native checkbox under a drawn box, bound to a boolean or to an array of values, with a mixed state.
- ColorPicker A swatch that opens a colour panel, with a value in hex, RGB or HSB and an optional opacity slider.
- DatePicker A date field you can type into or pick from a calendar, read in the locale's format, with a time of day if you want one.
- DateRange Two dates and the days between them, picked on two months side by side or one, with the span drawn before it is committed.
- Editor Rich text with its own engine and no dependency: headings, lists, tables, images, links and Markdown shortcuts, bound as sanitised HTML.
- FloatLabel A real label that starts inside the field and lifts out on focus or once there is a value; IftaLabel keeps it inside, above the value.
- Form UpdatedValidation and submission built from parts that wire values, labels, hints and errors to any Vitral control, with rules or a schema.
- IconField An icon inside a field, at the start or the end, with the text padded past it.
- InputColor NewA text box for a colour: the swatch opens the picker, the hex is typed, and empty is null.
- InputGroup Fields, buttons and addons welded into one control, with inner corners squared and a single border between neighbours.
- InputMask A text box that types into a pattern, such as a phone or a date, filling in the literals for you. InputText and AutoComplete take the same masks.
- InputNumber A number box with steppers, clamped to a range and formatted in the locale, as a decimal, a currency or a percentage.
- InputOtp One box per character of a one-time code, that moves along as you type and fills at once from a paste or autofill.
- InputPassword A password box with a reveal button and a strength meter.
- InputTag A field whose value is a list of short strings, each shown as a removable tag, added with Enter, a separator or a paste.
- InputText A single-line text box whose attributes land on the native input, with prefix and suffix content, a clear button and an optional mask.
- Knob A dial for a bounded number, set by dragging, pressing anywhere on it or the keyboard.
- Label A native label with the fields' typography, that checks what it points at and dims when that control is disabled.
- MultiSelect A select for several choices, shown as a list, a count or chips, with an optional filter.
- RadioButton Native radios under drawn rings, grouped by RadioGroup with one name and one v-model.
- Rating Stars to rate with, in whole steps or in halves and quarters, cleared by choosing the same star again.
- Select Choose one option from a list, with an optional filter that ignores case and accents.
- SelectButton A segmented control for one choice, as a radio group, or several, as toggle buttons.
- SignaturePad A surface to sign on with a mouse, a pen or a finger. The ink follows the speed of the hand, and the signature comes back as an SVG a form can store.
- Slider Pick a value, or a range, by dragging along a track or with the keyboard.
- Textarea A multi-line text box on the same field chrome as InputText, that can grow with its content.
- TimePicker A time of day, typed freely or picked from a list, and kept as minutes past midnight rather than a Date.
- ToggleButton A button that stays pressed, with its own on and off labels and icons.
- ToggleSwitch An on/off switch over a native checkbox, with a header above and on/off content beside it.
- TreeSelect A select over a tree, with the same filter and checkbox selection as Tree.
Button 5
- Button A command in eight severities, four variants and three sizes, with icons, a loading state, a badge, and rendering as a link.
- ButtonGroup Buttons that belong together, joined into one named control, each keeping its own tab stop.
- CopyButton A button that copies text to the clipboard, answers with a tick for a moment, and tells a screen reader it worked.
- SpeedDial A floating button that fans its actions out, in a line or around a circle.
- SplitButton A command with a menu of related commands welded to it.
Data 18
- Chart SVG charts with no dependency, over twenty types from one options object, with tooltips, legends, zoom and synced groups, readable from the keyboard.
- DataGrid A data table that sorts, filters, pages and selects, locally or on your server, with columns the reader can resize, reorder, pin and hide.
- DataTable The small table: rows already in hand, sorted, striped and sized, with a sticky head. DataGrid takes over when it needs more.
- DataView Sorting and paging over your own template per item, shown as a list or a grid.
- DescriptionList Facts about one thing as labels and values — an order, a profile — in a real <dl>, in columns that fold into one when the list is narrow.
- Listbox A list to choose one or several options from, always open: the sibling of Select.
- OrderList A list the reader puts in order, with buttons, the keyboard or drag and drop.
- OrganizationChart A tree drawn as a chart, with nodes that fold and open, can be selected, and take a template per node type.
- Paginator Moves through pages of data, with first, previous, numbered, next and last buttons, and a rows-per-page choice.
- PickList Two lists and the moves between them, with buttons, the keyboard or a double click, and reordering within each.
- Schedule UpdatedA calendar with month, week, day, agenda and resource timeline views, drag to move and resize, recurring events and any time zone.
- Spreadsheet A spreadsheet with its own formula engine and no dependency: A1 references, ninety-eight functions and recalculation of only what changed.
- Stat A figure worth a glance — what it is, how much, and which way it went — formatted for the locale, with the change read out in words.
- Taskboard A kanban board of cards in columns and swimlanes, dragged by mouse, touch or keyboard, with work-in-progress limits.
- Timeline Events on an axis, down the page or across it, with content on one side, the other, or alternating.
- Tree Hierarchical data with branches that open and close, selection by click or checkbox, a filter, and children loaded on demand.
- TreeTable Rows that expand into rows, with sorting that keeps the nesting and a filter that keeps the branches leading to matches.
- VirtualScroller Renders only the items near the viewport, so a hundred thousand rows cost what a screenful does, with lazy loading.
Panel 9
- Accordion Stacked sections that open and close, one at a time or several at once, with headers that follow the WAI-ARIA accordion.
- Card A container for one piece of content: an optional header image, a title and subtitle, the content and a footer of actions.
- Divider A horizontal or vertical line between pieces of content, solid, dashed or dotted, with optional content set into it.
- Fieldset A native fieldset that names the controls inside it, and can collapse behind its legend.
- Panel A titled container that can collapse behind its header.
- ScrollPanel UpdatedA scroll container with the theme's own thin bars, over native scrolling — the bars every component that scrolls inside wears, and v-scrollbar puts on a box of your own.
- Stepper Steps and their panels, horizontal or vertical, with an optional linear mode that keeps later steps out of reach.
- Tabs Views that share one place on the page, switched by a list of tabs.
- Toolbar A row of controls in start, center and end groups, with optional arrow-key navigation between them.
Overlay 9
- ConfirmDialog A modal question before an action, opened from anywhere with useConfirm, that can default to the safe answer.
- ConfirmPopup A confirmation anchored to the element it is about, opened with useConfirm and holding focus until answered.
- Dialog A window over the page, modal or not, that takes focus in, keeps it inside and returns it when it closes.
- Drawer A panel that slides in from an edge of the viewport, or covers it, with the same modal behaviour as Dialog.
- DynamicDialog A dialog opened from code with a component as its content, which receives data and closes with a result.
- HoverCard A preview of what a link points at, shown while the pointer rests on it or focus reaches it.
- Popover A non-modal dialog anchored to what opened it, closing on Escape, a press outside or tabbing out.
- Tooltip The v-tooltip directive: a hint shown on hover and on keyboard focus, which describes the element it sits on.
- Tour A guided tour over the page, driven from props or from code, with steps that wait, skip, move on by themselves and remember where the reader got to.
Menu 11
- Breadcrumb Where the page sits in a hierarchy: a trail of links with the current page last and separators in between.
- Command A search box over a list of commands that filters as you type, inline or as a modal palette opened with a hotkey.
- ContextMenu The menu a right-click or the context-menu key opens, at the pointer or under the focused element, with submenus.
- Dock A strip of large icons that grow under the pointer, each labelled with a tooltip.
- MegaMenu A menubar whose items open wide panels of grouped links in columns, like this site's own top bar.
- Menu A list of commands and links, inline or as a popup, with groups and separators.
- Menubar The application menu bar, with nested menus, that becomes a single menu button on narrow screens.
- PanelMenu Sections of navigation that expand in place, each a tree of its items, for a sidebar.
- Sidebar UpdatedThe collapsible application sidebar: navigation with sub-lists, that shrinks to its icons and becomes a drawer on small screens.
- TableOfContents The outline of a page, read from its headings, with the section being read marked as the reader scrolls — the “On this page” beside long documents.
- TieredMenu A menu whose items open submenus beside them, to any depth, inline or as a popup.
Messages 9
- BlockUI A veil over a region, or the whole page, while it is busy, making what is under it inert and saying why.
- Chat A conversation with no dependency, in five shapes from a plain thread to an agent with its tool calls, with answers that stream in place.
- EmptyState What to show where there is nothing yet, or where something just finished: an icon, a line saying what happened, and what to do next.
- Message An inline message with a title, an action and a close button, in every severity.
- MeterGroup Several values on one bar, with a legend, read out as a single total.
- ProgressBar How far along a task is, as a thin bar, with a value or indeterminate.
- ProgressSpinner A ring that turns while something is running, or fills clockwise to a value.
- Skeleton The outline of content that is still loading, in any shape, from a line of text to a whole card.
- Toast Notifications sent from anywhere with useToast, one or several at once, collapsed, pinned, with actions or following a promise, that pause their timer while hovered or focused.
Media 8
- AspectRatio A box that keeps its ratio as its width changes, with the content cropped to fill it.
- Avatar A face, initials or an icon in a fixed box, in three sizes and with an optional badge; AvatarGroup overlaps a row of them.
- Carousel A track of items with paging and optional rotation, which pauses on demand and while you point at or work in it.
- Cropper A crop rectangle over an image, with no dependency: lock a ratio, mask a circle, rotate and flip, and crop on a server or in the browser.
- FileUpload A file input drawn as a button, a drop zone and a queue, checking type, size and count, with upload progress.
- Galleria Images with thumbnails, indicators, rotation and a full-screen mode.
- Image An image that can open in a viewer over the page, with rotate and zoom.
- QRCode A QR code drawn as one SVG path, encoded in the browser with no service and no dependency: sharp at any size, printable, and named for a screen reader.
Layout 8
- DockPanel Docks regions to its top, bottom, left and right edges and gives what is left to the fill; the order decides who wins the corners.
- Grid A grid with star sizing: rows and columns sized to content, as shares of what is left, or in pixels, with children placed by row and column.
- Masonry Items of different heights in columns with no gaps under the short ones, laid out in reading order, so a keyboard and a screen reader go left to right as the eye does.
- Splitter Panels with a gutter between each pair that resizes them, by dragging or from the keyboard, within each panel's minimum.
- SplitView A pane beside the content, inline or as an overlay, that can shrink to a strip of icons when closed.
- StackPanel Arranges its children in one line, stacked or side by side, with even spacing between them.
- UniformGrid A grid of equal cells that works out its rows or columns from the number of children.
- WrapPanel Lays children out in a line and wraps to the next when it is full, across or down, with an optional uniform size.
Misc 8
- Badge A count or a status dot, on its own or pinned to the corner of what it wraps with OverlayBadge.
- Chip A compact token for a filter, a recipient or a tag, with an optional image, icon and remove button.
- Countdown The time left until a moment, in tiles or in words, named in the reader’s language and announced to a screen reader without a word every second.
- Inplace A display that turns into its editor when activated, and back again when done.
- Kbd A key or a shortcut as it looks on the reader’s own keyboard: ⌘ on a Mac, Ctrl everywhere else, each symbol still named for a screen reader.
- ScrollTop A button back to the top of a long page or a scrolling element, shown past a threshold.
- Tag A short label for a status or a category, in every severity, with an optional remove button.
- Terminal A prompt and a log, for a console inside an application, with a command history.