Victor Mesquita

Author Card

Component

About

A compound author/profile card showing an avatar with initials fallback, name, role, bio, profile links, and a follow toggle button.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Author Card to your project and fits it to your theme.

Code

How Author Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import {
  AuthorCard,
  AuthorCardAvatar,
  AuthorCardBio,
  AuthorCardFollow,
  AuthorCardHeader,
  AuthorCardLink,
  AuthorCardLinks,
  AuthorCardName,
  AuthorCardRole,
  type AuthorCardVariant,
} from "@/components/ui/author-card";

export default function AuthorCardPreview({
  variant = "card",
}: {
  variant?: AuthorCardVariant;
}) {
  return (
    <AuthorCard variant={variant}>
      <AuthorCardAvatar name="Marta Oliveira" />
      <AuthorCardHeader>
        <div>
          <AuthorCardName>Marta Oliveira</AuthorCardName>
          <AuthorCardRole>Staff engineer, Payments</AuthorCardRole>
        </div>
        <AuthorCardFollow />
      </AuthorCardHeader>
      <AuthorCardBio>
        Writes about retry budgets, idempotent APIs, and the boring parts of
        moving money between banks.
      </AuthorCardBio>
      <AuthorCardLinks>
        <AuthorCardLink
          href="#posts"
          onClick={(event) => event.preventDefault()}
        >
          42 posts
        </AuthorCardLink>
        <AuthorCardLink
          href="#github"
          onClick={(event) => event.preventDefault()}
        >
          GitHub
        </AuthorCardLink>
        <AuthorCardLink
          href="#site"
          onClick={(event) => event.preventDefault()}
        >
          marta.dev
        </AuthorCardLink>
      </AuthorCardLinks>
    </AuthorCard>
  );
}

Dependencies

More by Victor Mesquita

View all
  • Data Table Toolbar

    Data Table Toolbar

    10
  • Uai Blocks Community Feed

    Uai Blocks Community Feed

    5
  • Cart Drawer

    Cart Drawer

  • App Sidebar

    App Sidebar

  • Filter Bar

    Filter Bar

  • Contact Section

    Contact Section

  • Audit Log

    Audit Log

  • Task List

    Task List