Skip to content

Avatar — PAM Native UI

PAM Native UI · Android evidence

p-avatar rendered by the production retained-native pipeline. The specimen below is a real Physical Samsung SM-G973F Android 12 (API 31) capture at 420 dpi, not an HTML recreation.

Physical Samsung layout and component route verified
Family
Actions and identity
Module
avatar
PHP facade
PAvatar
Native targets
Android · UIKit

Actions and identity component rendered through the retained-native Android and UIKit pipeline.

Android specimen

p-avatar running in the PAM Native UI Android catalog

This is a static or anatomical component. Its Android evidence is the rendered specimen; no synthetic interaction recording is published.

Showcase profiles

Every profile below is rendered by the Android catalog route shown above.

  • Default
  • Elevated
  • Flat
  • Tonal
  • Outlined
  • Icon
  • Primary
  • Secondary
  • Success
  • Information
  • Warning
  • Error
  • X Small
  • Small
  • Large
  • X Large
  • Rounded
  • Tile
  • Bordered

PHP usage

use Pam\MobileUi\Material\PAvatar;
use Pam\Native\UI\Text;

PAvatar::make(
    [
        'variant' => "elevated",
        'accessibilityLabel' => "PAvatar preview",
        'border' => true,
    ],
    Text::make('Avatar'),
);

The equivalent PAM template entry point is <p-avatar>…</p-avatar>.

See the PAM Native UI guide for event, state and styling conventions, and the quality contractfor native behavior requirements.

Component properties

PropertyObserved typeShowcase values
accessibilityLabelstring"PAvatar preview"
borderbooltrue
colorstring"primary", "secondary", "success", "info", "warning", "error"
elevationint3, 0
iconstring"star"
roundedbooltrue
sizestring"x-small", "small", "large", "x-large"
tilebooltrue
variantstring"elevated", "flat", "tonal", "outlined"