API and Development
CrudPage from @prepared911/ui/blocks/crud-page is a list of records: a heading, an optional filter bar, a DataTable, and create, edit, delete, and detail flows. It is one component. It does not take header, alert, and toolbar as child slots you arrange.
| Prop | Meaning |
|---|---|
title | Required page heading. |
records | Required rows, each with a stable id. |
columns | Required DataTableColumn<T>[]. The row actions menu is not one of your columns. |
table | Required. label plus DataTable props the page does not own. |
empty | Required noRecords and noResults copy. |
filters | Filters props except the value. Omit for no bar. |
filtersValue / onFiltersChange | The filter value, if you hold it. |
form | create and edit each turn on that form. |
delete | Confirmation copy and the handler. |
detail | Drawer labels and sections. |
rowActions | Names for each row's more button and its View, Edit, and Delete items. |
variant | CrudPageVariant.Default or Card. |
drawerMode | Overlay reserves scroll room. Inline sits beside the table. |