LaviKatiyar

Card

Heroes

About

Vision Card Description: A visually striking card component that overlays text on a fading gradient, revealing a background image. It includes a subtle hover animation and supports both left and right text alignment for versatile use in hero sections or feature highlights.

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 { VisionCard } from '@/components/ui/card-10'; // Adjust this import path to where you save the component

export default function VisionCardDemo() {
  return (
    <div className="flex w-full flex-col items-center justify-center gap-8 bg-background p-4 antialiased md:p-8">
      {/* Example 1: Text on the left (default) */}
      <VisionCard
        title="Tailored To Your Vision"
        imageUrl="https://cdn.21st.dev/assets/mirror/79/7957b948e3c4af7576efb97f5cf877e7d12dfbc3d358ccff7aae9766d716ed3c.jpg"
        imageAlt="Close-up of a person's eye with a blue and brown iris."
        direction="left"
        aria-label="A card showing an eye with the text 'Tailored to your vision'"
      />
    </div>
  );
}

More by LaviKatiyar

View all
  • Hero Section

    Hero Section

    841
  • Cards

    Cards

    672
  • Service Card

    Service Card

    621
  • Card

    Card

    550
  • Alert Toast

    Alert Toast

    495
  • Bento Grid

    Bento Grid

    421
  • Freelancer Profile Card

    Freelancer Profile Card

    374
  • Referral Card

    Referral Card

    305

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Hero Section

    Hero Section

    445
  • Aero Hero-3

    Aero Hero-3

    618
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    442