Skip to content

Data table

BetaData displayOpen in the workshop

Sortable, selectable, paginated rows of objects with their numbers.

.xg-table-wrap | .xg-card--flush[data-xg-table][data-page-size] > .xg-table-toolbar + .xg-bulkbar + table.xg-table (+ --compact) + .xg-table-footer. Cells: .is-num .is-strong .is-check. Sort: th[aria-sort] > button.xg-sort[data-xg-sort="text|number"].

Example and markup

Live, from xg-ui.css and xg-ui.js. Switch the brand and mode on the example itself, or for the whole site in the header.

Data table
Campaigns, last 30 days. Column headers with buttons sort the table.
Actions
App install Q4In review 12,6403.1071.9
Audio podcast pilotEnded 6,0205.6083.0
Brand safety testBlocked 00.000.0
CTV sports weekendIn review 4,1256.1064.7
Holiday promo — CTVLive 48,2102.4192.4
In-app banner INPaused 9,4100.9279.3
Native feed APACLive 18,3101.4290.6
Prebid header testDraft 00.000.0
Retargeting EUPaused 31,9051.8788.1
Rewarded video LATAMLive 27,7753.3593.8
Spring launchScheduled 02.200.0
Video outstream USLive 22,4804.0595.2
Markup
<div class="xg-card xg-card--flush" data-xg-table data-page-size="5">
<div class="xg-table-toolbar">
<div class="xg-input-group" style="flex:1 1 220px;max-width:300px">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="11" cy="11" r="7"/>
<path d="m20 20-3.5-3.5"/>
</svg>
<input class="xg-input xg-input--sm" type="search" placeholder="Search campaigns" aria-label="Search campaigns">
</div>
<span class="xg-spacer">
</span>
<button class="xg-btn xg-btn--secondary xg-btn--sm" type="button">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M3 5h18l-7 8.5V19l-4 2v-7.5L3 5Z"/>
</svg>Filters</button>
<button class="xg-btn xg-btn--secondary xg-btn--sm" type="button">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M12 4v11"/>
<path d="m7 10 5 5 5-5"/>
<path d="M4 20h16"/>
</svg>Export CSV</button>
</div>
<div class="xg-bulkbar" data-xg-bulk hidden>
<span data-xg-count>0 selected</span>
<button class="xg-btn xg-btn--ghost xg-btn--sm" type="button">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<rect x="6" y="5" width="4" height="14" rx="1"/>
<rect x="14" y="5" width="4" height="14" rx="1"/>
</svg>Pause</button>
<button class="xg-btn xg-btn--ghost xg-btn--sm" type="button">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<rect x="8" y="8" width="13" height="13" rx="2"/>
<path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/>
</svg>Duplicate</button>
</div>
<div style="overflow-x:auto">
<table class="xg-table" aria-describedby="campaigns-caption">
<caption id="campaigns-caption" class="xg-sr-only">Campaigns, last 30 days. Column headers with buttons sort the table.</caption>
<thead>
<tr>
<th class="is-check" scope="col">
<label class="xg-check">
<input type="checkbox" aria-label="Select all rows">
</label>
</th>
<th scope="col" aria-sort="ascending">
<button class="xg-sort" type="button" data-xg-sort="text">Campaign</button>
</th>
<th scope="col">
<button class="xg-sort" type="button" data-xg-sort="text">Status</button>
</th>
<th scope="col" class="is-num">
<button class="xg-sort" type="button" data-xg-sort="number">Revenue, $</button>
</th>
<th scope="col" class="is-num">
<button class="xg-sort" type="button" data-xg-sort="number">eCPM, $</button>
</th>
<th scope="col" class="is-num">
<button class="xg-sort" type="button" data-xg-sort="number">Fill rate, %</button>
</th>
<th scope="col">
<span class="xg-sr-only">Actions</span>
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select App install Q4">
</label>
</td>
<td class="is-strong">App install Q4</td>
<td>
<span class="xg-badge xg-badge--warning">In review</span>
</td>
<td class="is-num">12,640</td>
<td class="is-num">3.10</td>
<td class="is-num">71.9</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for App install Q4">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select Audio podcast pilot">
</label>
</td>
<td class="is-strong">Audio podcast pilot</td>
<td>
<span class="xg-badge">Ended</span>
</td>
<td class="is-num">6,020</td>
<td class="is-num">5.60</td>
<td class="is-num">83.0</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Audio podcast pilot">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select Brand safety test">
</label>
</td>
<td class="is-strong">Brand safety test</td>
<td>
<span class="xg-badge xg-badge--error">Blocked</span>
</td>
<td class="is-num">0</td>
<td class="is-num">0.00</td>
<td class="is-num">0.0</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Brand safety test">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select CTV sports weekend">
</label>
</td>
<td class="is-strong">CTV sports weekend</td>
<td>
<span class="xg-badge xg-badge--warning">In review</span>
</td>
<td class="is-num">4,125</td>
<td class="is-num">6.10</td>
<td class="is-num">64.7</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for CTV sports weekend">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select Holiday promo — CTV">
</label>
</td>
<td class="is-strong">Holiday promo — CTV</td>
<td>
<span class="xg-badge xg-badge--success xg-badge--live">Live</span>
</td>
<td class="is-num">48,210</td>
<td class="is-num">2.41</td>
<td class="is-num">92.4</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Holiday promo — CTV">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select In-app banner IN">
</label>
</td>
<td class="is-strong">In-app banner IN</td>
<td>
<span class="xg-badge">Paused</span>
</td>
<td class="is-num">9,410</td>
<td class="is-num">0.92</td>
<td class="is-num">79.3</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for In-app banner IN">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select Native feed APAC">
</label>
</td>
<td class="is-strong">Native feed APAC</td>
<td>
<span class="xg-badge xg-badge--success xg-badge--live">Live</span>
</td>
<td class="is-num">18,310</td>
<td class="is-num">1.42</td>
<td class="is-num">90.6</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Native feed APAC">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select Prebid header test">
</label>
</td>
<td class="is-strong">Prebid header test</td>
<td>
<span class="xg-badge">Draft</span>
</td>
<td class="is-num">0</td>
<td class="is-num">0.00</td>
<td class="is-num">0.0</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Prebid header test">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select Retargeting EU">
</label>
</td>
<td class="is-strong">Retargeting EU</td>
<td>
<span class="xg-badge">Paused</span>
</td>
<td class="is-num">31,905</td>
<td class="is-num">1.87</td>
<td class="is-num">88.1</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Retargeting EU">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select Rewarded video LATAM">
</label>
</td>
<td class="is-strong">Rewarded video LATAM</td>
<td>
<span class="xg-badge xg-badge--success xg-badge--live">Live</span>
</td>
<td class="is-num">27,775</td>
<td class="is-num">3.35</td>
<td class="is-num">93.8</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Rewarded video LATAM">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select Spring launch">
</label>
</td>
<td class="is-strong">Spring launch</td>
<td>
<span class="xg-badge xg-badge--info">Scheduled</span>
</td>
<td class="is-num">0</td>
<td class="is-num">2.20</td>
<td class="is-num">0.0</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Spring launch">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-check">
<label class="xg-check">
<input type="checkbox" aria-label="Select Video outstream US">
</label>
</td>
<td class="is-strong">Video outstream US</td>
<td>
<span class="xg-badge xg-badge--success xg-badge--live">Live</span>
</td>
<td class="is-num">22,480</td>
<td class="is-num">4.05</td>
<td class="is-num">95.2</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Video outstream US">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="xg-table-footer">
<span data-xg-range aria-live="polite">
</span>
<span class="xg-sr-only" data-xg-live aria-live="polite">
</span>
<nav aria-label="Table pages">
<ul class="xg-pagination" data-xg-pager>
</ul>
</nav>
</div>
</div>

Variants

Compact density
Campaigns, last 30 days. Column headers with buttons sort the table.
Actions
App install Q4In review 12,6403.1071.9
Audio podcast pilotEnded 6,0205.6083.0
Brand safety testBlocked 00.000.0
CTV sports weekendIn review 4,1256.1064.7
Holiday promo — CTVLive 48,2102.4192.4
In-app banner INPaused 9,4100.9279.3
Native feed APACLive 18,3101.4290.6
Prebid header testDraft 00.000.0
Retargeting EUPaused 31,9051.8788.1
Rewarded video LATAMLive 27,7753.3593.8
Spring launchScheduled 02.200.0
Video outstream USLive 22,4804.0595.2
Markup
<div class="xg-card xg-card--flush" data-xg-table data-page-size="4">
<div class="xg-table-toolbar">
<div class="xg-input-group" style="flex:1 1 220px;max-width:300px">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="11" cy="11" r="7"/>
<path d="m20 20-3.5-3.5"/>
</svg>
<input class="xg-input xg-input--sm" type="search" placeholder="Search campaigns" aria-label="Search campaigns">
</div>
<span class="xg-spacer">
</span>
<button class="xg-btn xg-btn--secondary xg-btn--sm" type="button">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M3 5h18l-7 8.5V19l-4 2v-7.5L3 5Z"/>
</svg>Filters</button>
<button class="xg-btn xg-btn--secondary xg-btn--sm" type="button">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M12 4v11"/>
<path d="m7 10 5 5 5-5"/>
<path d="M4 20h16"/>
</svg>Export CSV</button>
</div>
<div style="overflow-x:auto">
<table class="xg-table xg-table--compact" aria-describedby="compact-caption">
<caption id="compact-caption" class="xg-sr-only">Campaigns, last 30 days. Column headers with buttons sort the table.</caption>
<thead>
<tr>
<th scope="col" aria-sort="ascending">
<button class="xg-sort" type="button" data-xg-sort="text">Campaign</button>
</th>
<th scope="col">
<button class="xg-sort" type="button" data-xg-sort="text">Status</button>
</th>
<th scope="col" class="is-num">
<button class="xg-sort" type="button" data-xg-sort="number">Revenue, $</button>
</th>
<th scope="col" class="is-num">
<button class="xg-sort" type="button" data-xg-sort="number">eCPM, $</button>
</th>
<th scope="col" class="is-num">
<button class="xg-sort" type="button" data-xg-sort="number">Fill rate, %</button>
</th>
<th scope="col">
<span class="xg-sr-only">Actions</span>
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="is-strong">App install Q4</td>
<td>
<span class="xg-badge xg-badge--warning">In review</span>
</td>
<td class="is-num">12,640</td>
<td class="is-num">3.10</td>
<td class="is-num">71.9</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for App install Q4">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">Audio podcast pilot</td>
<td>
<span class="xg-badge">Ended</span>
</td>
<td class="is-num">6,020</td>
<td class="is-num">5.60</td>
<td class="is-num">83.0</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Audio podcast pilot">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">Brand safety test</td>
<td>
<span class="xg-badge xg-badge--error">Blocked</span>
</td>
<td class="is-num">0</td>
<td class="is-num">0.00</td>
<td class="is-num">0.0</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Brand safety test">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">CTV sports weekend</td>
<td>
<span class="xg-badge xg-badge--warning">In review</span>
</td>
<td class="is-num">4,125</td>
<td class="is-num">6.10</td>
<td class="is-num">64.7</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for CTV sports weekend">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">Holiday promo — CTV</td>
<td>
<span class="xg-badge xg-badge--success xg-badge--live">Live</span>
</td>
<td class="is-num">48,210</td>
<td class="is-num">2.41</td>
<td class="is-num">92.4</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Holiday promo — CTV">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">In-app banner IN</td>
<td>
<span class="xg-badge">Paused</span>
</td>
<td class="is-num">9,410</td>
<td class="is-num">0.92</td>
<td class="is-num">79.3</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for In-app banner IN">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">Native feed APAC</td>
<td>
<span class="xg-badge xg-badge--success xg-badge--live">Live</span>
</td>
<td class="is-num">18,310</td>
<td class="is-num">1.42</td>
<td class="is-num">90.6</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Native feed APAC">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">Prebid header test</td>
<td>
<span class="xg-badge">Draft</span>
</td>
<td class="is-num">0</td>
<td class="is-num">0.00</td>
<td class="is-num">0.0</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Prebid header test">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">Retargeting EU</td>
<td>
<span class="xg-badge">Paused</span>
</td>
<td class="is-num">31,905</td>
<td class="is-num">1.87</td>
<td class="is-num">88.1</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Retargeting EU">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">Rewarded video LATAM</td>
<td>
<span class="xg-badge xg-badge--success xg-badge--live">Live</span>
</td>
<td class="is-num">27,775</td>
<td class="is-num">3.35</td>
<td class="is-num">93.8</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Rewarded video LATAM">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">Spring launch</td>
<td>
<span class="xg-badge xg-badge--info">Scheduled</span>
</td>
<td class="is-num">0</td>
<td class="is-num">2.20</td>
<td class="is-num">0.0</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Spring launch">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
<tr>
<td class="is-strong">Video outstream US</td>
<td>
<span class="xg-badge xg-badge--success xg-badge--live">Live</span>
</td>
<td class="is-num">22,480</td>
<td class="is-num">4.05</td>
<td class="is-num">95.2</td>
<td class="is-num">
<button class="xg-btn xg-btn--ghost xg-btn--icon xg-btn--sm" type="button" aria-label="More actions for Video outstream US">
<svg class="xg-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<circle cx="5" cy="12" r="1"/>
<circle cx="12" cy="12" r="1"/>
<circle cx="19" cy="12" r="1"/>
</svg>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="xg-table-footer">
<span data-xg-range aria-live="polite">
</span>
<span class="xg-sr-only" data-xg-live aria-live="polite">
</span>
<nav aria-label="Table pages">
<ul class="xg-pagination" data-xg-pager>
</ul>
</nav>
</div>
</div>

When to use it

Use it for

campaigns, partners, placements, invoices: any list where people compare numbers.

Not for

fewer than about four rows with no comparison (a description list or cards).

Rules

  • Numbers are right-aligned, tabular, with the unit in the header (“Revenue, $”), never in every cell.
  • The first column names the object and is the only bold one. Status is a Status badge.
  • Sorting: one column at a time; the sorted column shows its direction; text sorts A–Z first, numbers high-to-low is a click away.
  • Selection reveals a bulk bar with the count and the actions; nothing else moves.
  • 25 rows per page by default (10, 25, 50, 100 offered). Show “1–25 of 1,240”.
  • Row actions live in a ghost “more” icon button at the row end; the row itself opens the object.
  • Empty, loading and error states replace the body, never the header (see Patterns → States).

Accessibility

  • Real <table> with <caption> (may be visually hidden), scope on headers, aria-sort on the sorted header, sort controls are buttons.
  • Sort and page changes are announced in a polite live region.

Every color pair this component uses is measured for both brands in light and dark on the Accessibility page.

Also in Data display: Pagination, KPI card, Status badge, Tag, Avatar, Progress, Chart, Tooltip, Empty state, Skeleton, Spinner. Used in the patterns Dashboard, Reporting table.

Status Beta: usable; class names may still change in a minor release, with a note (see Releasing).