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
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add post-cardOr install the full npm package:
npm install bigbulluiUsage
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 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| avatar | string | Configures avatar. |
| name | string | Form field name submitted during form serialization. |
| time | string | Configures time. |
| body | string | Configures body. |
| likes | number | Configures likes. (Default: 0) |
| comments | number | Configures comments. (Default: 0) |
| shares | number | Configures shares. (Default: 0) |