Nelwin Catalogo

XScroll

Cards 162

About

Responsive Horizontal Scroll Area

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds XScroll to your project and fits it to your theme.

Code

How XScroll is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client';

import * as React from "react"
import XScroll from '@/components/ui/x-scroll';

function Demo() {
  return (
    <div className="grid min-h-screen place-items-center">
      <div className="mx-auto w-[50vw] rounded-md border border-dashed">
        <XScroll>
          <div className="flex gap-4 p-6">
            {Array.from({ length: 20 }, (v, i) => (
              <div key={i} className="grid size-32 shrink-0 place-items-center rounded-md bg-gray-200 shadow-md">
                {i}
              </div>
            ))}
          </div>
        </XScroll>
      </div>
    </div>
  );
}

export {
    Demo
}

Dependencies

More in Cards

View all
  • Statistics Card 7

    Statistics Card 7

    295
  • Course Design Cards

    Course Design Cards

    1.1K
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    89
  • The Item one

    The Item one

    3
  • Stats cards with links

    Stats cards with links

    81
  • Card

    Card

    56
  • Statistics Card 2

    Statistics Card 2

    269
  • Weather Card

    Weather Card

    55