Skip to content

Table

Basic table with loading/empty states and cell slots.

Usage

vue
<script setup>
import { ArchTable } from "@archora/ui";

const columns = [
  { key: "name", label: "Name" },
  { key: "status", label: "Status" }
];
const rows = [{ id: 1, name: "API", status: "Stable" }];
</script>

<template>
  <ArchTable :columns="columns" :rows="rows" row-key="id" />
</template>

Live sandbox

Table can be tested directly on this page.

interactive
NameStatusScore
ConsoleHealthy92
BillingWatch76
DeployBlocked43
<Table />

Props

PropTypeDefaultDescription
columnsArchTableColumn[]-Column definitions.
rowsRecord<string, unknown>[]-Row data.
rowKeystring-Row key field.
emptyTextstring"No data"Empty-state text.
loadingbooleanfalseShows the loading state.
loadingTextstring"Loading"Loading text.

Slots

SlotPropsDescription
cell-Custom cell for a column key.