LaviKatiyar

Card

Cards 104

About

Hotel Card A visually polished card component to display property information, including an image, name, location, and rating. It is fully responsive and animated on hover.

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

Code

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

Usage.tsx

import { HotelCard } from "@/components/ui/card"; // Adjust the import path

export default function HotelCardDemo() {
  return (
    <div className="flex w-full items-center justify-center bg-background p-8">
      <div className="w-full max-w-3xl">
        <HotelCard
          href="#" // Making the card a clickable link
          imageUrl="https://cdn.21st.dev/assets/mirror/28/281e2e52a64a17d165f8fcf16e40b09464947e451ae4e47bd36c8a3be2de2731.jpg"
          imageAlt="Luxury hotel room with a pool view"
          roomType="Deluxe Room"
          hotelName="Sao Pulo Hotel"
          location="Ubud, Bali, Indonesia"
          rating={4.9}
          reviewCount={1092}
        />
      </div>
    </div>
  );
}

Dependencies

More by LaviKatiyar

View all
  • Hero Section

    Hero Section

    836
  • Cards

    Cards

    658
  • Service Card

    Service Card

    615
  • Card

    Card

    544
  • Alert Toast

    Alert Toast

    493
  • Bento Grid

    Bento Grid

    419
  • Freelancer Profile Card

    Freelancer Profile Card

    371
  • Referral Card

    Referral Card

    302

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 2

    Statistics Card 2

    302
  • Stats cards with links

    Stats cards with links

    37
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    596
  • Statistics Card 7

    Statistics Card 7

    325
  • Card Studio

    Card Studio

    14
  • The Item one

    The Item one

    3
  • Statistics Card 10

    Statistics Card 10

    293