DETAIL PANEL · DEMO

Sample project review

Keep your context while reviewing the details.

Ready for review
Template route
/tables
Project
Riverside workspace (fictitious)
Owner
Morgan Lee (fictitious)

Summary

This is an original example. The underlying page stays visible while the panel holds the details. No account, payment or external service is connected.

Review note

Skip to content

Tables ​

Every table pattern for the Lustro template: basic, striped, hover, compact, bordered, sticky header, sortable, search and column filters, pagination, selectable rows, row actions, expandable rows, numeric deltas, footer totals, empty state, loading skeleton and a mobile card layout. All data is fictitious and local.

How to use it ​

A table compares records across shared columns. Keep real table headers, predictable row identity and readable numeric units. Use cards when the main task is reading one record at a time. The gallery below demonstrates 17 independent patterns, not one combined data-grid controller. All records, money-like amounts, dates and actions are fictitious and local.

  1. Define the record before styling. Stable IDs connect selection, expansion and actions. Distinguish text, numeric amount, signed delta and date fields.
  2. Choose density and boundaries. Basic, striped, hover, compact and bordered variants change appearance, not semantics. Hover color is not row activation.
  3. Make operations explicit. Sort with header buttons and aria-sort; label search/filters, pagination and selection controls. Do not infer a spreadsheet keyboard model from a table.
  4. Keep scope truthful. State whether totals, selection and pagination apply to all records, filtered records or one page. This gallery deliberately keeps them independent.
  5. Plan empty, loading and failure. No-match results need a clear reset. Loading must end on the actual result. Preserve useful input on failure; an error state is not implemented in these fixed samples.
  6. Check narrow screens. Most examples scroll inside their frame. The responsive variant becomes labelled cards below 640px. Keep core explanatory prose readable without horizontal scrolling.

Actual data and API ​

TablesGallery.vue has no props or emits. It owns 10 fixed records with { id: number, name: string, status: string, owner: string, amount: number, delta: number, date: string }. Status is Ready/Review/Example; amounts are sample numbers formatted with a dollar sign and en-US grouping, not live balances or a declared currency contract. Dates are fixed ISO-like strings. Delta is a signed sample percentage, not a computed return.

basic is the first 4 rows. sortKey starts name, sortDir 1; sortBy(k) toggles direction for the same field or starts ascending for another. sorted copies all records, sorts and displays 6. The comparator does not explicitly return 0 for equal values; add stable tie handling before relying on it for production data.

q, fStatus and fOwner combine name-substring search with exact status/owner matching; clearFilters resets all three. page starts 1, fixed size 4, with 3 pages over the unfiltered 10 rows. These controls are not wired together as one filtered/paged grid.

sel holds IDs. The header toggle currently selects all 10 source IDs, although only 6 row checkboxes are shown in that sample. allSel compares selection length to all 10; partial state sets indeterminate. This scope is important: it is not a visible-page-only select-all. A production app should state the scope and align controls with it.

list starts as a separate first 4-row copy. View/Edit set local message only; Delete removes a local row and sets message. Nothing is saved, sent or deleted externally. open holds one expanded ID or null. loading starts true and toggles manually. emptyQ starts zzz; its Clear filters button only clears that string and does not replace the fixed empty specimen with records. Footer total sums all 10 amounts; average is the arithmetic mean of all 10 deltas, not a weighted return or filtered total.

vue
<script setup>
import TablesGallery from './.vitepress/theme/TablesGallery.vue'
</script>
<template><TablesGallery /></template>

The same component is used by Lustro tables. There is no server, storage, request timer or installed data-grid API. Local state resets on remount. Add operation identity, cancellation/stale-response protection and defined selection behavior before introducing remote data.

Pattern map ​

PatternBehavior and limits
Basic / striped / hoverHeader/body structure, badges and row appearance; no row-click action.
Compact / borderedDense padding or cell boundaries; keep readable text/hit areas.
Sticky headerHeader sticks inside a 230px scroll frame, not the whole document.
SortableHeader buttons update local order and aria-sort; six results shown.
Search and filtersIndependent combined filters with count and real no-match/reset path.
PaginationFour rows per page over all ten, independent of filters.
SelectableNative checkboxes; header selects all ten IDs despite six displayed rows.
Row actionsView/Edit feedback; Delete removes a local demo row only.
ExpandableOne detail row at a time, toggled by named aria-expanded button.
DeltasSigned percent plus color, right-aligned tabular numbers.
Footer totalsAll-record amount sum and unweighted mean delta, not filtered totals.
EmptyFixed demonstration; its clear button changes only displayed query text.
LoadingManual skeleton/data switch with aria-busy, no real request.
ResponsiveFour sample records become labelled cards below 640px.

Source coverage ​

SourceActual implementation
Lustro UI kit, Components, Lustro guideSmall static table specimens. The 17-pattern gallery on this page is a separate local component.
Lustro expanded, Felix expanded, Scopecraft expandedStyled static basic/striped/hover and other visual table variants, not a universal sorting/filter/pagination API.
Lumen expandedActual rendered gallery is in an iframe; inspect that HTML rather than assuming this gallery's behavior.
Felix moleculeFixed sample transfer-history table. Package names in prose are design-source usage, not verified installed Table exports.
Bastion tablesLocal sample table in the catalog, separate from this gallery's state.
Studio catalogsCatalog search filters local rows. Extended adds its own search/sort/table variants. Those states do not share this component's API.
Pulsefit HTMLStyled HTML table specimens; visual similarity does not imply these 17 local controllers.

Motion, keyboard and integration ​

The gallery's skeleton shimmer uses 1.4s animation, removed by reduced motion. Sorting, selection and expansion do not wait for animation. Use native button/checkbox keyboard behavior, visible focus and named controls. This is not a grid with custom arrow navigation. Keep column headers and a caption or associated heading for each table; a nearby visual heading is not always an explicit accessible-name relationship.

Test sort directions/aria-sort, combined filters and no-match recovery, page limits, selection scope/indeterminate state, local row actions, expansion, totals, loading and mobile cards. Test sticky headers in their own scroll frame. Review screen-reader table navigation after responsive CSS changes. A skeleton's visual presence and aria-busy do not alone provide a full loading announcement strategy.

For production, enforce permissions server-side, validate actions, give destructive actions an appropriate confirmation/undo route, keep stable IDs and preserve focus after deletion. Do not copy this gallery's all-ten selection scope or fixed empty state without making that policy intentional. All examples remain fictitious and local.

Basic

Plain semantic table with status badges. Wrap every table in a scroll frame.

ComponentStatusOwner
ButtonsReadyDesign
NotificationsReviewProduct
GraphsExampleMotion
ToastsReadyDesign

Striped

ComponentStatusOwner
ButtonsReadyDesign
NotificationsReviewProduct
GraphsExampleMotion
ToastsReadyDesign
CalendarReviewProduct
MessagingReadyPlatform

Hover rows

ComponentStatusOwner
ButtonsReadyDesign
NotificationsReviewProduct
GraphsExampleMotion
ToastsReadyDesign

Compact

Tighter padding for dense data.

ComponentOwnerAmount
ButtonsDesign$1,240
NotificationsProduct$860
GraphsMotion$2,310
ToastsDesign$430
CalendarProduct$1,980
MessagingPlatform$3,150
PricingGrowth$720

Bordered

ComponentStatusOwner
ButtonsReadyDesign
NotificationsReviewProduct
GraphsExampleMotion
ToastsReadyDesign

The header stays visible while the body scrolls inside a fixed height.

ComponentOwnerDateAmount
ButtonsDesign2026-09-02$1,240
NotificationsProduct2026-09-05$860
GraphsMotion2026-09-11$2,310
ToastsDesign2026-09-14$430
CalendarProduct2026-09-18$1,980
MessagingPlatform2026-09-21$3,150
PricingGrowth2026-09-25$720
Dependency graphMotion2026-09-28$1,560
Shipping labelPlatform2026-10-01$940
Node flowMotion2026-10-03$2,740

Sortable

Click a header to sort; click again to reverse.

ButtonsDesign$1,240
CalendarProduct$1,980
Dependency graphMotion$1,560
GraphsMotion$2,310
MessagingPlatform$3,150
Node flowMotion$2,740

Search and column filters

10 of 10 rows

ComponentStatusOwner
ButtonsReadyDesign
NotificationsReviewProduct
GraphsExampleMotion
ToastsReadyDesign
CalendarReviewProduct
MessagingReadyPlatform
PricingExampleGrowth
Dependency graphReviewMotion
Shipping labelReadyPlatform
Node flowExampleMotion

Pagination

ComponentOwnerAmount
ButtonsDesign$1,240
NotificationsProduct$860
GraphsMotion$2,310
ToastsDesign$430
Page 1 of 3

Selectable rows

No rows selected

ComponentOwner
ButtonsDesign
NotificationsProduct
GraphsMotion
ToastsDesign
CalendarProduct
MessagingPlatform

Row actions

ComponentOwnerActions
ButtonsDesign
NotificationsProduct
GraphsMotion
ToastsDesign

Actions are local and fictitious.

Expandable rows

ExpandComponentStatus
ButtonsReady
NotificationsReview
GraphsExample
ToastsReady

Numeric columns with deltas

Right-align numbers, use tabular figures, and pair color with a sign so it does not rely on color alone.

ComponentAmountChange
Buttons$1,240▲ +4.2%
Notifications$860▼ -1.8%
Graphs$2,310▲ +12.5%
Toasts$430▲ +0.6%
Calendar$1,980▼ -6.4%
Messaging$3,150▲ +8.9%
ComponentAmountChange
Buttons$1,240+4.2%
Notifications$860-1.8%
Graphs$2,310+12.5%
Toasts$430+0.6%
Calendar$1,980-6.4%
Messaging$3,150+8.9%
Pricing$720-2.3%
Dependency graph$1,560+3.1%
Shipping label$940+1.4%
Node flow$2,740-0.9%
Total / average$15,930+1.9%

Empty state

No results

No components match “zzz”. Try a different search or clear your filters.

Loading skeleton

ComponentStatusOwner

Responsive card layout

Under 640 px each row becomes a labeled card. Resize the window to see it.

ComponentStatusOwnerAmount
ButtonsReadyDesign$1,240
NotificationsReviewProduct$860
GraphsExampleMotion$2,310
ToastsReadyDesign$430

Production checklist

Use real th scope, a caption or heading for every table, aria-sort on sortable headers, and visible focus. Never rely on color alone for deltas. Data above is fictitious and local.

Lateral detail drawer

Open a detail panel without losing the page behind it. This shared pattern follows the current template's colors. Fictitious data; actions stay local.