Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Ctrl k
Search...
Sign up
Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Once UIDocumentationBlog
© Once UI. All rights reserved.
Built with Aveiro

Tables & lists

Structured data with Table, simpler stacks with List — plus empty and loading states.
Updated 19d ago
Toast & feedback
Loading states
5 min · Pattern
Tables show structured data with sortable headers. Lists handle simpler stacks of rows, avatars, or actions. Pick the right primitive before you reach for a custom grid.

When to use what

Need
Component
Column headers, sortable data, row click`Table`
Simple stacked rows with icons or avatars`List` + `ListItem`
Card-style repeating content`Grid` of static panels or `Card`
Key-value settings rows`Column` surface recipe with `Row` dividers
Dashboard task bundles reference Table for recent-activity panels — see tasks/dashboard.json.

Basic table

Table takes a data object with headers and rows. Header cells are React nodes; rows are arrays of cell content:
const headers = [
  { key: "name", content: "Project", sortable: true },
  { key: "status", content: "Status" },
  { key: "updated", content: "Updated", sortable: true },
];

const rows = [
  [
    <Text variant="body-default-s">Marketing site</Text>,
    <Tag label="Active" variant="success" />,
    <Text variant="body-default-xs" onBackground="neutral-weak">2h ago</Text>,
  ],
  [
    <Text variant="body-default-s">API docs</Text>,
    <Tag label="Draft" variant="warning" />,
    <Text variant="body-default-xs" onBackground="neutral-weak">Yesterday</Text>,
  ],
];

<Table fillWidth data={{ headers, rows }} />
Wrap the table in a static panel when it sits inside a dashboard card:
<Column
  fillWidth
  padding="24"
  gap="16"
  background="surface"
  border="neutral-alpha-weak"
  radius="l"
>
  <Row horizontal="between" vertical="center" fillWidth>
    <Heading variant="heading-strong-s">Recent activity</Heading>
    <Button size="s" variant="secondary">View all</Button>
  </Row>
  <Table fillWidth data={{ headers, rows }} onRowClick={(i) => openRow(i)} />
</Column>

Sortable headers

Set sortable: true on a header definition. Once UI renders the sort affordance — wire your own sort logic in the parent and pass reordered rows. Keep sort state outside the table. The component displays data; it does not own server pagination or filtering.

Lists for simpler stacks

When you do not need column alignment, use List and ListItem:
<List gap="8" fillWidth>
  {members.map((member) => (
    <ListItem
      key={member.id}
      prefix={<Avatar src={member.avatar} size="s" />}
      suffix={<IconButton icon="chevronRight" variant="ghost" size="s" />}
      onClick={() => openMember(member.id)}
    >
      <Column gap="2">
        <Text variant="body-default-s">{member.name}</Text>
        <Text variant="body-default-xs" onBackground="neutral-weak">
          {member.role}
        </Text>
      </Column>
    </ListItem>
  ))}
</List>
ListItem is interactive when you pass onClick or href — same rule as Card.

Empty and loading states

Pair tables with skeleton placeholders while data loads. See Loading states.
For zero rows, show a short message inside the panel instead of an empty table:

Write this / not this

✅ Once UI way
❌ Common mistake
`Table` with `data.headers` + `data.rows`Hand-built `Grid` pretending to be a table
`Tag` / `StatusIndicator` in status cellsRaw colored `<span>` elements
Static panel wrapper for dashboard tables`Card` without `href` or `onClick`
`List` for avatar / action rows`Table` with one column

Check yourself

  • Headers use key strings that match your sort logic
  • Status cells use semantic components (Tag, StatusIndicator)
  • Table sits in a surface panel, not bare on the page background
  • Empty state handled when rows is empty

Related

→ Loading states → Static panel → Full reference: docs.once-ui.com — Table
{rows.length === 0 ? (
  <Column center gap="8" paddingY="32">
    <Text variant="body-default-s" onBackground="neutral-weak">
      No projects yet
    </Text>
    <Button size="s">Create project</Button>
  </Column>
) : (
  <Table fillWidth data={{ headers, rows }} />
)}