Fidely UI v1 beta is now available!. 🚀

Persona

A composite component that combines an avatar, name, and title to represent a person or profile.

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"
  imgSize="md"
/>

The Persona component is made up of the following parts:

Avatar — Displays the user’s image or initials.

Name — The main text, typically the person’s full name.

Title — A secondary text, usually representing the role or description.

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 size using the imgSize prop.

KW

Kurtis Weissna

generate enterprise e-tailers

Props

PropTypeDefaultDescription
namestring—The main text displayed as the person’s name.
titlestring—Secondary text that represents the person’s role or description.
imgstring—The source URL or path of the person’s avatar image.
imgSize"sm" | "md" | "lg" | "xl""md"Controls the size of the avatar image.
orientation"horizontal" | "vertical""horizontal"Defines the layout direction of the Persona component.
spacingstring | number"0.5rem"Sets the space between the avatar and text content.