Componentdata0.68 KB gzipZero dependencies
Article Card
Blog article card with category badge, excerpt and author meta.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add article-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { ArticleCard } from "@/components/ui/article-card"; <ArticleCard />Source code
article-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxarticle-card.tsx73 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface ArticleCardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> { title: string; excerpt: string; category?: string; author?: string; readTime?: string; image?: string; className?: string;} export function ArticleCard({ title, excerpt,Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { ArticleCard } from "@/components/ui/article-card"; <ArticleCard />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. |
| excerpt | string | Configures excerpt. |
| category | string | Configures category. |
| author | string | Configures author. |
| readTime | string | Configures read time. |
| image | string | Configures image. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |