Veil UI
Components

Profile Page

A social profile page with cover, tabs, posts and sidebar.

Installation

$ npx veil-ui@latest add profile-page

Usage

import { ProfilePage } from "@/components/ui/profile-page";

<ProfilePage />;

Examples

Basic

VVeil UI
MC

Mira Chen Pro

@mirachen

Product lead at Acme. Designing calm interfaces, maintaining the Veil UI registry, and writing about design systems.

Lisbon, Portugal mirachen.dev Joined March 2021
1,284 followers312 following48 posts
Circuit board
Notes from rebuilding our token pipeline
A short write-up on moving from CSS variables to structured tokens.
128 likes
Mountain landscape
Designing the dashboard empty states
Sketches and decisions behind the new calm empty states.
96 likes
Flower field
A week of dogfooding our component registry
What broke, what held up, and the gaps we found along the way.
214 likes

API reference

The package exports profile-page along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.

Accessibility

  • Page templates use semantic landmarks and a single page-level heading.
  • Navigation links and actions have discernible names and visible focus styles.
  • Decorative imagery uses empty alt text; content images carry descriptions.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add profile-page --framework vue or switch the framework in components.json.

<template>
<div data-slot="profile-page" class="w-full overflow-hidden rounded-xl border bg-background min-h-[600px]"><header class="flex items-center justify-between border-b px-6 py-3"><div data-slot="logo" class="inline-flex items-center gap-1.5"><span data-slot="logo-mark" class="flex shrink-0 items-center justify-center overflow-hidden rounded-md size-6"><span class="grid size-full place-items-center bg-primary text-[10px] font-bold text-primary-foreground">V</span></span><span data-slot="logo-name" class="font-semibold tracking-tight text-sm">Veil UI</span></div><div class="flex items-center gap-2"><button data-slot="button" data-variant="outline" data-size="sm" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-8 rounded-md px-3 text-xs">Share profile</button><button data-slot="button" data-variant="default" data-size="sm" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 bg-primary text-primary-foreground hover:bg-primary/90 h-8 rounded-md px-3 text-xs">Follow</button></div></header><div class="h-40 bg-gradient-to-r from-indigo-500/70 via-violet-500/60 to-sky-400/60"></div><div class="mx-auto w-full max-w-5xl px-6"><div class="-mt-10 flex flex-wrap items-end justify-between gap-4"><div class="flex items-end gap-4"><span data-slot="avatar" data-size="default" class="relative flex shrink-0 overflow-hidden rounded-full bg-muted size-20 border-4 border-background text-xl"><span data-slot="avatar-fallback" class="flex size-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground">MC</span></span><div class="pb-1"><h1 class="flex items-center gap-2 text-xl font-semibold tracking-tight">Mira Chen<span data-slot="badge" data-variant="secondary" class="inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [&amp;&gt;svg]:pointer-events-none [&amp;&gt;svg]:size-3 border-transparent bg-secondary text-secondary-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star" aria-hidden="true"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg> Pro</span></h1><p class="text-sm text-muted-foreground">@mirachen</p></div></div><div class="flex items-center gap-2 pb-1"><button data-slot="button" data-variant="outline" data-size="sm" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-8 rounded-md px-3 text-xs"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square" aria-hidden="true"><path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"></path></svg> Message</button><button data-slot="button" data-variant="ghost" data-size="icon" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 hover:bg-accent hover:text-accent-foreground size-9" aria-label="More options"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-ellipsis lucide-more-horizontal" aria-hidden="true"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg></button></div></div><p class="mt-4 max-w-2xl text-sm">Product lead at Acme. Designing calm interfaces, maintaining the Veil UI registry, and writing about design systems.</p><div class="mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground"><span class="inline-flex items-center gap-1.5"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-map-pin size-4" aria-hidden="true"><path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"></path><circle cx="12" cy="10" r="3"></circle></svg> Lisbon, Portugal</span><a href="#link" class="inline-flex items-center gap-1.5 hover:text-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-link-2 size-4" aria-hidden="true"><path d="M9 17H7A5 5 0 0 1 7 7h2"></path><path d="M15 7h2a5 5 0 1 1 0 10h-2"></path><line x1="8" x2="16" y1="12" y2="12"></line></svg> mirachen.dev</a><span class="inline-flex items-center gap-1.5"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar-days size-4" aria-hidden="true"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path><path d="M8 13h.01"></path><path d="M12 13h.01"></path><path d="M16 13h.01"></path><path d="M8 17h.01"></path><path d="M12 17h.01"></path><path d="M16 17h.01"></path></svg> Joined March 2021</span></div><div class="mt-3 flex gap-5 text-sm"><span><strong class="font-semibold text-foreground">1,284</strong><span class="text-muted-foreground">followers</span></span><span><strong class="font-semibold text-foreground">312</strong><span class="text-muted-foreground">following</span></span><span><strong class="font-semibold text-foreground">48</strong><span class="text-muted-foreground">posts</span></span></div><div class="mt-6"><div role="tablist" aria-label="Profile sections" data-slot="segmented-navigation" class="inline-flex items-center gap-1 rounded-lg border bg-muted p-1"><button type="button" role="tab" aria-selected="true" class="rounded-md px-3 py-1 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 bg-background text-foreground shadow-sm">Posts</button><button type="button" role="tab" aria-selected="false" class="rounded-md px-3 py-1 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 text-muted-foreground hover:text-foreground">Media</button><button type="button" role="tab" aria-selected="false" class="rounded-md px-3 py-1 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 text-muted-foreground hover:text-foreground">Likes</button></div></div><div class="mt-6 grid gap-6 pb-10 lg:grid-cols-[1fr_300px]"><div class="grid gap-5 sm:grid-cols-2"><div data-slot="image-card" class="flex flex-col gap-4 rounded-lg border bg-card text-card-foreground shadow-xs overflow-hidden py-0"><img src="https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&amp;fit=crop&amp;w=800&amp;q=60" alt="Circuit board" loading="lazy" class="aspect-video w-full object-cover"/><div data-slot="card-header" class="grid auto-rows-min items-start gap-1 px-5 has-[[data-slot=card-action]]:grid-cols-[1fr_auto] pt-5"><div data-slot="card-title" class="text-base font-medium leading-none">Notes from rebuilding our token pipeline</div><div data-slot="card-description" class="text-sm text-muted-foreground">A short write-up on moving from CSS variables to structured tokens.</div></div><div class="flex items-center border-t px-5 py-3 text-sm text-muted-foreground"><span class="inline-flex items-center gap-1.5"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star size-3.5" aria-hidden="true"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg> 128 likes</span></div></div><div data-slot="image-card" class="flex flex-col gap-4 rounded-lg border bg-card text-card-foreground shadow-xs overflow-hidden py-0"><img src="https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&amp;fit=crop&amp;w=800&amp;q=60" alt="Mountain landscape" loading="lazy" class="aspect-video w-full object-cover"/><div data-slot="card-header" class="grid auto-rows-min items-start gap-1 px-5 has-[[data-slot=card-action]]:grid-cols-[1fr_auto] pt-5"><div data-slot="card-title" class="text-base font-medium leading-none">Designing the dashboard empty states</div><div data-slot="card-description" class="text-sm text-muted-foreground">Sketches and decisions behind the new calm empty states.</div></div><div class="flex items-center border-t px-5 py-3 text-sm text-muted-foreground"><span class="inline-flex items-center gap-1.5"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star size-3.5" aria-hidden="true"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg> 96 likes</span></div></div><div class="sm:col-span-2"><div data-slot="image-card" class="flex flex-col gap-4 rounded-lg border bg-card text-card-foreground shadow-xs overflow-hidden py-0"><img src="https://images.unsplash.com/photo-1492619375914-88005aa9e8fb?auto=format&amp;fit=crop&amp;w=800&amp;q=60" alt="Flower field" loading="lazy" class="w-full object-cover aspect-[3/1]"/><div data-slot="card-header" class="grid auto-rows-min items-start gap-1 px-5 has-[[data-slot=card-action]]:grid-cols-[1fr_auto] pt-5"><div data-slot="card-title" class="text-base font-medium leading-none">A week of dogfooding our component registry</div><div data-slot="card-description" class="text-sm text-muted-foreground">What broke, what held up, and the gaps we found along the way.</div></div><div class="flex items-center border-t px-5 py-3 text-sm text-muted-foreground"><span class="inline-flex items-center gap-1.5"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star size-3.5" aria-hidden="true"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg> 214 likes</span></div></div></div></div><aside class="space-y-4"><div data-slot="card" class="flex flex-col gap-4 rounded-lg border bg-card py-5 text-card-foreground shadow-xs"><div data-slot="card-header" class="grid auto-rows-min items-start gap-1 px-5 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]"><div data-slot="card-title" class="font-medium text-sm">Profile completion</div></div><div data-slot="card-content" class="px-5 space-y-2"><div aria-valuemax="100" aria-valuemin="0" aria-valuenow="80" aria-valuetext="80%" role="progressbar" data-state="loading" data-value="80" data-max="100" data-slot="progress" class="relative h-1.5 w-full overflow-hidden rounded-full bg-primary/15" aria-label="Profile completion"><div data-state="loading" data-value="80" data-max="100" data-slot="progress-indicator" class="h-full w-full flex-1 rounded-full bg-primary transition-transform duration-300 motion-reduce:transition-none" style="transform:translateX(-20%)"></div></div><p class="text-xs text-muted-foreground">80% complete · Add a profile photo to finish.</p></div></div><div data-slot="card" class="flex flex-col gap-4 rounded-lg border bg-card py-5 text-card-foreground shadow-xs"><div data-slot="card-header" class="grid auto-rows-min items-start gap-1 px-5 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]"><div data-slot="card-title" class="font-medium text-sm">People you may know</div></div><div data-slot="card-content" class="px-5 space-y-3"><div class="flex items-center gap-2"><span data-slot="avatar" data-size="sm" class="relative flex shrink-0 overflow-hidden rounded-full bg-muted size-6 text-[10px]"><span data-slot="avatar-fallback" class="flex size-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground">OP</span></span><div class="min-w-0 flex-1"><p class="truncate text-sm font-medium">Owen Park</p><p class="truncate text-xs text-muted-foreground">Staff engineer</p></div><button data-slot="button" data-variant="outline" data-size="sm" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-8 rounded-md px-3 text-xs">Follow</button></div><div class="flex items-center gap-2"><span data-slot="avatar" data-size="sm" class="relative flex shrink-0 overflow-hidden rounded-full bg-muted size-6 text-[10px]"><span data-slot="avatar-fallback" class="flex size-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground">LO</span></span><div class="min-w-0 flex-1"><p class="truncate text-sm font-medium">Lena Ortiz</p><p class="truncate text-xs text-muted-foreground">Design director</p></div><button data-slot="button" data-variant="outline" data-size="sm" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-8 rounded-md px-3 text-xs">Follow</button></div></div></div><div data-slot="profile-card" class="flex flex-col gap-4 rounded-lg border bg-card py-5 text-card-foreground shadow-xs max-w-none"><div data-slot="card-header" class="grid auto-rows-min gap-1 px-5 has-[[data-slot=card-action]]:grid-cols-[1fr_auto] items-center text-center"><span data-slot="avatar" data-size="lg" class="relative flex shrink-0 overflow-hidden rounded-full bg-muted size-16 text-lg"><span data-slot="avatar-fallback" class="flex size-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground">AD</span></span><div class="grid gap-1"><div data-slot="card-title" class="text-base font-medium leading-none">Acme Design</div><p class="text-sm text-muted-foreground">Official account</p></div></div><div data-slot="card-content" class="px-5 text-center text-sm text-muted-foreground">Design systems, tokens and product craft.</div><div data-slot="card-content" class="px-5 flex justify-center gap-6 text-sm"><span><strong class="font-semibold text-foreground">8420</strong><span class="text-muted-foreground">followers</span></span><span><strong class="font-semibold text-foreground">12</strong><span class="text-muted-foreground">following</span></span></div><div data-slot="card-content" class="px-5"><button data-slot="button" data-variant="default" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 bg-primary text-primary-foreground hover:bg-primary/90 h-9 px-4 py-2 w-full" type="button">Follow</button></div></div></aside></div></div></div>
</template>

On this page