Skip to content
WunderUI

List Panel

Pro

A dashboard card with a titled list: header with an action, rows, optional footer, and loading, empty and error states. Use one of 31 ready variants or your own rows.

Playground

Recent transactions

Last 7 days

  • Nora LindgrenWunderUI Pro, one-time
    +$299.00Today
  • Daniel OkaforWunderUI Core, one-time
    +$199.00Yesterday
  • Priya RamanWunderUI Pro, refund
    -$49.00Nov 4

Installation

List Panel comes with WunderUI Core and Pro, in the package from your plan. See the plans.

Then import what you need:

tsx
import {
  ListPanel,
  ListPanelPreset,
  ListPanelProps,
  ListPanelSkeleton,
  ListPanelState,
  ListPanelVariant,
} from "@wunderui/react"

Then use it:

tsx
import { ListPanel } from "@wunderui/react"

export function Transactions() {
  return (
    <ListPanel
      title="Recent transactions"
      description="Last 7 days"
      action="View all"
      items={[
        { id: "nora", title: "Nora Lindgren", description: "WunderUI Pro, one-time", trailing: { type: "value", value: "+$299.00", sub: "Today" } },
        { id: "daniel", title: "Daniel Okafor", description: "WunderUI Core, one-time", trailing: { type: "value", value: "+$199.00", sub: "Yesterday" } },
      ]}
    />
  )
}

Expected result: You see one bordered card titled Recent transactions with a View all link at the right and two rows, each with an amount on the right.

When to use

Use List Panel for

  • A dashboard card with a titled list: recent transactions, orders, activity, approvals
  • A list that can be loading, empty or failed and must say so
  • A list with a View all link in the header or a button in the footer

Use something else for

  • List Group for a card of rows that people select, switch, open, reorder or discuss
  • Data Table for many rows that people sort, filter or compare by column

Panels

A variant sets the title, description, action, dividers and the empty and error copy. Pass your own items and the rows follow, with the panel's header and states around them.

Recent transactions

Last 7 days

  • Nora LindgrenWunderUI Pro, one-time
    +$299.00Today
  • Daniel OkaforWunderUI Core, one-time
    +$199.00Yesterday
  • Priya RamanWunderUI Pro, refund
    -$49.00Nov 4

A text action draws a link button in the header; pass an element for another control, or false to hide it. The action is hidden while loading.

Action

Recent transactions

Last 7 days

  • Nora LindgrenWunderUI Pro, one-time
    +$299.00Today
  • Daniel OkaforWunderUI Core, one-time
    +$199.00Yesterday
  • Priya RamanWunderUI Pro, refund
    -$49.00Nov 4

A text footer draws one full-width plain button under the rows, and an element is placed as is. The footer shows only when the panel is ready.

Recent transactions

  • Nora LindgrenWunderUI Pro, one-time
    +$299.00Today
  • Daniel OkaforWunderUI Core, one-time
    +$199.00Yesterday
  • Priya RamanWunderUI Pro, refund
    -$49.00Nov 4

Layout

Comfortable rows have 12 px of vertical padding, compact rows 8 px. Without dividers the rows sit 4 px apart.

Recent transactions

  • Nora LindgrenWunderUI Pro, one-time
    +$299.00Today
  • Daniel OkaforWunderUI Core, one-time
    +$199.00Yesterday
  • Priya RamanWunderUI Pro, refund
    -$49.00Nov 4

Rows

A row select handler turns every row into one button and passes it the row's data. Rows that already have their own handler or link keep it.

Recent transactions

  • Nora LindgrenWunderUI Pro, one-time
    +$299.00Today
  • Daniel OkaforWunderUI Core, one-time
    +$199.00Yesterday
  • Priya RamanWunderUI Pro, refund
    -$49.00Nov 4

Loading, empty and error

All four states keep the card's shape. Loading shows as many skeleton rows as there are rows, and empty and error show an icon, a message and one button; a retry handler adds Try again.

State

Recent transactions

  • Nora LindgrenWunderUI Pro, one-time
    +$299.00Today
  • Daniel OkaforWunderUI Core, one-time
    +$199.00Yesterday
  • Priya RamanWunderUI Pro, refund
    -$49.00Nov 4

Height and scrolling

The panel grows with its rows and does not scroll. For a fixed height, give the card a height and put the list in a scrolling region; header and footer stay in place.

Height

Activity

Across all projects

  • Nora LindgrenCommented on Launch plan
    2m ago
  • Daniel OkaforReplied in Docs rewrite
    1h ago
  • Priya RamanShared Pricing page v2
    3h ago

Keyboard interactions

The panel handles no keys itself. Every control in it is a native button, so the browser handles focus and activation.

TaborShiftTab
Moves focus through the header action, the pressable rows and their controls in order, and then the footer button. In the empty and error states it reaches their button. Static rows are skipped.
EnterorSpace
Presses the focused button: a row with , the header action, the footer button, Try again or the empty state's button.
EnterorSpaceorArrowDown
Opens the menu of a row's trailing icon button. Inside the menu the arrow keys move, Enter picks and Escape closes it.
Tab
Reaches a scrolling region of your own only when it has : add it when the rows inside are static, so people can scroll with the arrow keys.

Arrow keys do not move between rows. A row is a tab stop only when it can be pressed or holds a control.

Behavior and motion

What the panel does with state, content, the DOM and motion.

Four states
A panel is ready, loading, empty or error, and a ready panel with no rows shows the empty state. The header always stays; loading hides the action and footer, empty and error hide the footer.
Loading keeps the shape
Loading draws skeleton rows with the same padding and dividers, one per real row by default, so the card keeps its height. Screen readers hear Loading and the title.
Empty and error
Both show a centred round icon, a message and a button. Empty is a status and error an alert, and Try again appears only when you pass a retry handler.
Variants and your own rows
A variant sets the title, action, dividers, loading shape and empty and error copy, with sample rows until you pass items. Anything you pass yourself wins.
Rows
Rows are static unless they have their own select handler or link. Pass one item handler and every row becomes a button that receives its data.
No scroll region
The card grows with its rows. For a fixed height, give it a height class and pass your own scrolling region as children; header and footer stay put.
Names for assistive technology
The panel is a section named by its title. The rows form a list with the same name, and each row's controls are named by the row title.
Motion and reduced motion
Rows fill and press quickly and the dividers fade. With reduced motion only colour and opacity change, and the four states swap without animation.

Anatomy

The parts of a panel, numbered in the figure. While loading, empty or failed, the rows give way to skeleton rows or a centred icon, message and button.

Recent transactions

Last 7 days

  • Nora LindgrenWunderUI Pro, one-time
    +$299.00Today
  • Daniel OkaforWunderUI Core, one-time
    +$199.00Yesterday
  • data-slot="list-panel"

    The card: a section 400 px wide (it shrinks on a narrow screen) with a 1 px border, 16 px radius, card surface, 16 px padding and 16 px between parts. A title names it for assistive technology.

  • Optional

    The row above the rows. It shows when the panel has a title or an action, and the action is hidden while the panel loads.

  • Optional

    The title as a heading (h3 by default, 16 px semibold) with the description under it in 12 px secondary text.

  • Optional

    The action at the right of the header. A string becomes a link button, an element is placed as it is.

  • The rows. The list sits 8 px outside the card padding, so row text lines up with the title and the hover fill keeps a concentric 8 px radius inside the 16 px card.

  • Optional

    The footer under the rows: a string becomes one full-width plain button, an element is placed as it is. It shows only while the panel is ready.

  • data-slot="list-panel-skeleton-row"
  • data-slot="list-panel-skeleton"Optional

Best practices

  • Do

    Start from a variant and pass your own items. The variant sets the title, dividers and the empty and error copy, so the panels of a dashboard stay alike.

  • Do

    Pass a retry handler to give the error state a Try again button, and an action handler when the empty state's button should do something.

  • Do

    Keep the panel's height while data loads. Loading draws as many skeleton rows as there are rows, so nothing jumps.

  • Do

    Write an error message that says what failed and what to do, for example: We could not load the transactions. Check your connection and try again.

  • Don’t

    Don't put more than a handful of rows in a panel without a fixed height. Give the card a height and a scrolling region, or link to the full list.

  • Don’t

    Don't hide a failed load behind an empty list. Empty means there is nothing to show; a failed load needs the error state.

  • Don’t

    Don't change the card padding by hand. It matches every chart card at 16 px, and the rows need it for their concentric radius.

API reference

A List Panel takes the props below and every attribute of a section. Rows are ListItemData (see List Item), and a prop you pass wins over the variant.

The card: a section 400 px wide (it shrinks on a narrow screen) with a 1 px border, 16 px radius, card surface, 16 px padding and 16 px between parts. A title names it for assistive technology.

PropTypeDefaultDescription
variant"recent-transactions" | "recent-orders" | "invoices" | "connected-integrations" | "team-members" | "activity-feed" | "notifications" | "upcoming-events" | "tasks-approvals" | "files-documents" | "uploads-sync-jobs" | "top-products" | "top-customers" | "audience-by-location" | "traffic-sources" | "revenue-by-channel" | "subscriptions" | "support-tickets" | "crypto-portfolio" | "crypto-transactions" | "crypto-watchlist" | "staking-rewards" | "account-activity" | "system-activity" | "project-timeline" | "order-timeline" | "customer-timeline" | "release-timeline" | "integration-directory" | "integration-sync-status" | "available-modules"—One of 31 ready panels, for example , or . It sets the title, description, action, dividers, the copy of the empty and error states and sample rows.
titleReact.ReactNode—The heading in the header, by default, in 16 px semibold. It names the panel for assistive technology.
descriptionReact.ReactNode—A line under the title in 12 px secondary text.
actionReact.ReactNode | false—The header action. A string draws a link Button, an element is placed as it is and hides the action of a variant.
onAction() => void—Called when the string action is pressed.
itemsListItemData[]—The rows. With a variant and no items the sample rows show; an empty array shows the empty state.
onItemSelect(item) => void—Makes every row one button and calls this with the row's data. Rows with their own or keep them.
state"loading" | "empty" | "error" | "ready""ready" shows the rows, skeleton rows, the empty state and the error state.
loadingRowsnumber—How many skeleton rows to draw while loading. It defaults to the number of rows, so the card keeps its height.
skeleton"circle" | "square"—The shape of the leading placeholder while loading: or . It defaults to the variant's.
empty{ icon, title, description, action }—The empty state: a round icon, a title, a description and a button. A string draws a plain Button that calls .
onEmptyAction() => void—Called when the empty state's string action is pressed.
error{ title, description }—The text of the error state. It defaults to the variant's, or to Couldn't load this list.
onRetry() => void—Adds a Try again button to the error state and calls this when it is pressed.
footerReact.ReactNode—Under the rows, shown while ready. A string draws one full-width plain Button, an element is placed as it is.
onFooterAction() => void—Called when the string footer is pressed.
dividerboolean—Whether a 1 px line separates the rows. Without it the rows sit 4 px apart. It defaults to the variant's.
density"compact" | "comfortable""comfortable" gives rows 12 px of vertical padding, 8 px.
timelineboolean—Draws the 2 px connector behind the step circles of the Timeline variants.
titleAs"h2" | "h3" | "h4" | "h5" | "h6""h3"The heading level of the title, to . It defaults to .

PropTypeDefaultDescription
rowsnumber4How many skeleton rows to draw. It defaults to 4.
shape"circle" | "square""circle"The shape of the leading placeholder: or .
dividerbooleantrueWhether the rows have dividers, as in the real list.
density"compact" | "comfortable""comfortable"The row padding, as in the real list.
contentHeightnumber38The height of the text block of a row in px: 38 for two lines, 44 for a value with a badge, 48 for a date tile, 56 for three lines.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

MCPget_component("list-panel")
InstallIncluded in Core and Pro

The full library index for assistants is at /llms.txt.