Componentdata0.63 KB gzipZero dependencies
Event Card
Event card with perforated date block, venue and time chips.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add event-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { EventCard } from "@/components/ui/event-card"; <EventCard />Source code
event-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxevent-card.tsx58 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface EventCardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> { title: string; date?: string; venue?: string; time?: string; className?: string;} export function EventCard({ title, date = "Oct 14", venue = "Berlin Arena", time = "21:00",Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { EventCard } from "@/components/ui/event-card"; <EventCard />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. |
| date | string | Configures date. (Default: "Oct 14") |
| venue | string | Configures venue. (Default: "Berlin Arena") |
| time | string | Configures time. (Default: "21:00") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |