# V card 19

> Event card with date, time, location, attendee count, and RSVP button

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-card-19).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-card-19
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-card-19-light-0624b0ced051e00f.png
- Registry item: https://ui.cnippet.dev/r/v-card-19.json
- Categories: card
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-card-19.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/card`

## Files

### `registry/default/variants/v-card-19.tsx`

```tsx
import { CalendarIcon, ClockIcon, MapPinIcon, UsersIcon } from "lucide-react";
import { Badge } from "@/registry/default/ui/badge";
import { Button } from "@/registry/default/ui/button";
import { Card, CardContent } from "@/registry/default/ui/card";

const event = {
  attendees: 42,
  category: "Workshop",
  date: "Jun 18, 2026",
  location: "Design Hub, Floor 3",
  spots: 10,
  time: "2:00 PM – 4:30 PM",
  title: "Design Systems in Practice",
};

export function Pattern() {
  return (
    <Card className="w-full max-w-xs">
      <CardContent className="flex flex-col gap-4">
        <div className="flex items-start justify-between gap-2">
          <h3 className="font-semibold text-sm leading-snug">{event.title}</h3>
          <Badge size="sm" variant="secondary">
            {event.category}
          </Badge>
        </div>
        <div className="flex flex-col gap-2 text-muted-foreground text-xs">
          <span className="flex items-center gap-2">
            <CalendarIcon className="size-3.5 shrink-0" />
            {event.date}
          </span>
          <span className="flex items-center gap-2">
            <ClockIcon className="size-3.5 shrink-0" />
            {event.time}
          </span>
          <span className="flex items-center gap-2">
            <MapPinIcon className="size-3.5 shrink-0" />
            {event.location}
          </span>
          <span className="flex items-center gap-2">
            <UsersIcon className="size-3.5 shrink-0" />
            {event.attendees} attending ·{" "}
            <span className="text-amber-600 dark:text-amber-400">
              {event.spots} spots left
            </span>
          </span>
        </div>
        <Button className="w-full" size="sm">
          Reserve a Spot
        </Button>
      </CardContent>
    </Card>
  );
}
```
