Skip to content

Btn — PAM Native UI

PAM Native UI · Android evidence

p-btn 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
Actions and identity
Module
button
PHP facade
PBtn
Native targets
Android · UIKit

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

Android specimen

p-btn 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-btn native Android interaction

Showcase profiles

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

  • Default
  • Elevated
  • Flat
  • Tonal
  • Outlined
  • Text
  • Plain
  • Leading icon
  • Trailing icon
  • Block
  • Extra small
  • Small
  • Large
  • Extra large
  • Compact density
  • Success
  • Error
  • Disabled
  • Loading

PHP usage

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

PBtn::make(
    [
        'variant' => "elevated",
        'accessibilityLabel' => "PBtn preview",
        'block' => true,
    ],
    Text::make('Btn'),
);

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

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"PBtn preview"
blockbooltrue
buttonLabelstring"Continue", "Create", "Confirm", "Save draft", "Add item", "Learn more"
colorstring"success", "error"
densitystring"compact"
disabledbooltrue
elevationint2
loadingbooltrue
sizestring"x-small", "small", "large", "x-large"
variantstring"elevated", "flat", "tonal", "outlined", "text", "plain"