Horizontal Card

Side-by-side card with image, title, description, and a clear action.

Add to your project

Pick the way you like to build.

Let your AI assistant add it

Copy this prompt and paste it into the AI tool building your site.

# Integrate this UI component

Add this component to my project.

1. Install any missing dependencies.
2. Make sure Tailwind CSS is set up and scans the new file.
3. Prefer passing props over editing the component source — changing the component itself may break it.
4. Adjust colors, size, and layout via props or wrapper classes to match my project. You know my codebase better than this snippet does.

## Component source

```tsx
type HorizontalCardProps = {
  image?: string;
  imageAlt?: string;
  label?: string;
  title?: string;
  description?: string;
  price?: string;
  actionLabel?: string;
  href?: string;
  className?: string;
};

export default function HorizontalCard({
  image = 'https://assets.uniquel.io/components/stock/photo-1523275335684-37898b6baf30.jpg',
  imageAlt = 'Minimal black watch',
  label = 'New arrival',
  title = 'Arc One Watch',
  description = 'A precise everyday timepiece with a brushed steel case and sapphire glass.',
  price = '$249',
  actionLabel = 'View product',
  href = '#',
  className = '',
}: HorizontalCardProps) {
  return (
    <article
      className={[
        'flex max-w-xl overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm',
        className,
      ]
        .filter(Boolean)
        .join(' ')}
    >
      <img src={image} alt={imageAlt} className='w-2/5 object-cover' />
      <div className='flex min-w-0 flex-1 flex-col p-5'>
        <p className='text-xs font-semibold uppercase tracking-[0.16em] text-indigo-600'>{label}</p>
        <h3 className='mt-2 text-lg font-semibold tracking-tight text-gray-900'>{title}</h3>
        <p className='mt-2 text-sm leading-6 text-gray-600'>{description}</p>
        <div className='mt-auto flex items-center justify-between gap-3 pt-5'>
          <span className='text-base font-semibold text-gray-900'>{price}</span>
          <a
            href={href}
            className='rounded-lg bg-gray-900 px-3 py-2 text-xs font-semibold text-white transition-colors hover:bg-gray-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-gray-900 focus-visible:ring-offset-2'
          >
            {actionLabel}
          </a>
        </div>
      </div>
    </article>
  );
}

```

Works with your AI tools

ClaudeClaude*
CodexCodex*
LovableLovable
Base44Base44
Figma MakeFigma Make
ReplitReplit*
CursorCursor*
v0v0

* Compatible with most projects that use the default React/Next.js framework.

Built With

ReactTailwind CSS

Props

PropTypeDescription
imagestringProduct image URL
imageAltstringProduct image alt text
labelstringSmall category label
titlestringProduct name
descriptionstringProduct description
pricestringPrice label
actionLabelstringAction button text
hrefstringAction URL
classNamestringStyles for the outer card

More Cards Components

Compact Card preview

Editorial card with a full-bleed image, story metadata, and optional link wrapper.

Metric Card preview

Compact dashboard metric with a trend badge and inline sparkline.

Card Stack preview

Layered testimonial cards that cycle forward with a spring stack. Click the front card to advance.