Phara UI v2.x

Profile

A user profile display component combining an avatar, name, and subtitle with inline, stacked, and card variants.

Inline

The default horizontal layout — ideal for sidebars, navigation bars, and user list items.

JD

Jane Doe

jane@example.com

JS

John Smith

Lead Engineer

AW

Alice Wong

Product Designer

Blade
<x-ui::profile name="Jane Doe" subtitle="jane@example.com" />

<x-ui::profile name="John Smith" subtitle="Lead Engineer" />

<x-ui::profile name="Alice Wong" subtitle="Product Designer" />
Stacked

Vertical centered layout — great for profile headers, team cards, and settings pages.

JD

Jane Doe

Designer

JD

Jane Doe

Designer

JD

Jane Doe

Designer

JD

Jane Doe

Designer

Blade
<x-ui::profile
    variant="stacked"
    size="lg"
    name="Jane Doe"
    subtitle="Product Designer"
/>
Card

Wraps the inline layout in a bordered card — useful in grids, tables, and panel layouts.

JD

Jane Doe

jane@example.com

JS

John Smith

Lead Engineer

Blade
<x-ui::profile
    variant="card"
    name="Jane Doe"
    subtitle="Product Designer"
/>
Sizes

Four sizes scale the avatar and typography together: sm, md (default), lg, and xl.

JD

Jane Doe

Designer

JD

Jane Doe

Designer

JD

Jane Doe

Designer

JD

Jane Doe

Designer

Blade
<x-ui::profile size="sm" name="Jane Doe" subtitle="Designer" />
<x-ui::profile size="md" name="Jane Doe" subtitle="Designer" />
<x-ui::profile size="lg" name="Jane Doe" subtitle="Designer" />
<x-ui::profile size="xl" name="Jane Doe" subtitle="Designer" />
Shapes

Use shape="square" for a rounded-square avatar instead of the default circle.

JD

Jane Doe

Product Designer

JD

Jane Doe

Product Designer

Blade
{{-- Circle (default) --}}
<x-ui::profile shape="circle" name="Jane Doe" subtitle="Product Designer" />

{{-- Square --}}
<x-ui::profile shape="square" name="Jane Doe" subtitle="Product Designer" />
Status

Pass status="online" for a green dot, or any other value for a gray dot indicating an inactive state.

JD

Jane Doe

Active now

JS

John Smith

Last seen 2h ago

Blade
{{-- Online --}}
<x-ui::profile status="online" name="Jane Doe" subtitle="Active now" />

{{-- Offline --}}
<x-ui::profile status="offline" name="John Smith" subtitle="Last seen 2h ago" />
With Slot

The default slot renders as trailing content — perfect for a chevron, badge, or action button.

JD

Jane Doe

jane@example.com

JS

John Smith

Lead Engineer

Pro
AW

Alice Wong

Product Designer

Blade
{{-- With chevron (sidebar nav trigger) --}}
<x-ui::profile name="Jane Doe" subtitle="jane@example.com" status="online">
    <x-ui::icon name="chevron-up-down" size="sm" class="text-zinc-400" />
</x-ui::profile>

{{-- With badge --}}
<x-ui::profile name="John Smith" subtitle="Lead Engineer">
    <x-ui::badge color="lime" size="sm">Pro</x-ui::badge>
</x-ui::profile>

{{-- In a card with slot --}}
<x-ui::profile variant="card" name="Alice Wong" subtitle="Product Designer" status="online">
    <x-ui::icon name="ellipsis-horizontal" size="sm" class="text-zinc-400" />
</x-ui::profile>