Nelwin Catalogo

XScroll

Cards 171

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
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198