RecordList UI component
Purpose
RecordList is a data display component. Repeated non-tabular records. Use when summary layout fits better than columns.
Inputs
| Field | Required | Type | Behavior |
|---|---|---|---|
items |
yes | array or Go value | Projected items in display order. Missing required value fails validation; an empty array renders empty when supplied or the default empty state when omitted. |
itemComponent |
yes | function component | Renderer for each item. The runtime invokes it with props {item,index,count} where item is the current array item, index is zero-based, and count is total item count. Incompatible component signatures fail validation. |
empty |
no | slot node | Empty state shown only when items resolves to an empty array. |
Boundary
Item order is preserved. RecordList does not sort, filter, or mutate records;
the product view model owns ordering and visibility.
Example
package notesui
var noteList = (
<RecordList items={notes} itemComponent={SummaryItem}></RecordList>
)
Runtime Terms
Expression children document ordinary Go expressions inside markup bodies.