ItemCard components. Adds consistent gap between sibling cards (SaaS vertical stack / pressable list).
Class: Bjanczak\FilamentFlexFields\Filament\Schemas\Components\ItemCardStackExtends:
Filament\Schemas\Components\Component
Does not change card styling — children auto-detect standalone context when not inside ItemCardGroup.
Basic usage
Chainable configuration API
make()
Factory. No heading — use child cards for content.
stackGap(string|Closure $stackGap)
Spacing between stacked cards.
| Value | Gap |
|---|---|
sm | 0.5rem |
md (default) | 0.75rem |
lg | 1rem |
Note: NamedstackGap()to avoid clashing with Filament’s gridgap()method onComponent.
schema(array|Closure $components)
Child ItemCard components.
Public helper methods
| Method | Returns | Description |
|---|---|---|
getStackGap() | string | sm, md, or lg |
Inherited Filament schema component API
key(), id(), hidden(), visible(), extraAttributes(), columnSpan(), columns(), gap() (grid gap for children, default 0 in setUp()).
CSS classes
| Class | Meaning |
|---|---|
fff-item-card-stack | Stack wrapper |
fff-item-card-stack--{sm|md|lg} | Gap size modifier |