BrickclayDesign System

Grid

bk-grid: a config-driven table: pass a columns array (with checkbox/badge/icon/action columns built in) and a result array, and it renders the cells for you. Contrast with bk-table, which is template-driven.

bk-gridData displayAngular

Preview

A working preview of Grid in the Brickclay style. Try it.

VehicleStatusDriverAction
Truck 101In serviceTayyab Baig
Truck 102In shopJane Doe
Van 07In serviceJohn Smith
Truck 103Retired–
Interact with the preview to see events here.
VehicleStatusDriverAction
Truck 101In serviceTayyab Baig
Truck 102In shopJane Doe
Van 07In serviceJohn Smith
Truck 103Retired–

Empty state

VehicleStatusDriver
Data may be empty, or try adjusting your filter.

API reference (selected)

Input on bk-gridTypeDescription
columnsTableColumn<T>[]See below.
resultT[]Rows to render.
actionsTableAction<T>[](row) => TableAction<T>[] | Row action buttons (edit/delete, etc.), optionally per-row.
draggablebooleanRow reordering via CDK drag-drop; emits dragDropChange.
showNoRecords / noRecordMessageboolean / stringEmpty-state illustration + message.
TableColumn propertyDescription
field / formatterRow key to read, or a function computing the cell text.
sortableAdds a sort icon; the grid emits sortChange for you to apply.
badges / iconsRender a bk-badge or icon(s) instead of plain text, by value or per-row function.
checkboxRenders a checkbox bound to the field, emits change.
toolTipFieldField whose value shows as a tooltip on the cell.