Unlock faster development with Fidely UI Pro components Coming soon

Persona

A composite component built on top of the Profile primitives, combining an avatar, name, and title into a unified person representation.

JC

Justice Chimobi

Frontend Engineer, Creator Fidely UI

Usage

import { Persona } from '@fidely-ui/react'
<Persona
  name="Justice Chimobi"
  title="Frontend Engineer"
  img="justice-chimobi.png"
  size="md"
/>

Overview

The Persona component is a high-level UI abstraction built on top of the Profile components:

  • Profile.Root

  • Profile.AvatarWrapper

  • Profile.Name

  • Profile.Title

  • Profile.Details

It provides a convenient way to display a person's identity, combining an avatar, name, and title into a single, flexible component.

Persona Structure

Avatar: Renders the user’s image or an automatically generated fallback based on their name.

Name: The primary text label, typically the user’s full name.

Title: A supporting text label, such as a role, position, or short description.

The size prop synchronizes the Avatar and typography scale for consistent visual hierarchy.


Full Control

If you need more granular control such as adding extra elements, rearranging the layout, injecting custom styles, or extending the anatomy use the Profile component directly.

import { Profile, Avatar, Text } from '@fidely-ui/react'
<Profile.Root gap="3" orientation="vertical">
  <Profile.AvatarWrapper>
    <Avatar.Root size="lg">
      <Avatar.Fallback name="Justice Chimobi" />
      <Avatar.Image src="justice-chimobi.png" />
    </Avatar.Root>
  </Profile.AvatarWrapper>

  <Profile.Details>
    <Profile.Name fontSize="lg">Justice Chimobi</Profile.Name>
    <Profile.Title fontSize="sm" color="fg.muted">
      Frontend Engineer
    </Profile.Title>
    <Text fontSize="xs">Creator, Fidely UI</Text>
  </Profile.Details>
</Profile.Root>

Examples

Horizontal Layout

Use the default layout to display the avatar beside the text.

LG

Leanne Graham

harness real-time e-markets

Vertical Layout

Use the orientation="vertical" prop to stack the avatar above the text.

EH

Ervin Howell

synergize scalable supply-chains

Custom Sizes

Adjust the avatar, name and title size using the size prop.

KW

Kurtis Weissna

generate enterprise e-tailers

Props

PropTypeDefaultDescription
namestringThe main text displayed as the person’s name.
titlestringSecondary text that represents the person’s role or description.
imgstringThe source URL or path of the person’s avatar image.
size"xs" | "sm" | "md" | "lg" | "xl" | "2xl""md"Controls the size of the avatar image.
orientation"horizontal" | "vertical""horizontal"Defines the layout direction of the Persona component.