Summary
A layout component designed specifically for stacking ItemCard or ItemCardGroup components vertically. It provides consistent spacing and alignment, ensuring a clean “stack” appearance for complex list items.| Class | Bjanczak\FilamentFlexFields\Filament\Schemas\Components\ItemCardStack |
| State type | (Layout component — no state) |
| FieldType | item-card-stack |
| Playground | (No dedicated playground — see ItemCardGroup) |
| Extends | Filament\Schemas\Components\Component |
Basic usage
Simple vertical stack
Custom spacing
Configuration API
All methods acceptClosure unless noted.
| Method | Type | Default | Description |
|---|---|---|---|
stackGap(string|Closure $gap) | Setup | 'md' | Spacing between items: sm, md, lg |
schema(array|Closure $schema) | Setup | — | Components to stack |
Real-world examples
Dashboard Activity Feed
Related components
| Component | When to use instead |
|---|---|
| ItemCardGroup | Grid-based layout for cards |
Section | When a title and collapsible behavior is needed |
Grid | For multi-column layouts |
Playground
Stacked layouts:/admin/flex-fields-playground/item-card-group.
CSS classes (reference)
| Class | Role |
|---|---|
fff-item-card-stack | Root wrapper |
fff-item-card-stack--gap-{sm|md|lg} | Spacing variant |