Skip to content

Number Input — PAM Native UI

PAM Native UI · Android evidence

p-number-input 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
Forms and editing
Module
number-input
PHP facade
PNumberInput
Native targets
Android · UIKit

Forms and editing component rendered through the retained-native Android and UIKit pipeline.

Android specimen

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

Showcase profiles

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

  • Default
  • Comfortable
  • Compact
  • Disabled
  • Read Only
  • Error
  • Filled
  • Outlined
  • Underlined
  • Solo
  • Solo inverted
  • Solo filled
  • Plain
  • Hint and required
  • Inset Controls
  • Split Controls
  • Stacked Controls
  • Precision
  • Reverse

PHP usage

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

PNumberInput::make(
    [
        'variant' => "filled",
        'accessibilityLabel' => "PNumberInput preview",
        'controlVariant' => "inset",
    ],
    Text::make('Number Input'),
);

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

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"PNumberInput preview"
controlVariantstring"inset", "split", "stacked"
densitystring"comfortable", "compact"
disabledbooltrue
errorbooltrue
helperstring"This value needs attention", "Required field"
labelstring"PNumberInput"
maxint20
minint0
modelValueint8
persistentHintbooltrue
precisionint2
readonlybooltrue
requiredbooltrue
reversebooltrue
stepint | float1, 0.25
variantstring"filled", "outlined", "underlined", "solo", "solo-inverted", "solo-filled"