jshguo

Interfaces Carousel

Cards 14

About

Carousel component with Embla, supporting horizontal, vertical, and loop modes.

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

Code

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

Usage.tsx

import {
  Carousel,
  CarouselContent,
  CarouselItem,
  CarouselNext,
  CarouselPrevious,
} from "@/components/ui/interfaces-carousel"

export default function CarouselLoopDemo() {
  return (
    <div className="flex w-full min-h-screen items-center justify-center overflow-hidden bg-background p-8">
      <Carousel orientation="horizontal" opts={{ loop: true }} className="w-full max-w-xs sm:max-w-sm md:max-w-md">
        <CarouselContent className="h-68">
          {Array.from({ length: 5 }).map((_, index) => (
            <CarouselItem key={index}>
              <div className="bg-card text-card-foreground flex flex-col rounded-xl border shadow-sm">
                <div className="flex h-64 aspect-video w-full items-center justify-center p-4">
                  <span className="text-4xl font-semibold">
                    {index + 1}
                  </span>
                </div>
              </div>
            </CarouselItem>
          ))}
        </CarouselContent>
        <CarouselPrevious />
        <CarouselNext />
      </Carousel>
    </div>
  )
}

Dependencies

More by jshguo

View all
  • Progress

    Progress

    427
  • Select

    Select

    371
  • Textarea

    Textarea

    259
  • Input OTP

    Input OTP

    161
  • Switch

    Switch

    138
  • Hover Card

    Hover Card

    110
  • Card

    Card

    85
  • Interfaces Breadcrumb

    Interfaces Breadcrumb

    63

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Statistics Card 2

    Statistics Card 2

    269
  • Statistics Card 7

    Statistics Card 7

    295
  • Card

    Card

    56
  • Stats cards with links

    Stats cards with links

    86
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    99
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    36