@rippling/pebble-sdui-mobile 1.1.5 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,8 @@ Import component builders from `@rippling/pebble-sdui-mobile/catalogs/custom-app
7
7
 
8
8
  Card with icon asset, title, caption, and action buttons
9
9
 
10
+ Use the asset to give the card a recognizable visual cue. Add primaryAction and optional secondaryAction labels, then handle their separate events; neither action changes state automatically.
11
+
10
12
  Catalog key: `ActionCard`
11
13
  Builder: `ActionCard`
12
14
  Props type: `ActionCardProps`
@@ -32,6 +34,8 @@ Bottom-sheet list of backend-authored actions
32
34
 
33
35
  Each visible data item renders as a Pebble ActionSheet row. Selecting an item executes its actions sequentially. Use dismissActions to synchronize visibility state when the sheet closes.
34
36
 
37
+ Pass visible to control presentation and supply options with actions for each row. Item actions execute in order; dismissActions run when the sheet closes, so use them to clear the state that controls visibility.
38
+
35
39
  Catalog key: `ActionSheet`
36
40
  Builder: `ActionSheet`
37
41
  Props type: `ActionSheetProps`
@@ -56,6 +60,8 @@ Inline text link that opens supported URLs
56
60
 
57
61
  Use Anchor for inline links that open external destinations through React Native Linking. Supported URL schemes are http, https, mailto, tel, and sms. Wire the `press` event for side effects before opening, `open` for successful opens, and `error` for unsupported URLs, URLs the device cannot open, or Linking failures.
58
62
 
63
+ Use children for the link label and href for the destination. The press event runs before the device attempts to open the URL; open and error report the outcome.
64
+
59
65
  Catalog key: `Anchor`
60
66
  Builder: `Anchor`
61
67
  Props type: `AnchorProps`
@@ -78,6 +84,8 @@ Lottie-based branded animation from the pebble animation pack
78
84
 
79
85
  `type` must be a valid pebble animation name. Leave `theme` unset to follow the app color mode.
80
86
 
87
+ Choose a named Pebble animation with type. Set size for the available space and theme only when the animation should differ from the current app color mode.
88
+
81
89
  Catalog key: `Animation`
82
90
  Builder: `Animation`
83
91
  Props type: `AnimationProps`
@@ -106,6 +114,8 @@ Use `source` for a remote image URL, an icon type name, or a catalog logo. Use `
106
114
  `isRounded` defaults to a circle. Set it to false for a rounded square, used for organizations, brands, and logos.
107
115
  When `onPress` is wired, the avatar becomes tappable — wire to the 'press' event.
108
116
 
117
+ Choose an image, icon, or initials with source and title. Set size and appearance to match the surrounding list or card; press is emitted only when the avatar is interactive.
118
+
109
119
  Catalog key: `Avatar`
110
120
  Builder: `Avatar`
111
121
  Props type: `AvatarProps`
@@ -132,6 +142,8 @@ Overlapping row of circular avatars
132
142
 
133
143
  `avatars` is an array of avatar data objects. Each item supports the same `source` and `title` props as the Avatar component.
134
144
 
145
+ Use avatars for a compact group of people. Provide each item with a source or title, and keep the list short enough that individual identities remain legible.
146
+
135
147
  Catalog key: `AvatarStack`
136
148
  Builder: `AvatarStack`
137
149
  Props type: `AvatarStackProps`
@@ -151,6 +163,8 @@ No additional properties.
151
163
 
152
164
  Small status label with colored appearance
153
165
 
166
+ Use label for a brief status or count and appearance for its semantic color. This is display-only content: it has no children, state binding, or press event.
167
+
154
168
  Catalog key: `Badge`
155
169
  Builder: `Badge`
156
170
  Props type: `BadgeProps`
@@ -173,6 +187,8 @@ Tappable button with label and configurable appearance
173
187
 
174
188
  Wire `onPress` to the `press` event. Set `spinner: { $bindState: "/loading" }` to show a spinner while an async action runs. Use `style` with token keys (e.g. { marginTop: "space200", alignSelf: "center" }) to override container spacing and alignment.
175
189
 
190
+ Use appearance and size to establish action priority. Handle press for the action, and bind spinner to loading state during asynchronous work so repeated taps are discouraged.
191
+
176
192
  Catalog key: `Button`
177
193
  Builder: `Button`
178
194
  Props type: `ButtonProps`
@@ -204,6 +220,8 @@ Elevated container card, optionally tappable
204
220
 
205
221
  Wire the `press` event to handle card tap. Set `disabled: true` to prevent press interaction. Add children to fill card body.
206
222
 
223
+ Add children for the card body. Wire press only when the whole card navigates or performs an action; disabled prevents that interaction.
224
+
207
225
  Catalog key: `Card`
208
226
  Builder: `Card`
209
227
  Props type: `CardProps`
@@ -227,6 +245,8 @@ Single checkbox toggle with label and optional validation
227
245
 
228
246
  Use a single Checkbox ONLY for a standalone boolean toggle (e.g. "I agree to terms"). For 2 or more related options, use CheckboxGroup instead — it renders all options in a grouped card layout automatically. Never place multiple individual Checkbox components in a VStack or Card manually.
229
247
 
248
+ Bind checked to a boolean state value. The change event follows a user toggle, while blur is useful for validation after focus leaves the control.
249
+
230
250
  Catalog key: `Checkbox`
231
251
  Builder: `Checkbox`
232
252
  Props type: `CheckboxProps`
@@ -243,7 +263,7 @@ Events: `change`, `blur`
243
263
  | `checks` | no | [CheckboxCheck](./types.md#checkboxcheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
244
264
  | `defaultValue` | no | boolean | Initial value for uncontrolled mode. Default: false |
245
265
  | `disabled` | no | boolean | Disables the checkbox. Default: false |
246
- | `error` | no | boolean \| string | Error state or error message |
266
+ | `error` | no | unknown | Error state or error message |
247
267
  | `haptic` | no | boolean | Enables haptic feedback on toggle. Default: true |
248
268
  | `helperText` | no | string | Help text shown below the checkbox |
249
269
  | `indeterminate` | no | boolean | Sets the checkbox to an indeterminate state. Default: false |
@@ -265,6 +285,8 @@ Group of checkboxes allowing multiple selections
265
285
 
266
286
  Preferred over multiple individual Checkbox components. Pass all options via the `options` array (each with `id` and `label`). Wrap in a Card for visual grouping. `onChange` stores the array of selected ids to the bound state path. State shape: string[].
267
287
 
288
+ Bind value to an array of selected option IDs. Keep IDs stable and unique; disabled options remain visible but cannot be selected.
289
+
268
290
  Catalog key: `CheckboxGroup`
269
291
  Builder: `CheckboxGroup`
270
292
  Props type: `CheckboxGroupProps`
@@ -277,7 +299,7 @@ Events: `change`
277
299
  |---|---:|---|---|
278
300
  | `defaultValue` | no | string[] | Initial selected ids for uncontrolled mode |
279
301
  | `disabled` | no | boolean | Disables all options. Default: false |
280
- | `error` | no | boolean \| string | Error state or error message shown below the group |
302
+ | `error` | no | unknown | Error state or error message shown below the group |
281
303
  | `helperText` | no | string | Help text shown below the group |
282
304
  | `options` | yes | [CheckboxGroupOption](./types.md#checkboxgroupoption)[] | Array of checkbox options: [{ id, label?, tag?, disabled? }] |
283
305
  | `testID` | no | string | Sets testid on CheckboxGroup (used for testing purposes) |
@@ -291,6 +313,8 @@ Compact tag chip with optional dismiss button
291
313
 
292
314
  Wire `close` event to handle chip removal. Wire `press` event for chip tap.
293
315
 
316
+ Use a short child label for a compact filter or selection. Handle press for selection and close for removal when a dismiss control is shown.
317
+
294
318
  Catalog key: `Chip`
295
319
  Builder: `Chip`
296
320
  Props type: `ChipProps`
@@ -314,6 +338,8 @@ Country flag icon for a given ISO region code
314
338
 
315
339
  `region` should be a valid ISO 3166-1 alpha-2 country code (e.g. "US", "GB", "IN").
316
340
 
341
+ Use this flag as a visual country cue, not as a country picker. The region is an uppercase two-letter country code; disabled changes its visual state.
342
+
317
343
  Catalog key: `Country`
318
344
  Builder: `Country`
319
345
  Props type: `CountryProps`
@@ -335,6 +361,8 @@ Currency input
335
361
 
336
362
  Currency input. `onChange` stores formatted currency string in state.
337
363
 
364
+ Bind value to a string containing the formatted monetary input. Use the currency-related props to match the expected unit and keep validation tied to the resulting string.
365
+
338
366
  Catalog key: `Currency`
339
367
  Builder: `Currency`
340
368
  Props type: `CurrencyProps`
@@ -351,7 +379,7 @@ Events: `change`, `blur`
351
379
  | `decimalPlaces` | no | number | Number of decimal places allowed |
352
380
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
353
381
  | `disabled` | no | boolean | Disables the input. Default: false |
354
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
382
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
355
383
  | `helperText` | no | string | Help text shown below the input |
356
384
  | `label` | no | string | Label shown above the input |
357
385
  | `placeholder` | no | string | Placeholder text shown when the field is empty |
@@ -384,7 +412,7 @@ Events: `change`, `blur`
384
412
  | `clearable` | no | boolean | Shows a clear button to reset the value. Default: false |
385
413
  | `defaultValue` | no | string | Default ISO date string for uncontrolled mode |
386
414
  | `disabled` | no | boolean | Disables the date input. Default: false |
387
- | `error` | no | string \| boolean | Error state or error message |
415
+ | `error` | no | unknown | Error state or error message |
388
416
  | `format` | no | string | Date format string e.g. "YYYY-MM-DD". Default: ISO string |
389
417
  | `helperText` | no | string | Help text shown below the date input |
390
418
  | `label` | yes | string | Label shown above the date input |
@@ -476,6 +504,8 @@ Email text input that validates email format
476
504
 
477
505
  Email text input that validates email format. `onChange` stores a string in state.
478
506
 
507
+ Bind value to a string and use error or helperText to explain validation. The change event follows edits; blur is suitable for showing an email-format error.
508
+
479
509
  Catalog key: `Email`
480
510
  Builder: `Email`
481
511
  Props type: `EmailProps`
@@ -491,7 +521,7 @@ Events: `change`, `blur`
491
521
  | `clearable` | no | boolean | Shows a clear button when the field has a value. Default: false |
492
522
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
493
523
  | `disabled` | no | boolean | Disables the input. Default: false |
494
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
524
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
495
525
  | `helperText` | no | string | Help text shown below the input |
496
526
  | `label` | no | string | Label shown above the input |
497
527
  | `placeholder` | no | string | Placeholder text shown when the field is empty |
@@ -510,6 +540,8 @@ Collapsible panel with a header that toggles content visibility
510
540
 
511
541
  The `toggle` event fires when the panel is expanded or collapsed. Use `expanded: { $bindState: "/panel/open" }` for fully controlled mode. Use `headerLeft` and `headerRight` to render content in the header slots via json-render sub-specs.
512
542
 
543
+ Place expandable content in children and bind expanded to a boolean when the host owns panel state. Handle toggle to synchronize that state.
544
+
513
545
  Catalog key: `ExpansionPanel`
514
546
  Builder: `ExpansionPanel`
515
547
  Props type: `ExpansionPanelProps`
@@ -577,6 +609,8 @@ No additional properties.
577
609
 
578
610
  Floating action button with shadow, configurable appearance, and haptic feedback
579
611
 
612
+ Use a short label or icon for a prominent screen action. Handle press and position it in a container that leaves room for page content.
613
+
580
614
  Catalog key: `FloatingButton`
581
615
  Builder: `FloatingButton`
582
616
  Props type: `FloatingButtonProps`
@@ -608,6 +642,8 @@ Form container that manages validation, submission, and input layout
608
642
 
609
643
  Wrap form inputs as children. "submit" event fires with validated data. Use hideSubmitButton:true when providing a custom submit button.
610
644
 
645
+ Put form fields in children and bind each field to state. Submit emits validated data; valid and invalid report validation outcome. Hide the built-in button when a separate submit control is provided.
646
+
611
647
  Catalog key: `Form`
612
648
  Builder: `Form`
613
649
  Props type: `FormProps`
@@ -639,6 +675,8 @@ Groups two input children side-by-side with shared validation state
639
675
 
640
676
  Groups 2 input children side-by-side. Provides shared error and helper text.
641
677
 
678
+ Use exactly two input children when fields should share a horizontal row. Put shared helper or error text on the group while retaining field-specific validation on each input.
679
+
642
680
  Catalog key: `Group`
643
681
  Builder: `Group`
644
682
  Props type: `GroupProps`
@@ -650,7 +688,7 @@ Events: _none_
650
688
  | Name | Required | Type | Description |
651
689
  |---|---:|---|---|
652
690
  | `disabled` | no | boolean | Disables all inputs in the group. Default: false |
653
- | `error` | no | string \| boolean | Error state or error message for the group |
691
+ | `error` | no | unknown | Error state or error message for the group |
654
692
  | `helperText` | no | string | Helper text shown below the grouped inputs |
655
693
  | `required` | no | boolean | Marks the group as required. Default: false |
656
694
  | `testID` | no | string | Sets testid on Group (used for testing purposes) |
@@ -663,6 +701,8 @@ Hidden state carrier — no visible UI
663
701
 
664
702
  Hidden state carrier — no visible UI. Use $bindState on value to store any JSON-serializable value in spec state.
665
703
 
704
+ Bind value to serializable state when a form needs a value without visible UI. Treat it as data storage; it never renders user-facing content.
705
+
666
706
  Catalog key: `Hidden`
667
707
  Builder: `Hidden`
668
708
  Props type: `HiddenProps`
@@ -684,6 +724,8 @@ Horizontal flex row container
684
724
 
685
725
  Lays children out horizontally. By default, HStack wraps its content (shrinks to fit children). Use `width: "sizeFull"` to stretch and fill the available width. Use `gap` for spacing, `align` for cross-axis alignment, `justify` for main-axis distribution.
686
726
 
727
+ Add child elements in display order. Gap controls spacing, align controls the cross axis, and justify distributes items along the horizontal axis.
728
+
687
729
  Catalog key: `HStack`
688
730
  Builder: `HStack`
689
731
  Props type: `HStackProps`
@@ -745,6 +787,8 @@ Scalable vector icon from the pebble icon pack
745
787
 
746
788
  `type` must be a valid pebble icon name. Wire `onPress` to the `press` event to make the icon tappable.
747
789
 
790
+ Choose a valid Pebble icon type and size. An icon is decorative unless press is handled; give interactive icons an accessible label in the surrounding UI.
791
+
748
792
  Catalog key: `Icon`
749
793
  Builder: `Icon`
750
794
  Props type: `IconProps`
@@ -769,6 +813,8 @@ Displays a raster or SVG image from a remote URL
769
813
 
770
814
  Use `style` with token keys (e.g. { width: "size400", height: "size400", marginTop: "space200" }) for layout and sizing. `shapeCorner` sets preset border radius; style `borderRadius` tokens can further override corners. Use `contentFit` to control how the image scales within its bounds.
771
815
 
816
+ Provide a source and explicit dimensions through style so the layout can reserve space. Choose contentFit for cropping or containment, and shapeCorner for a preset radius.
817
+
772
818
  Catalog key: `Image`
773
819
  Builder: `Image`
774
820
  Props type: `ImageProps`
@@ -794,6 +840,8 @@ Single-line text input field
794
840
 
795
841
  `onChange` stores the string value to the bound state path. Use `checks` + `validateOn` for inline validation.
796
842
 
843
+ Bind value to a string. Use checks with validateOn to choose when validation runs, and show error or helperText near the field.
844
+
797
845
  Catalog key: `InputText`
798
846
  Builder: `InputText`
799
847
  Props type: `InputTextProps`
@@ -809,7 +857,7 @@ Events: `change`, `blur`
809
857
  | `clearable` | no | boolean | Shows a clear button when the field has a value. Default: false |
810
858
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
811
859
  | `disabled` | no | boolean | Disables the input. Default: false |
812
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
860
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
813
861
  | `helperText` | no | string | Help text shown below the input |
814
862
  | `label` | no | string | Label shown above the input |
815
863
  | `placeholder` | no | string | Placeholder text shown when the field is empty |
@@ -827,6 +875,8 @@ No additional properties.
827
875
 
828
876
  Styled inline text label with predefined appearances
829
877
 
878
+ Use label for a short field or section caption. It is display-only and does not manage input value or validation state.
879
+
830
880
  Catalog key: `Label`
831
881
  Builder: `Label`
832
882
  Props type: `LabelProps`
@@ -901,6 +951,8 @@ Bottom sheet modal with gesture support and children slot
901
951
 
902
952
  Set visible:true to show the sheet. Wire "close" event to toggle visible state.
903
953
 
954
+ Bind visible to a boolean in host state. Put sheet content in children, and handle close to set visible false so the sheet does not reopen on the next render.
955
+
904
956
  Catalog key: `ModalSheet`
905
957
  Builder: `ModalSheet`
906
958
  Props type: `ModalSheetProps`
@@ -926,6 +978,8 @@ Inline alert banner with title, description, and actions
926
978
 
927
979
  `description` and action buttons are only shown in `base` variant (default). Wire `primaryPress` / `secondaryPress` events to handle button taps. Wire `close` event to handle the X dismiss button (base variant only).
928
980
 
981
+ Use title and body text for contextual guidance. Supply action labels only when needed; primaryPress, secondaryPress, and close are separate events.
982
+
929
983
  Catalog key: `Notice`
930
984
  Builder: `Notice`
931
985
  Props type: `NoticeProps`
@@ -954,6 +1008,8 @@ Numeric text input
954
1008
 
955
1009
  Numeric text input. `onChange` stores a number string in state. `isIntegerOnly` and `decimalPlaces` are mutually exclusive — use one or the other (`isIntegerOnly` forces scale 0).
956
1010
 
1011
+ Bind value to the entered numeric string, even when the field represents a number. Set min or max and choose integer-only or decimal precision to match validation.
1012
+
957
1013
  Catalog key: `Number`
958
1014
  Builder: `Number`
959
1015
  Props type: `NumberProps`
@@ -970,7 +1026,7 @@ Events: `change`, `blur`
970
1026
  | `decimalPlaces` | no | number | Number of decimal places allowed. Mutually exclusive with isIntegerOnly. |
971
1027
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
972
1028
  | `disabled` | no | boolean | Disables the input. Default: false |
973
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
1029
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
974
1030
  | `helperText` | no | string | Help text shown below the input |
975
1031
  | `isIntegerOnly` | no | boolean | Restrict to integer values only. Takes precedence over decimalPlaces. |
976
1032
  | `label` | no | string | Label shown above the input |
@@ -1084,6 +1140,8 @@ No additional properties.
1084
1140
 
1085
1141
  Condensed footer with title, logo icon, and optional action button
1086
1142
 
1143
+ Use this compact footer for a single page-level action. Provide title as the action label and handle action to submit or navigate.
1144
+
1087
1145
  Catalog key: `PageCondensedFooter`
1088
1146
  Builder: `PageCondensedFooter`
1089
1147
  Props type: `PageCondensedFooterProps`
@@ -1105,6 +1163,8 @@ No additional properties.
1105
1163
 
1106
1164
  Condensed page header with title
1107
1165
 
1166
+ Use this smaller page header when a full Header would consume too much space. Provide a concise title; this component has no action event.
1167
+
1108
1168
  Catalog key: `PageCondensedHeader`
1109
1169
  Builder: `PageCondensedHeader`
1110
1170
  Props type: `PageCondensedHeaderProps`
@@ -1128,6 +1188,8 @@ The standard wrapper for a page's main body area. Use PageContent for every page
1128
1188
 
1129
1189
  PageContent renders as Page.Content from Pebble Mobile. It fills the available page body, always lays out children vertically, and applies space400 padding on all sides by default. Use align for horizontal child alignment, select padding regions with the padding prop, or apply all safe-area insets with enableSafeArea.
1130
1190
 
1191
+ Put the page body in children. Padding and safe-area settings apply to the container; use gap for spacing between its vertical children.
1192
+
1131
1193
  Catalog key: `PageContent`
1132
1194
  Builder: `PageContent`
1133
1195
  Props type: `PageContentProps`
@@ -1150,6 +1212,8 @@ No additional properties.
1150
1212
 
1151
1213
  Page header with title, badge, and collapsible filter menu
1152
1214
 
1215
+ Use title and optional badge to summarize the active filter. Handle filterMenuPress to open the filter controls; the header does not own filter selection state.
1216
+
1153
1217
  Catalog key: `PageFilterHeader`
1154
1218
  Builder: `PageFilterHeader`
1155
1219
  Props type: `PageFilterHeaderProps`
@@ -1175,6 +1239,8 @@ A page-level footer displaying primary and secondary action buttons. Use with Pa
1175
1239
 
1176
1240
  PageFooter renders the Page.Footer component from Pebble Mobile. actions array items: { id, title, appearance?, disabled? }. All button presses emit "action".
1177
1241
 
1242
+ Each action needs a stable id and title. The action event identifies the pressed item so one footer can host multiple page actions.
1243
+
1178
1244
  Catalog key: `PageFooter`
1179
1245
  Builder: `PageFooter`
1180
1246
  Props type: `PageFooterProps`
@@ -1198,6 +1264,8 @@ A top-of-page header displaying a title, optional subtitle, and badge. Use with
1198
1264
 
1199
1265
  PageHeader renders the Page.Header component from Pebble Mobile. Use it only as page-level chrome; use AppBar for push-navigated screens that require back navigation and safe-area handling.
1200
1266
 
1267
+ Use this as page-level chrome with a title and optional badge. For navigated screens that need back behavior, use AppBar in the native screen shell.
1268
+
1201
1269
  Catalog key: `PageHeader`
1202
1270
  Builder: `PageHeader`
1203
1271
  Props type: `PageHeaderProps`
@@ -1221,6 +1289,8 @@ No additional properties.
1221
1289
 
1222
1290
  Sub-component of ModalSheet. Header with optional left/right action buttons; use inside ModalSheet
1223
1291
 
1292
+ Use title and optional subtitle above modal content supplied as children. Handle leftPress and rightPress separately for dismiss and primary actions.
1293
+
1224
1294
  Catalog key: `PageModalActionHeader`
1225
1295
  Builder: `PageModalActionHeader`
1226
1296
  Props type: `PageModalActionHeaderProps`
@@ -1247,6 +1317,8 @@ Password input with optional reveal toggle
1247
1317
 
1248
1318
  Password input with optional reveal toggle. `onChange` stores a string in state.
1249
1319
 
1320
+ Bind value to a string and keep the field marked sensitive when appropriate. The reveal control changes visibility locally; change still carries the password string.
1321
+
1250
1322
  Catalog key: `Password`
1251
1323
  Builder: `Password`
1252
1324
  Props type: `PasswordProps`
@@ -1262,7 +1334,7 @@ Events: `change`, `blur`
1262
1334
  | `clearable` | no | boolean | Shows a clear button when the field has a value. Default: false |
1263
1335
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
1264
1336
  | `disabled` | no | boolean | Disables the input. Default: false |
1265
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
1337
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
1266
1338
  | `helperText` | no | string | Help text shown below the input |
1267
1339
  | `label` | no | string | Label shown above the input |
1268
1340
  | `readOnly` | no | boolean | Shows value without allowing edits. Default: false |
@@ -1281,6 +1353,8 @@ Percentage input
1281
1353
 
1282
1354
  Percentage input. `onChange` stores a number string in state.
1283
1355
 
1356
+ Bind value to a numeric string and validate it as a percentage in the form. Change and blur follow the same field lifecycle as other text inputs.
1357
+
1284
1358
  Catalog key: `Percentage`
1285
1359
  Builder: `Percentage`
1286
1360
  Props type: `PercentageProps`
@@ -1297,7 +1371,7 @@ Events: `change`, `blur`
1297
1371
  | `decimalPlaces` | no | number | Number of decimal places allowed |
1298
1372
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
1299
1373
  | `disabled` | no | boolean | Disables the input. Default: false |
1300
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
1374
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
1301
1375
  | `helperText` | no | string | Help text shown below the input |
1302
1376
  | `label` | no | string | Label shown above the input |
1303
1377
  | `placeholder` | no | string | Placeholder text shown when the field is empty |
@@ -1316,6 +1390,8 @@ Phone number input with optional country code
1316
1390
 
1317
1391
  Phone number input with optional country code. `onChange` stores phone string in state.
1318
1392
 
1393
+ Bind value to a phone string. Set region for the expected calling code and validate the full value for the target locale.
1394
+
1319
1395
  Catalog key: `Phone`
1320
1396
  Builder: `Phone`
1321
1397
  Props type: `PhoneProps`
@@ -1330,7 +1406,7 @@ Events: `change`, `blur`
1330
1406
  | `checks` | no | [PhoneCheck](./types.md#phonecheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
1331
1407
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
1332
1408
  | `disabled` | no | boolean | Disables the input. Default: false |
1333
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
1409
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
1334
1410
  | `helperText` | no | string | Help text shown below the input |
1335
1411
  | `inputWithCountryCode` | no | boolean | If true, country code will be included as part of the value. Default: false |
1336
1412
  | `label` | no | string | Label shown above the input |
@@ -1351,6 +1427,8 @@ Tappable container that wraps any content
1351
1427
 
1352
1428
  Wrap any content to make it tappable. Wire the `press` event to handle taps.
1353
1429
 
1430
+ Wrap child elements to make their entire area tappable. Handle press for navigation or actions, and set disabled while an action cannot be repeated.
1431
+
1354
1432
  Catalog key: `Pressable`
1355
1433
  Builder: `Pressable`
1356
1434
  Props type: `PressableProps`
@@ -1376,6 +1454,8 @@ Horizontal progress bar showing completion percentage
1376
1454
 
1377
1455
  `value` is required and must be between 0 and `max` (default 100). Set `steps` > 1 for a segmented bar.
1378
1456
 
1457
+ Pass a value within the configured maximum. Use steps for segmented progress and keep the value synchronized with the underlying task.
1458
+
1379
1459
  Catalog key: `ProgressIndicator`
1380
1460
  Builder: `ProgressIndicator`
1381
1461
  Props type: `ProgressIndicatorProps`
@@ -1403,6 +1483,8 @@ Single radio button option with label
1403
1483
 
1404
1484
  Always prefer RadioGroup. A single Radio is almost never the right primitive — use Checkbox or Switch for a standalone boolean option, and RadioGroup for any set of mutually exclusive options. Never place multiple individual Radio components in a VStack or Card manually.
1405
1485
 
1486
+ Bind selected to the appropriate boolean or selection state only for a standalone choice. A related set belongs in RadioGroup so one value represents the selection.
1487
+
1406
1488
  Catalog key: `Radio`
1407
1489
  Builder: `Radio`
1408
1490
  Props type: `RadioProps`
@@ -1419,7 +1501,7 @@ Events: `change`, `blur`
1419
1501
  | `checks` | no | [RadioCheck](./types.md#radiocheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
1420
1502
  | `defaultValue` | no | boolean | Initial value for uncontrolled mode. Default: false |
1421
1503
  | `disabled` | no | boolean | Disables the radio button. Default: false |
1422
- | `error` | no | boolean \| string | Error state or error message |
1504
+ | `error` | no | unknown | Error state or error message |
1423
1505
  | `haptic` | no | boolean | Enables haptic feedback on selection. Default: true |
1424
1506
  | `helperText` | no | string | Help text shown below the radio group |
1425
1507
  | `label` | no | string | Label text shown beside the radio |
@@ -1439,6 +1521,8 @@ Group of radio buttons for single-selection from a list
1439
1521
 
1440
1522
  Preferred over multiple individual Radio components. Pass all options via the `options` array (each with `id` and `label`). Wrap in a Card for visual grouping. `onChange` stores the selected option id (string) to the bound state path.
1441
1523
 
1524
+ Bind value to one option ID. Give every option a stable unique ID and use change to react when the selected option changes.
1525
+
1442
1526
  Catalog key: `RadioGroup`
1443
1527
  Builder: `RadioGroup`
1444
1528
  Props type: `RadioGroupProps`
@@ -1451,7 +1535,7 @@ Events: `change`
1451
1535
  |---|---:|---|---|
1452
1536
  | `defaultValue` | no | string | Initial selected id for uncontrolled mode |
1453
1537
  | `disabled` | no | boolean | Disables all options. Default: false |
1454
- | `error` | no | boolean \| string | Error state or error message shown below the group |
1538
+ | `error` | no | unknown | Error state or error message shown below the group |
1455
1539
  | `helperText` | no | string | Help text shown below the group |
1456
1540
  | `options` | yes | [RadioGroupOption](./types.md#radiogroupoption)[] | Array of radio options: [{ id, label?, tag?, disabled? }] |
1457
1541
  | `testID` | no | string | Sets testid on RadioGroup (used for testing purposes) |
@@ -1465,6 +1549,8 @@ Search input field with clear and cancel controls
1465
1549
 
1466
1550
  `onChange` stores the query string to the bound state path. `cancel` event fires when the cancel button is pressed.
1467
1551
 
1552
+ Bind value to the query string. Change follows edits; cancel signals that the user left or cleared the search interaction.
1553
+
1468
1554
  Catalog key: `Search`
1469
1555
  Builder: `Search`
1470
1556
  Props type: `SearchProps`
@@ -1490,6 +1576,8 @@ No additional properties.
1490
1576
 
1491
1577
  Section divider label with configurable background
1492
1578
 
1579
+ Use label to introduce the content that follows. Keep the text concise; this heading has no interaction or state of its own.
1580
+
1493
1581
  Catalog key: `SectionHeader`
1494
1582
  Builder: `SectionHeader`
1495
1583
  Props type: `SectionHeaderProps`
@@ -1513,6 +1601,8 @@ Dropdown picker input with a searchable action sheet
1513
1601
 
1514
1602
  `onChange` stores the selected option id to the bound state path. For multi-select set `multiple: true` — state becomes a string[]. `options` must have unique `id` values.
1515
1603
 
1604
+ Bind value to an option ID, or to an array of IDs with multiple enabled. Searchable only changes picker navigation; it does not alter the shape of selected state.
1605
+
1516
1606
  Catalog key: `Select`
1517
1607
  Builder: `Select`
1518
1608
  Props type: `SelectProps`
@@ -1528,7 +1618,7 @@ Events: `change`
1528
1618
  | `defaultValue` | no | string | Default selected option id for uncontrolled mode |
1529
1619
  | `descriptionNumberOfLines` | no | number | Max lines for option description text in the picker. Default: 1 |
1530
1620
  | `disabled` | no | boolean | Disables the select input. Default: false |
1531
- | `error` | no | boolean \| string | Error state or error message |
1621
+ | `error` | no | unknown | Error state or error message |
1532
1622
  | `helperText` | no | string | Help text shown below the select input |
1533
1623
  | `hideDismissButton` | no | boolean | Hides the dismiss button in the picker sheet header. Default: false |
1534
1624
  | `label` | yes | string | Label shown above the select input |
@@ -1552,6 +1642,8 @@ Chip-based multi-select or single-select input
1552
1642
 
1553
1643
  Chip-based selection. options must be [{id, label}]. onChange stores selected id (single) or id[] (multiple) in state.
1554
1644
 
1645
+ Use chips for a compact multi-selection control. Bind the selected values to state and handle change when the set changes.
1646
+
1555
1647
  Catalog key: `SelectChips`
1556
1648
  Builder: `SelectChips`
1557
1649
  Props type: `SelectChipsProps`
@@ -1564,7 +1656,7 @@ Events: `change`
1564
1656
  |---|---:|---|---|
1565
1657
  | `defaultValue` | no | string \| string[] | Initial value for uncontrolled mode |
1566
1658
  | `disabled` | no | boolean | Disables the chips. Default: false |
1567
- | `error` | no | string \| boolean | Error state or error message |
1659
+ | `error` | no | unknown | Error state or error message |
1568
1660
  | `helperText` | no | string | Help text shown below the chips |
1569
1661
  | `multiple` | no | boolean | Allow multiple selection. Default: true |
1570
1662
  | `options` | yes | [SelectChipsOption](./types.md#selectchipsoption)[] | Array of selectable chip options |
@@ -1593,7 +1685,7 @@ Events: `change`
1593
1685
  |---|---:|---|---|
1594
1686
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
1595
1687
  | `disabled` | no | boolean | Disables the input. Default: false |
1596
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
1688
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
1597
1689
  | `readOnly` | no | boolean | Shows value without allowing edits. Default: false |
1598
1690
  | `required` | no | boolean | Marks the field as required. Default: false |
1599
1691
  | `testID` | no | string | Sets testid on InputSignature (used for testing purposes) |
@@ -1607,6 +1699,8 @@ Masked Social Insurance Number input
1607
1699
 
1608
1700
  Masked Social Insurance Number input. `onChange` stores the SIN string in state.
1609
1701
 
1702
+ Bind value to the entered SIN string; preserve leading zeros. Use change for state updates and blur for validation after entry.
1703
+
1610
1704
  Catalog key: `Sin`
1611
1705
  Builder: `Sin`
1612
1706
  Props type: `SinProps`
@@ -1621,7 +1715,7 @@ Events: `change`, `blur`
1621
1715
  | `checks` | no | [SinCheck](./types.md#sincheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
1622
1716
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
1623
1717
  | `disabled` | no | boolean | Disables the input. Default: false |
1624
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
1718
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
1625
1719
  | `helperText` | no | string | Help text shown below the input |
1626
1720
  | `label` | no | string | Label shown above the input |
1627
1721
  | `placeholder` | no | string | Placeholder text shown when the field is empty |
@@ -1640,6 +1734,8 @@ Draggable range slider for numeric input
1640
1734
 
1641
1735
  `onChange` stores the numeric value to the bound state path.
1642
1736
 
1737
+ Bind value to a number within min and max. Handle change for user movement and choose a range that matches the task precision.
1738
+
1643
1739
  Catalog key: `Slider`
1644
1740
  Builder: `Slider`
1645
1741
  Props type: `SliderProps`
@@ -1669,6 +1765,8 @@ Dual-handle range slider for selecting a numeric range
1669
1765
 
1670
1766
  Dual-handle range slider. onChange stores [number, number] in state.
1671
1767
 
1768
+ Bind value to a two-number array ordered from lower to upper handle. Min and max constrain the full range; change reports both values.
1769
+
1672
1770
  Catalog key: `SliderRange`
1673
1771
  Builder: `SliderRange`
1674
1772
  Props type: `SliderRangeProps`
@@ -1696,6 +1794,8 @@ No additional properties.
1696
1794
 
1697
1795
  Inline notification banner with optional action button and auto-dismiss
1698
1796
 
1797
+ Use message for brief feedback. Handle action for an optional follow-up and dismiss to clear the host state that displays the snackbar.
1798
+
1699
1799
  Catalog key: `SnackBar`
1700
1800
  Builder: `SnackBar`
1701
1801
  Props type: `SnackBarProps`
@@ -1738,6 +1838,8 @@ No additional properties.
1738
1838
 
1739
1839
  Animated loading indicator
1740
1840
 
1841
+ Use title to give loading context and size to fit the surrounding layout. windowCentered positions the indicator in its parent; the spinner has no completion event.
1842
+
1741
1843
  Catalog key: `Spinner`
1742
1844
  Builder: `Spinner`
1743
1845
  Props type: `SpinnerProps`
@@ -1763,6 +1865,8 @@ Masked Social Security Number input
1763
1865
 
1764
1866
  Masked Social Security Number input. `onChange` stores the SSN string in state.
1765
1867
 
1868
+ Bind value to the entered SSN string so leading zeros remain intact. Validate on blur when the user has finished entering the masked value.
1869
+
1766
1870
  Catalog key: `Ssn`
1767
1871
  Builder: `Ssn`
1768
1872
  Props type: `SsnProps`
@@ -1777,7 +1881,7 @@ Events: `change`, `blur`
1777
1881
  | `checks` | no | [SsnCheck](./types.md#ssncheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
1778
1882
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
1779
1883
  | `disabled` | no | boolean | Disables the input. Default: false |
1780
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
1884
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
1781
1885
  | `helperText` | no | string | Help text shown below the input |
1782
1886
  | `label` | no | string | Label shown above the input |
1783
1887
  | `placeholder` | no | string | Placeholder text shown when the field is empty |
@@ -1794,6 +1898,8 @@ No additional properties.
1794
1898
 
1795
1899
  Pill-shaped status indicator with colored appearance
1796
1900
 
1901
+ Use label and appearance to show a compact semantic state. This is a display-only indicator, so update its props when the underlying status changes.
1902
+
1797
1903
  Catalog key: `Status`
1798
1904
  Builder: `Status`
1799
1905
  Props type: `StatusProps`
@@ -1815,6 +1921,8 @@ No additional properties.
1815
1921
 
1816
1922
  Sets the native status bar style. Renders no visible UI — place once near the top of a screen.
1817
1923
 
1924
+ Use this component to configure native status-bar appearance for the current screen. Keep its theme consistent with the page chrome; it renders no visible content in the element tree.
1925
+
1818
1926
  Catalog key: `StatusBar`
1819
1927
  Builder: `StatusBar`
1820
1928
  Props type: `StatusBarProps`
@@ -1836,6 +1944,8 @@ Toggle switch for boolean on/off input
1836
1944
 
1837
1945
  `onChange` stores the boolean value to the bound state path. `change` event fires after each toggle.
1838
1946
 
1947
+ Bind value to a boolean. Change runs after a user toggle; use disabled or readOnly when the setting should remain visible without being editable.
1948
+
1839
1949
  Catalog key: `Switch`
1840
1950
  Builder: `Switch`
1841
1951
  Props type: `SwitchProps`
@@ -1862,6 +1972,8 @@ Tab navigation switcher for toggling between views
1862
1972
 
1863
1973
  `onChange` stores the selected tab `id` string to the bound state path. Tab content is rendered externally — use conditional rendering in sibling elements based on the active state. `items` must have unique `id` values.
1864
1974
 
1975
+ Provide stable IDs and titles for each tab. Bind value to the active tab ID and handle change to update the content shown beneath the tabs.
1976
+
1865
1977
  Catalog key: `Tabs`
1866
1978
  Builder: `Tabs`
1867
1979
  Props type: `TabsProps`
@@ -1889,6 +2001,8 @@ Typography primitive using Pebble typestyle tokens
1889
2001
 
1890
2002
  Renders text with Pebble typestyle tokens. Pass typestyle and color as top-level props, or supply typography via the style prop as a plain object or array of typestyle token keys and/or style overrides — later style entries win and override matching top-level typestyle or color values. Style values may be token keys (e.g. colorOnSurface, space200) or literals. ellipsizeMode only takes effect when numberOfLines is set. In style objects, textShadowOffsetWidth and textShadowOffsetHeight combine into textShadowOffset: {width, height}.
1891
2003
 
2004
+ Use text for plain content and typestyle tokens for hierarchy. Set numberOfLines with ellipsizeMode when truncation is required.
2005
+
1892
2006
  Catalog key: `Text`
1893
2007
  Builder: `Text`
1894
2008
  Props type: `TextProps`
@@ -1919,6 +2033,8 @@ Multi-line text input field
1919
2033
 
1920
2034
  `onChange` stores the string value to the bound state path. Use `checks` + `validateOn` for inline validation.
1921
2035
 
2036
+ Bind value to a string for longer free-form text. Use helperText or error for constraints and blur for validation after editing.
2037
+
1922
2038
  Catalog key: `Textarea`
1923
2039
  Builder: `Textarea`
1924
2040
  Props type: `TextareaProps`
@@ -1933,7 +2049,7 @@ Events: `change`, `blur`
1933
2049
  | `checks` | no | [TextareaCheck](./types.md#textareacheck)[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set |
1934
2050
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
1935
2051
  | `disabled` | no | boolean | Disables the textarea. Default: false |
1936
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
2052
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
1937
2053
  | `height` | no | number | Fixed height of the textarea in points |
1938
2054
  | `helperText` | no | string | Help text shown below the textarea |
1939
2055
  | `label` | no | string | Label shown above the textarea |
@@ -1964,7 +2080,7 @@ Events: `change`, `blur`
1964
2080
  |---|---:|---|---|
1965
2081
  | `defaultValue` | no | string | Default ISO time string for uncontrolled mode |
1966
2082
  | `disabled` | no | boolean | Disables the time input. Default: false |
1967
- | `error` | no | string \| boolean | Error state or error message |
2083
+ | `error` | no | unknown | Error state or error message |
1968
2084
  | `format` | no | [TimeFormat](./definitions.md#timeformat) | Time format. Default: isoString |
1969
2085
  | `helperText` | no | string | Help text shown below the time input |
1970
2086
  | `label` | yes | string | Label shown above the time input |
@@ -2009,6 +2125,8 @@ No additional properties.
2009
2125
 
2010
2126
  Informational tip block with a title, description, and optional children content
2011
2127
 
2128
+ Use title and description for short supporting guidance. Children can hold richer supplementary content when a plain description is insufficient.
2129
+
2012
2130
  Catalog key: `Tip`
2013
2131
  Builder: `Tip`
2014
2132
  Props type: `TipProps`
@@ -2031,6 +2149,8 @@ Vertical flex column container
2031
2149
 
2032
2150
  Lays children out vertically. By default, VStack wraps its content (shrinks to fit children). Use `width: "sizeFull"` to stretch and fill the available width. Use `gap` for spacing between items.
2033
2151
 
2152
+ Add children in reading order. Gap controls vertical spacing, while align and width determine how items fit within the available space.
2153
+
2034
2154
  Catalog key: `VStack`
2035
2155
  Builder: `VStack`
2036
2156
  Props type: `VStackProps`
@@ -2091,6 +2211,8 @@ Card-like widget with a title, body content, and optional action buttons
2091
2211
 
2092
2212
  Pass children for body content. Use isLoading to show shimmer placeholders. Wire the `press` event when the entire widget card should be tappable.
2093
2213
 
2214
+ Place body content in children and use isLoading while data is pending. The card press, titlePress, primaryAction, and secondaryAction events represent distinct tap targets.
2215
+
2094
2216
  Catalog key: `Widget`
2095
2217
  Builder: `Widget`
2096
2218
  Props type: `WidgetProps`
@@ -2121,6 +2243,8 @@ Email text input that validates work email format
2121
2243
 
2122
2244
  Work email input. When `domainList` is set, the user types a username and selects a company domain. `onChange` stores the full email string in state.
2123
2245
 
2246
+ Bind value to the full email string. When domainList is supplied, the user enters the local part and chooses a company domain; change emits the combined value.
2247
+
2124
2248
  Catalog key: `WorkEmail`
2125
2249
  Builder: `WorkEmail`
2126
2250
  Props type: `WorkEmailProps`
@@ -2137,7 +2261,7 @@ Events: `change`, `blur`
2137
2261
  | `defaultValue` | no | string | Initial value for uncontrolled mode |
2138
2262
  | `disabled` | no | boolean | Disables the input. Default: false |
2139
2263
  | `domainList` | no | string \| string \| [DomainList](./types.md#domainlist) \| [DomainListVariant2](./types.md#domainlistvariant2)[] | Allowed domains. When set, the user types only the username and picks a domain. |
2140
- | `error` | no | boolean \| string | Error state — true for generic error highlight, string for error message |
2264
+ | `error` | no | unknown | Error state — true for generic error highlight, string for error message |
2141
2265
  | `helperText` | no | string | Help text shown below the input |
2142
2266
  | `label` | no | string | Label shown above the input |
2143
2267
  | `placeholder` | no | string | Placeholder text shown when the field is empty |