Skip to content

Btn Toggle — PAM Native UI

PAM Native UI · Android evidence

p-btn-toggle 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-toggle
PHP facade
PBtnToggle
Native targets
Android · UIKit

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

Android specimen

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

Showcase profiles

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

  • Single choice
  • Multiple choice
  • Full width
  • Single optional
  • Leading icons
  • Compact density
  • Two options
  • Five options
  • Disabled item
  • Disabled group
  • Long labels
  • Tile
  • RTL
  • Success color

PHP usage

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

PBtnToggle::make(
    [
        'accessibilityLabel' => "PBtnToggle preview",
        'active' => true,
        'block' => true,
    ],
    Text::make('Btn Toggle'),
);

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

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"PBtnToggle preview"
activebooltrue
blockbooltrue
colorstring"success"
densitystring"compact"
disabledbooltrue
mandatorybooltrue
modelValuestring | array"week", "board", "list", "recent", "center", "monthly"
multiplebooltrue
rtlbooltrue
tilebooltrue