component-sampler

Themed grid of native UI elements. Shows how buttons, inputs, badges, and other components look with the active VB theme.

Overview

Renders a grid of real native HTML elements styled by VB's cascade. Theme changes propagate automatically via CSS custom properties — no re-render needed. Useful for brand guideline pages that need to show how the active theme affects standard UI components.

Part of the Design System Pack.

Usage

Default (all components)

Shows buttons, inputs, selects, checkboxes, radios, badges, and progress bars.

Selective

Show only specific component types.

Compact

Reduced spacing for tighter layouts.

Available Component Types

TypeRenders
buttonPrimary, secondary, and disabled buttons
inputText, email, and read-only inputs
selectSelect with sample options
checkboxChecked, unchecked, and disabled checkboxes
radioSelected, unselected, and disabled radios
badgeDefault, success, warning, danger, and info badges
progressProgress bars at 33%, 66%, and 100%
rangeRange slider
textareaTextarea with placeholder

Attributes

AttributeValuesDefaultDescription
componentsstringbutton,input,select,checkbox,radio,badge,progressComma-separated component types to render
labelstringOptional heading label
compactbooleanReduced spacing variant