SIGNALS Docs
Exit Reader View
100%
Theme

Plugin slot components

Core components plugins can render in slots, with their props.

Supported components

SlotComponentCatalogue::COMPONENTS is a supported list, not an enforced allowlist. Slots and manifest declarations still control where a component is registered. See Plugin UI for slot families and wiring.

SlotComponentType::View renders a Blade component with the data callback's array as props. Livewire mounts a component with those parameters. Html uses the callback's trusted HTML string and does not resolve a component view. Detail tabs also accept an HTML metadata array through PluginTabPresenter.

Suggested slots are expanded from SlotRegistry::KNOWN_SLOT_KEYS. The table reads Blade @props and the named Livewire component's public properties directly. A null default is optional; only a declaration without a default is required. Livewire public properties include runtime state: use datatableSlot() to configure the shared data table through a registered definition rather than copying all of its state. The examples assume matching slots[] declarations and, for the data table, a registered datatables[] definition.

The dashboard bridge special-cases signals.stat-card as a statistic widget. Other slot components render as HTML widgets. On the dashboard, an Html widget's string has scripts and board directives stripped before it renders, and plugin data callbacks receive only the generic widget settings (range, comparison, custom dates and limit). Host helpers such as signals.plugin-slot and signals.plugin-tab-panel place plugins on core pages; they are not plugin content components.

Regenerate with php artisan signals:plugin-slot-components --docs.

signals.plugin-action-button

Kind: view. Suggested slots: account.detail.header_actions, rental.detail.header_actions, invoice.detail.header_actions, activity.detail.header_actions, catalogue_item.detail.header_actions, asset.detail.header_actions, virtual_stock.detail.header_actions, asset_retirement.detail.header_actions, warehouse_transfer.detail.header_actions, fleet_vehicle.detail.header_actions, flightcase.detail.header_actions, stock_check.detail.header_actions, equipment_test.detail.header_actions, equipment_test_result.detail.header_actions, repair.detail.header_actions, purchase_order.detail.header_actions.

Prop Default Required
package — yes
actionKey — yes
record null no
use App\Sdk\Slots\SlotComponentType;

$registrar->actionSlot('account.detail.header_actions', 'acme.ledger.link');

signals.map

Kind: view. Suggested slots: account.detail.tabs, rental.detail.tabs, catalogue_item.detail.tabs, fleet_vehicle.detail.tabs, flightcase.detail.tabs, asset.detail.tabs, credit_note.detail.tabs, payment.detail.tabs, invoice.detail.tabs, purchase_order.detail.tabs, repair.detail.tabs, equipment_test.detail.tabs, rental_project.detail.tabs, dashboard.widgets.

Prop Default Required
markers [] no
height 360 no
fit true no
center null no
zoom null no
staleAfterSeconds null no
emptyText null no
label null no
use App\Sdk\Slots\SlotComponentType;

$registrar->slot('dashboard.widgets', SlotComponentType::View, 'signals.map',
    fn (): array => ['markers' => [['id' => 'vehicle-1', 'lat' => 51.5, 'lng' => -0.1, 'label' => 'Vehicle 1']]], refreshSeconds: 60);

signals.stat-card

Kind: view. Suggested slots: dashboard.widgets.

Prop Default Required
label null no
value null no
color "blue" no
trend null no
trendUp true no
use App\Sdk\Slots\SlotComponentType;

$registrar->slot('dashboard.widgets', SlotComponentType::View, 'signals.stat-card',
    fn (): array => ['label' => 'Pending reviews', 'value' => 12]);

signals.plugin-modal

Kind: view. Suggested slots: modals.global.

Prop Default Required
name — yes
title null no
sections [] no
use App\Sdk\Slots\SlotComponentType;

$registrar->slot('modals.global', SlotComponentType::View, 'signals.plugin-modal',
    fn (): array => ['name' => 'acme-review', 'title' => 'Review', 'sections' => []]);

components.data-table

Kind: livewire. Suggested slots: account.detail.tabs, rental.detail.tabs, catalogue_item.detail.tabs, fleet_vehicle.detail.tabs, flightcase.detail.tabs, asset.detail.tabs, credit_note.detail.tabs, payment.detail.tabs, invoice.detail.tabs, purchase_order.detail.tabs, repair.detail.tabs, equipment_test.detail.tabs, rental_project.detail.tabs, dashboard.widgets.

Prop Default Required
columns [] no
model "" no
authorizationModel null no
authorizationId null no
searchable [] no
focusSearch false no
perPage 12 no
perPageOptions [12,24,48] no
emptyMessage "No records found." no
emptyState [] no
defaultSort "" no
defaultDirection "asc" no
with [] no
withCounts [] no
knownTotal null no
scopes [] no
actionsView "" no
bulkActionsView "" no
toolbarView "" no
toolbarData [] no
toolbarOnMobile false no
rowSelection true no
rowClickRoute "" no
rowClickQueryKey null no
refreshEvents [] no
search "" no
sortField "" no
sortDirection "asc" no
filters [] no
selected [] no
selectAll false no
lastSelectedId null no
filterId null no
entityType null no
visibleColumnKeys [] no
availableViews [] no
activeViewName null no
activeViewIsPinned false no
previewDefinition null no
previewRestore null no
columnWidths [] no
disabledQuickFilterIds [] no
previewMeasurePending false no
density "comfortable" no
paginators [] no
$registrar->datatableSlot('dashboard.widgets', 'acme.review.records');

See Typed slot context for the record identity supplied to component callbacks.