Skip to content

Snackbar — PAM Native UI

PAM Native UI · Android evidence

p-snackbar 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, route and native interaction verified
Family
Overlays and feedback
Module
snackbar
PHP facade
PSnackbar
Native targets
Android · UIKit

Overlays and feedback component rendered through the retained-native Android and UIKit pipeline.

Android specimen

p-snackbar running in the PAM Native UI Android catalog

Interaction recording

The touch trace was captured from the Android application while exercising the native component.

p-snackbar native Android interaction

Showcase profiles

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

  • Default
  • Elevation 0
  • Elevation 1
  • Elevation 2
  • Elevation 4
  • Elevation 8
  • Elevation 12
  • Elevation 16
  • Elevation 24
  • Top
  • Bottom
  • Multi Line
  • Vertical
  • Timeout
  • Persistent
  • Success
  • Error

PHP usage

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

PSnackbar::make(
    [
        'accessibilityLabel' => "PSnackbar preview",
        'color' => "success",
        'elevation' => 0,
    ],
    Text::make('Snackbar'),
);

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

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"PSnackbar preview"
colorstring"success", "error"
elevationint0, 1, 2, 4, 8, 12
locationstring"top", "bottom"
multiLinebooltrue
openboolfalse
persistentbooltrue
textstring"Everything is ready to continue."
timeoutint3000, -1
verticalbooltrue