Skip to content

Components

40 components in 6 groups, one name each: the page name, the CSS class and the name in this list are the same word. 40 are Beta, 0 are Ready.

Every one is framework-free CSS with optional behavior from one small script: xg-ui.css and xg-ui.js on top of xg-tokens.css. Each name opens its own page: the component rendered live, what to use it for and what not, the markup to copy, its states, its rules and its accessibility notes. The workshop shows them all at once, in both brands and modes.

Draft: being designed; do not build on it. Beta: usable; class names may still change in a minor release, with a note in the changelog. Ready: stable; changes only in a major release, with a migration note. Deprecated: has a replacement and a removal date. A component reaches Ready by passing the bar in Releasing, not by waiting for a release.

Actions · 4

ComponentStatusUse it forClasses
ButtonBetathe one action a view exists for: Save, Create campaign, Apply filters, Launch..xg-btn
Icon buttonBetatable row actions, toolbars, dialog close, topbar notifications..xg-btn
Button groupBetatwo to four related actions that act on the same thing..xg-btn-group
LinkBetagoing somewhere: a report, the docs, a partner page..xg-link

Forms · 10

ComponentStatusUse it forClasses
InputBetafree text and numbers: campaign name, daily budget, floor price..xg-field
TextareaBetatext longer than one line, or one entry per line (domain lists, bundle IDs)..xg-textarea
SelectBetacurrency, time zone, ad format, integration type..xg-select
CheckboxBetaseveral options that can all be true; agreeing to terms; selecting rows..xg-check
RadioBetamutually exclusive options that need a sentence each (billing model, pacing)..xg-check
SwitchBetaturning a feature on or off immediately: bid shading, auto-pause, email alerts..xg-switch
Segmented controlBetachart granularity (Day | Week | Month), table density, a list/grid view..xg-segmented
Search fieldBetanarrowing a table or list; global search in the topbar..xg-input-group
Date-range pickerBetaevery report, dashboard and log view that is scoped to a period..xg-daterange
Form layoutBetacreating or editing an object: a campaign, a demand partner, payout settings..xg-stack

Data display · 12

ComponentStatusUse it forClasses
Data tableBetacampaigns, partners, placements, invoices: any list where people compare numbers..xg-table-wrap
PaginationBetatables and lists longer than one page..xg-pagination
KPI cardBetathe top row of a dashboard: revenue, impressions, fill rate, eCPM..xg-card
Status badgeBetathe status column of a table, the head of a detail page..xg-badge
TagBetaapplied filters above a table; geo, format and device labels..xg-tag
AvatarBetathe account menu, owners in a table, activity logs..xg-avatar
ProgressBetabudget pacing, quota use, file import..xg-progress
ChartBetatrends over time (line/area), comparisons (bar), a two-part share (donut)..xg-chart
TooltipBetanaming icon-only buttons; explaining a metric in a table header..xg-tooltip
Empty stateBetafirst use, no search results, no data for the period, permission or load errors..xg-empty
SkeletonBetafirst load of cards, tables and charts..xg-skeleton
SpinnerBetainside a busy button; refreshing a widget that keeps its content..xg-spinner
ComponentStatusUse it forClasses
Sidebar navigationBetaevery authenticated screen of the platform..xg-sidebar
TopbarBetatop of every authenticated screen, sticky..xg-topbar
TabsBetaOverview / Targeting / Creatives / Logs of one campaign..xg-tabs__list
BreadcrumbBetadetail pages two or more levels deep: Campaigns / Holiday promo / Creative 4..xg-breadcrumb
Wizard stepsBetacreating a campaign, onboarding, connecting a demand partner: three to six steps..xg-stepper
Dropdown menuBetasecondary actions on one object; switching account or brand..xg-dropdown

Feedback and overlays · 6

ComponentStatusUse it forClasses
ModalBetashort tasks that must finish before going on: rename, set a goal, invite a user..xg-modal
Alert dialogBetadelete, block a partner, stop a live campaign, revoke an API key..xg-modal
DrawerBetarow details from a table, filters with many fields, a request log entry..xg-drawer
ToastBeta“Campaign published”, “Report exported”, an Undo after an action..xg-toast-region
AlertBetaaccount or campaign conditions: payment method expiring, campaign limited by budget, sandbox mode..xg-alert
PopoverBetaexplaining a metric with a link; a quick inline edit of one value..xg-popover

Layout · 2

ComponentStatusUse it forClasses
Card and glass panelBetagrouping one subject: a chart, a form, a list..xg-card
App shellBetaevery authenticated screen..xg-shell