Components/ArticleCard

ArticleCard

content

A rich card component for displaying article previews with cover image, title, description, tags, author info, and publish date.

1Installation

Install the package:

$npm install piece-ui

Import the component:

tsx
1import { ArticleCard } from "piece-ui";

2Usage

Basic usage

tsx
1import { ArticleCard } from "piece-ui";
2
3export default function Example() {
4  return (
5    <ArticleCard
6      title="Building with React Server Components"
7      description="A deep dive into how RSC changes the way we think about data fetching."
8      image="/cover.jpg"
9      tags={["React", "Next.js", "Performance"]}
10      date="March 2025"
11      href="/blog/rsc"
12    />
13  );
14}

3Props

PropType
titlereq
string
descriptionreq
string
image
string
tags
string[]
date
string
href
string