Grid Fill
Responsive grid that auto-fills empty cells with a placeholder pattern, so the last row always looks complete. Use for galleries, masonry-style lists, or stat tiles.
Default
Pass count and let GridFill add fillers to complete the last row.
Usage
Import the parts you need from the component's folder.
ts
import { GridFill } from "@/components/ui/grid-fill";Custom filler slot
Use the #filler slot to render your own placeholder. Receives { index }.
Rounded
The rounded prop applies consistent corners with overflow hidden.
Non-square items
GridFill does not force aspect-square; items and fillers can be any height.
Fixed columns
Set :min-col-width="false" to disable auto-fit and lock the column count.