Componentdata0.8 KB gzipZero dependencies
Bio Card
Bio card with social link icons and follow action.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add bio-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { BioCard } from "@/components/ui/bio-card"; <BioCard />Source code
bio-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxbio-card.tsx54 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface BioCardProps extends React.HTMLAttributes<HTMLDivElement> { name: string; initials: string; bio?: string; links?: { platform: string; href: string }[]; onFollow?: () => void;} /** Bio profile card: avatar + social links + follow button. */export function BioCard({ name, initials, bio, links = [], onFollow, className, ...props }: BioCardProps) { const [following, setFollowing] = React.useState(false); return (Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { BioCard } from "@/components/ui/bio-card"; <BioCard />| Prop | Type | Description |
|---|---|---|
| name | string | Form field name submitted during form serialization. |
| initials | string | Configures initials. |
| bio | string | Configures bio. |
| links | { platform: string; href: string }[] | Configures links. (Default: []) |
| onFollow | () => void | Callback invoked on follow. |