Skip to content

Rating — PAM Native UI

PAM Native UI · Android evidence

p-rating 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
Selection controls
Module
rating
PHP facade
PRating
Native targets
Android · UIKit

Selection controls component rendered through the retained-native Android and UIKit pipeline.

Android specimen

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

Showcase profiles

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

  • Default
  • Primary
  • Secondary
  • Success
  • Information
  • Warning
  • Error
  • X Small
  • Small
  • Large
  • X Large
  • Half Increments
  • Clearable
  • Hover
  • Read Only
  • Length 10
  • Dense

PHP usage

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

PRating::make(
    [
        'accessibilityLabel' => "PRating preview",
        'clearable' => true,
        'color' => "primary",
    ],
    Text::make('Rating'),
);

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

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"PRating preview"
clearablebooltrue
colorstring"primary", "secondary", "success", "info", "warning", "error"
densitystring"compact"
halfIncrementsbooltrue
hoverbooltrue
lengthint5, 10
maxint5
minint0
modelValueint | float4, 3.5, 7
readonlybooltrue
sizestring"x-small", "small", "large", "x-large"
stepint | float1, 0.5