Componentdata0.49 KB gzipZero dependencies

PostCard

Social post with header, body, gradient media placeholder, and action row with like/comment/share counts.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add post-card

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { PostCard } from "@/components/ui/post-card"; <PostCard avatar={avatar} name={name} time={time} body={body} likes={likes} comments={comments} shares={shares} />

Source code

post-card.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxpost-card.tsx62 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface PostCardProps {  avatar: string;  name: string;  time: string;  body: string;  likes?: number;  comments?: number;  shares?: number;} const PostCard: React.FC<PostCardProps> = ({  avatar,  name,

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { PostCard } from "@/components/ui/post-card"; <PostCard />
PropTypeDescription
avatarstringConfigures avatar.
namestringForm field name submitted during form serialization.
timestringConfigures time.
bodystringConfigures body.
likesnumberConfigures likes. (Default: 0)
commentsnumberConfigures comments. (Default: 0)
sharesnumberConfigures shares. (Default: 0)