Browse components
Row Slide
Tilted rows of tiles that slide in alternating directions as the cursor moves across.
Installation
npx shadcn@latest add @glint-ui/row-slideFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/row-slide.json
Usage
import { RowSlide } from "@/components/ui/row-slide";
<div className="relative h-96">
<RowSlide items={["/a.jpg", "/b.jpg", "Hello"]} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | string[] | [] | Image URLs or short labels; repeats to fill the grid. Empty shows numbered tiles. |
| rows | number | 4 | Number of rows. |
| columns | number | 7 | Tiles per row. |
| tilt | number | -12 | Grid rotation in degrees. |
| strength | number | 260 | Max slide in px. |
| gap | number | 16 | Gap between tiles in px. |
| className | string | — | Extra classes for the root element. |