- Accordion
- Agent Thinking
- Alert
- Alert Dialog
- Announcement
- Aspect Ratio
- Attachment
- Avatar
- Badge
- Breadcrumb
- Bubble
- Button
- Button Group
- Calendar
- Card
- Carousel
- Checkbox
- Checkbox Card
- Code Block
- Collapsible
- Color Picker
- Combobox
- Command
- Composer
- Composer Loader
- Context Menu
- Data Grid
- Data Table
- Date Picker
- Dialog
- Direction
- Drawer
- Dropdown Menu
- Empty
- Field
- File Upload
- Hover Card
- Input
- Input Group
- Input Otp
- Item
- Kbd
- Label
- Marker
- Menubar
- Message
- Message Scroller
- Meter
- Native Select
- Navigation Menu
- Number Field
- Pagination
- Period Switcher
- Popover
- Progress
- Questionnaire
- Radio Card
- Radio Group
- Resizable
- Reveal
- Scroll Area
- Search Field
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Social Button
- Sonner
- Spinner
- Status Dot
- Switch
- Switch Card
- Table
- Tabs
- Tag Group
- Textarea
- Theme Toggle
- Time Field
- Toggle
- Toggle Group
- Tooltip
- Trace
- Tree View
- Agent Creator 01
- Agent Limits Card 01
- Agent Progress 01
- AI Chat 01
- AI Image Generation 01
- AI Profile 01
- Alerts Card 01
- Auth Card 01
- Calendar 01
- Composer 01
- Composer Attachments 01
- Composer Panel 01
- Finance Dashboard 01
- Home Dashboard 01
- Marketing Dashboard 01
- Medical Profile 01
- Meeting Scheduler 01
- Multi Agent Chat 01
- Notification Center 01
- Patient Info Card 01
- Project Board 01
- Questionnaire 01
- Settings Modal 01
- Sidebar 01
- Stat Cards 01
- Task List 01
- Web Search 01
- Activity Rings Card 01
- Area Chart Card 01
- Bar List Card 01
- Combo Chart Card 01
- Contributions Card 01
- Earnings Chart Card 01
- Funnel Chart Card 01
- Heatmap Chart Card 01
- Line Chart Card 01
- Most Active Days Card 01
- Orders Chart Card 01
- Radar Chart Card 01
- Radial Chart Card 01
- Revenue Chart Card 01
- Sankey Chart Card 01
- Scatter Chart Card 01
- Sleep Score Card 01
- Stage Bars Card 01
- Steps Card 01
JD
Jordan Davis
Date of birth
12 March, 1989Gender
FemaleBlood type
O positivePrimary doctor
Alex MorganInstallation
Add the block from your configured registry:
$ pnpm dlx shadcn@latest add @cobalt/patient-info-card-01
Replace the sample profile and connect the photo button to your application.
Source
"use client";
import {
RiAsterisk,
RiDropLine,
RiAddLine,
RiStethoscopeLine,
RiUserLine,
} from "@remixicon/react";
import { Avatar, AvatarFallback } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
import { Card } from "@/components/ui/card";
const details = [
{ icon: RiAsterisk, label: "Date of birth", value: "12 March, 1989" },
{ icon: RiUserLine, label: "Gender", value: "Female" },
{ icon: RiDropLine, label: "Blood type", value: "O positive" },
{ icon: RiStethoscopeLine, label: "Primary doctor", value: "Alex Morgan" },
];
export function PatientInfoCard() {
return (
<Card
radius={20}
size="flush"
variant="muted"
render={<section aria-label="Patient information" />}
className="h-82.5 w-full min-w-0"
>
<div className="flex h-full flex-col items-center gap-3.75 px-2.5 pt-6 pb-2.5">
<div className="relative">
<Avatar className="size-16.5">
<AvatarFallback>
<span className="text-2xl leading-6">JD</span>
</AvatarFallback>
</Avatar>
<Button
type="button"
variant="outline"
size="icon-xs"
shape="pill"
tooltip="Add profile photo"
className="absolute -top-0.5 -end-0.5"
>
<RiAddLine aria-hidden="true" />
</Button>
</div>
<p className="text-xl leading-6.5 font-medium whitespace-nowrap text-foreground">
Jordan Davis
</p>
<div className="flex w-full flex-1 flex-col gap-2.5">
{details.map(({ icon: Icon, label, value }) => (
<div
key={label}
className="flex w-full items-center justify-between gap-2 rounded-[10px] bg-(--surface-nested,var(--background)) px-2.5 py-2"
>
<div className="flex items-center gap-1.5 text-muted-foreground">
<Icon className="size-4 shrink-0" aria-hidden="true" />
<span className="text-sm leading-5 whitespace-nowrap">
{label}
</span>
</div>
<span className="text-sm leading-5 font-medium whitespace-nowrap text-foreground">
{value}
</span>
</div>
))}
</div>
</div>
</Card>
);
} On this page