Skip to main content

ArticleContent

The ArticleContent component renders the full content of a blog article.

Usage

import ArticleContent from "@/components/blog/ArticleContent";
import { Tables } from "@/types/types";
function BlogPost({ article }: { article: Tables<"articles"> }) {
return (
<div>
<ArticleContent article={article} />
</div>
);
}

Props

  • article: The blog article object, including related authors and categories

Functionality

  • Displays the full content of a blog article
  • Renders article metadata (author, date, categories)
  • Supports rich text content

Customization

The component uses Tailwind CSS for styling. You can customize the appearance by modifying the CSS classes or updating the Tailwind configuration.