Componentdata0.63 KB gzipZero dependencies

Event Card

Event card with perforated date block, venue and time chips.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add event-card

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { EventCard } from "@/components/ui/event-card"; <EventCard />

Source code

event-card.tsx + 1 helper

Zero 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 />
PropTypeDescription
titlestringPrimary heading or title text.
datestringConfigures date. (Default: "Oct 14")
venuestringConfigures venue. (Default: "Berlin Arena")
timestringConfigures time. (Default: "21:00")
classNamestringOptional Tailwind or custom CSS classes merged with component styles.