Infinite Canvas
Infinite draggable canvas with zoomable, repeating cards and touch/mouse controls.
Loading...
Installation
npx shadcn@latest add @scrollxui/infinite-canvas Usage
import { Card, InfiniteCanvas } from '@/components/ui/infinite-canvas';<InfiniteCanvas
className='relative h-112.5 w-full'
showControls={true}
showZoom={true}
showStatus={true}
showInstructions={true}
>
<Card className='bg-card p-6 rounded-lg shadow-lg border h-full'>
<p className='text-foreground'>Card 1</p>
</Card>
<Card className='bg-card p-6 rounded-lg shadow-lg border h-full'>
<p className='text-foreground'>Card 1</p>
</Card>
<Card className='bg-card p-6 rounded-lg shadow-lg border h-full'>
<p className='text-foreground'>Card 1</p>
</Card>
</InfiniteCanvas>API Reference
Infinite Canvas
Infinite draggable canvas with zoomable, repeating cards and touch/mouse controls.