Home / Function/ CardImage() — ui Function Reference

CardImage() — ui Function Reference

Architecture documentation for the CardImage() function in card-image.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  46930e5e_8264_7611_2034_1b4ad0da0d88["CardImage()"]
  6623853c_dcdc_e833_c28b_1696959736bc["card-image.tsx"]
  46930e5e_8264_7611_2034_1b4ad0da0d88 -->|defined in| 6623853c_dcdc_e833_c28b_1696959736bc
  style 46930e5e_8264_7611_2034_1b4ad0da0d88 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/card-image.tsx lines 12–36

export function CardImage() {
  return (
    <Card className="relative mx-auto w-full max-w-sm pt-0">
      <div className="absolute inset-0 z-30 aspect-video bg-black/35" />
      <img
        src="https://avatar.vercel.sh/shadcn1"
        alt="Event cover"
        className="relative z-20 aspect-video w-full object-cover brightness-60 grayscale dark:brightness-40"
      />
      <CardHeader>
        <CardAction>
          <Badge variant="secondary">Featured</Badge>
        </CardAction>
        <CardTitle>Design systems meetup</CardTitle>
        <CardDescription>
          A practical talk on component APIs, accessibility, and shipping
          faster.
        </CardDescription>
      </CardHeader>
      <CardFooter>
        <Button className="w-full">View Event</Button>
      </CardFooter>
    </Card>
  )
}

Subdomains

Frequently Asked Questions

What does CardImage() do?
CardImage() is a function in the ui codebase, defined in apps/v4/examples/radix/card-image.tsx.
Where is CardImage() defined?
CardImage() is defined in apps/v4/examples/radix/card-image.tsx at line 12.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free