@objectifthunes/whiteboard
WHITEBOARD DASHBOARD

RowCard & skeletons

The one list-row layout every catalog page shares — plus RowSkeleton and ListSkeleton with the exact same geometry.


PREVIEW
Midnight Tide

Nocturne · 3:42

liveEdit
Aurora (draft)
draft
SOURCE
import { RowCard, ListSkeleton, ItemList, Pill } from '@objectifthunes/whiteboard'

if (isLoading) return <ListSkeleton rows={6} actionCount={2} />

<ItemList>
  {tracks.map(t => (
    <RowCard
      key={t.id}
      title={t.title}
      detail={t.artist}
      actions={<><Pill tone="success">live</Pill><IconButton icon={<Pencil size={14} />} label="Edit" /></>}
    />
  ))}
</ItemList>
NOTES

RowCard and RowSkeleton share hard-coded geometry constants (row min-height, title and detail line heights), so swapping ListSkeleton for the loaded list causes zero layout shift. Match withDetail and actionCount to what the real rows render — the demo ends with a skeleton row so you can see the alignment.

actions are pinned right and never wrap under the text; long titles truncate via min-width: 0 instead of pushing them out.