Frontend
Slots
Overview
Section titled “Overview”Slots are named UI extension points where you can inject custom React components. Each slot has typed props specific to its location in the UI. Rebase ships with 27 built-in slots covering the home page, navigation, collection views, entity forms, the app bar, and more.
Every slot in the table below is rendered. If you register a component for one and see nothing, the fault is in your component or its props, not in the slot — UNRENDERED_SLOTS in @rebasepro/cms-types is empty, and a test derives that list by scanning for render sites, so a slot cannot be declared here without one again.
Via <Rebase> prop
Section titled “Via <Rebase> prop”<Rebase client={client} slots={[ { slot: "navigation.footer", Component: MyNavigationFooter, order: 10 }, { slot: "collection.actions", Component: BulkExportButton } ]}>Via plugin
Section titled “Via plugin”const myPlugin: RebasePlugin = { key: "my-plugin", slots: [ { slot: "home.cards", Component: AnalyticsCard, order: 20 } ]};Available Slots
Section titled “Available Slots”Home Page
Section titled “Home Page”| Slot | Props Type | Description |
|---|---|---|
home.actions |
PluginGenericProps |
Actions in the home page header |
home.cards |
PluginHomePageAdditionalCardsProps |
Additional cards on the home page |
home.children.start |
PluginGenericProps |
Content at the start of the home page |
home.children.end |
PluginGenericProps |
Content at the end of the home page |
home.card.widget |
HomeCardWidgetSlotProps |
Compact widget inside a home page collection card |
home.collection.actions |
PluginHomePageActionsProps |
Actions on home page collection cards |
Navigation
Section titled “Navigation”| Slot | Props Type | Description |
|---|---|---|
navigation.header |
NavigationSlotProps |
Below the logo in the sidebar drawer |
navigation.footer |
NavigationSlotProps |
Above the collapse toggle at the bottom of the drawer |
Collection View
Section titled “Collection View”| Slot | Props Type | Description |
|---|---|---|
collection.actions |
CollectionActionsProps |
End-side toolbar actions (after collection Actions) |
collection.actions.start |
CollectionActionsProps |
Start-side toolbar actions (alongside filters) |
collection.header.action |
CollectionHeaderActionProps |
Column header action buttons |
collection.add-column |
CollectionAddColumnProps |
“Add column” area in table header |
collection.error |
CollectionErrorProps |
Error state display for a collection |
collection.toolbar |
CollectionToolbarProps |
Extra widgets inside the collection toolbar row |
collection.empty-state |
CollectionEmptyStateProps |
Custom empty-state when collection has no data |
collection.widgets |
CollectionWidgetsSlotProps |
Widgets above the collection table |
Where a collection slot is handed the view’s tableController or
selectionController, they speak rows as the server sends them:
tableController.rows (with their ids at the same positions in
tableController.ids, loading, error and the toolbar’s filter, search and
sort), and a selection by id — selection is
{ type: "rows", ids, rows } or { type: "query", query, excludedIds, count },
and isSelected(id) asks about one row.
Entity / Form
Section titled “Entity / Form”| Slot | Props Type | Description |
|---|---|---|
form.actions |
PluginFormActionProps |
Actions in the entity form action bar. Handed the record’s id (absent while it is new), path, status, collection and formContext |
form.actions.top |
PluginFormActionProps |
Actions above the form action bar |
form.before |
PluginFormActionProps |
Content before the form title/field list |
form.after |
PluginFormActionProps |
Content after the form field list |
entity.row.actions |
EntityRowActionsProps |
Per-row actions in collection tables, beside the built-in row tools. Handed the row as the server sends it (row), its id, path, collection, the table’s selectionController and context |
entity.field.before |
EntityFieldSlotProps |
UI injected before an individual form field. Handed the field’s propertyKey and property, and the record’s path and id (absent while it is new) |
entity.field.after |
EntityFieldSlotProps |
UI injected after an individual form field |
Global / Shell
Section titled “Global / Shell”| Slot | Props Type | Description |
|---|---|---|
global.search |
GlobalSearchProps |
Cross-collection search, in the app bar beside the breadcrumbs |
shell.toolbar |
ShellToolbarProps |
Top-level actions, at the end of the app bar |
Kanban
Section titled “Kanban”| Slot | Props Type | Description |
|---|---|---|
kanban.setup |
KanbanSetupProps |
Kanban board setup UI |
kanban.add-column |
KanbanAddColumnProps |
“Add column” in kanban view |
Slot Props Reference
Section titled “Slot Props Reference”All slot prop types are exported from @rebasepro/cms-types and can be imported for type-safe slot components:
import type { CollectionActionsProps, NavigationSlotProps } from "@rebasepro/cms-types";Each props type provides access to the context relevant to the slot’s location — collection metadata, entity data, navigation state, and more. Refer to the individual type definitions for full property details.
Related
Section titled “Related”- Component Overrides (Swizzling) — when a slot is not enough
- Extending Rebase — the rest of the extension surface
- Plugins — shipping slot content as a plugin