Elements

Components

Data View

One vessel, two layouts: the caller renders each record through the item slot, the view lays the records out as a ledger or a lattice and — when a page size is given — pages them with the pagination family's own parts rather than a second implementation.

#Basic usage

data-view/basic Vue React
1
Ledger entry 1
2
Ledger entry 2
3
Ledger entry 3
4
Ledger entry 4
5
Ledger entry 5
6
Ledger entry 6

#Props

#DataView

One vessel, two layouts: the caller renders each record through the item slot, the view lays the records out as a ledger or a lattice and — when a page size is given — pages them with the pagination family's own parts rather than a second implementation.

PropTypeDefaultDescription
itemsArray as PropType<unknown[]>—
layoutString as PropType<"list" | "grid">"list"Ledger rows or a lattice of cards.
pageSizeNumber as PropType<number>undefinedRecords per page; leave unset to show everything at once.