Componentdata0.61 KB gzipZero dependencies
Poster Card
Event poster card with gradient overlay and date corner.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add poster-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { PosterCard } from "@/components/ui/poster-card"; <PosterCard />Source code
poster-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxposter-card.tsx38 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface PosterCardProps extends React.HTMLAttributes<HTMLDivElement> { title: string; subtitle?: string; /** Date badge corner: { day, month } */ date?: { day: string; month: string }; gradient?: React.ReactNode;} /** Event poster card: gradient overlay + calendar date badge. */export function PosterCard({ title, subtitle, date, gradient, className, children, ...props }: PosterCardProps) { return ( <div className={cn("group relative aspect-[3/4] w-full max-w-56 overflow-hidden rounded-lg border border-border bg-secondary", className)} {...props}> <div className="absolute inset-0" aria-hidden="true">Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { PosterCard } from "@/components/ui/poster-card"; <PosterCard />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. |
| subtitle | string | Supporting secondary heading text. |
| date | { day: string; month: string } | Date badge corner: { day, month } |
| gradient | React.ReactNode | Configures gradient. |