For the complete documentation index, see llms.txt. This page is also available as Markdown.

Profile Card

Overview

The Avonni Profile Card displays a user or entity profile in a visually rich card layout. It combines a title and subtitle, a customizable background image, and an optional avatar with flexible positioning so you can highlight profile information in a structured, engaging way.

The Profile Card has no data source. Configure its content, appearance and avatar position in the Properties panel.

A Profile Card with a blue banner, a circular avatar over it, a title, a subtitle and two lines of body text
The four parts of a card: the Title and Subtitle over the Background Image, the avatar positioned against it, and whatever you drop into the card body.

Projects

See how Profile Card fits into a complete Salesforce workflow. Each project includes steps to build it with AI or manually.

Cover

Add on to the highlight panel using Dynamic components and charts.

Configuration

To configure the Profile Card, select it on the canvas. The Edit Profile Card panel opens on the right with two tabs: Properties and Style. The sections below mirror the Properties tab.

The Edit Profile Card panel showing the card settings, then the Avatar group with Image URL, Fallback Icon Name, Variant, Size and Position
The Properties tab: the card settings first, then the Avatar group. The three responsive positions sit behind Advanced Options.

Card

The first group controls the card's main content and its overall framing.

Title

The Title setting defines the heading shown at the top of the card. When you provide a title, the card's title slot will not appear directly in the canvas.

Subtitle

The Subtitle setting adds a line of text displayed under the title, useful for a role, location, or any secondary detail that supports the title.

Background Image

The Background Image setting lets you choose an image to display behind the card content. Use Select Image to pick a file; supported formats include APNG, AVIF, GIF, JPG, JPEG, PNG, SVG, and WEBP.

Content Pull Padding

The Content Pull Padding toggle, when enabled, adjusts the card's internal padding to visually pull the content closer to the edges of the card. It is off by default.

Avatar

The Avatar group is collapsible and controls the optional avatar shown on the card, including its image, shape, size, and position.

Image URL

The Image URL setting points to the image used as the avatar. Use Select Image to choose a file; supported formats include APNG, AVIF, GIF, JPG, JPEG, PNG, SVG, and WEBP.

Fallback Icon Name

The Fallback Icon Name setting defines the Lightning Design System icon shown in place of the avatar when the image fails to load.

Variant

The Variant setting controls the shape of the avatar:

  • Circle (default) — a rounded avatar.

  • Square — a square avatar.

Size

The Size setting controls how large the avatar appears. Choose the option that best fits your card layout:

  • X-Small — the smallest avatar.

  • Small — a compact avatar.

  • Medium (default) — the standard size, suitable for most cards.

  • Large — a more prominent avatar.

  • X-Large — the largest avatar.

Five profile cards showing the avatar at x-small, small, medium, large and x-large
The five sizes. The card header shrinks as the avatar grows, so a long title truncates at Large and above.

Position

The Position setting places the avatar relative to the card. Choose from:

  • Top Left (default), Top Center, Top Right

  • Bottom Left, Bottom Center, Bottom Right

  • Left, Center, Right

Nine profile cards in a three by three grid, each with the avatar in one of the nine positions
The nine positions. The top row sits the avatar above the banner, the middle row centres it on the banner edge, and the bottom row drops it into the card body.

Position on Small / Medium / Large Container

The three responsive position settings let the avatar move as the card's container grows wider, so the layout adapts to different screen sizes. They share the same options as Position and apply at progressively larger widths:

  • Position on Small Container — applies when the component is 480px wide or more.

  • Position on Medium Container — applies when the screen width is 768px or more.

  • Position on Large Container — applies when the screen width is 1024px or more.

Leave a responsive position empty to keep the avatar where the base Position setting placed it.

The three responsive positions are grouped under Advanced Options, at the bottom of the Avatar section.

Set Component Visibility

All components support conditional visibility — see Component Visibility.

Styling

Configure the Profile Card's appearance from the Style tab of the Edit Profile Card panel.

Controls the outer spacing around the card.

  • Top / Right / Bottom / Left: Adjust the space on each side.

Controls the inner spacing between the card's content and its border.

  • Top / Right / Bottom / Left: Adjust the inner spacing on each side.

Controls the card's dimensions.

  • Width / Height: Set fixed dimensions.

  • Min Width / Max Width / Min Height / Max Height: Constrain the size within bounds.

  • Overflow: Control how content that exceeds the bounds is handled.

Sets the card body background.

  • Background Color: Set the card background color.

Customizes the card border.

  • Color / Size / Radius: Set the border color, thickness, and corner rounding.

Last updated

Was this helpful?