Overview
This catalog lists every component in the web custom-apps catalog—the Rippling UI building blocks you use inside a web SDUI spec. Search and filter below, then expand an entry for props, events, notes, and examples.
- Props — Fields passed in
props. Required props are marked with *. - Events — Interactions wired via
on(e.g.on: { press: action }). Leaf components such asTexthave no events.
See Component configuration for spec fields (id, props, visible, repeat, on, children).
Placeholder for states like empty, success, error, and loading, featuring animations, icons, text, and action buttons.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
caption * | string | number | Card caption/description text | - |
alignment | "LEFT" | "CENTER" | "RIGHT" | Content alignment within the card. | CENTER |
animation | "ADD" | "AIRPLANE" | "BAR_CHART_DECREASE" | "BAR_CHART_INCREASE" | "BRAIN" | "BRAIN_AI" | "CALENDAR" | "CHECK_MARK" | ... (47 values) | Lottie animation name to display as the card asset instead of an icon | - |
icon | string | Icon type string from Icon.TYPES for the card asset | - |
iconColor | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Pebble text/icon color token | - |
padding | object | Override container padding per side using Pebble spacing tokens | - |
primaryAction | object | Primary action button configuration | - |
secondaryAction | object | Secondary action button configuration | - |
shouldShowAsset | boolean | Show the icon/animation asset. | true |
title | string | Card title text | - |
Events
pressPrimarypressSecondary
Notes
- primaryAction and secondaryAction create action buttons. Bind pressPrimary and pressSecondary events to handle clicks. Use animation instead of icon to show a Lottie animation as the card asset. Padding accepts top/right/bottom/left Pebble spacing tokens.
Example props
{
"caption": "Set up your company profile to begin onboarding.",
"icon": "ARROW_RIGHT",
"primaryAction": {
"title": "Start Setup"
},
"title": "Get Started"
}
Branded Rippling AI icon used to indicate AI-powered features or content. Displays the Rippling AI star icon with optional "Rippling AI" label text.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-label | string | Accessible label for the icon | - |
showText | boolean | Whether to show the "Rippling AI" text alongside the icon. | true |
size | "SMALL" | "MEDIUM" | "LARGE" | Size of the AI icon. One of: SMALL, MEDIUM, LARGE. | MEDIUM |
Events
No events.
Notes
- AiIcon wraps Atoms.AiIcon from Pebble. It renders the Rippling AI star icon with optional accompanying text. Use size to control the icon scale (SMALL, MEDIUM, LARGE). Set showText to false to render only the icon without the "Rippling AI" label.
Example props
{
"showText": true,
"size": "MEDIUM"
}
A persistent, high-priority notice that conveys critical information (errors, warnings, success confirmations, or informational messages) and guides users to proceed or resolve issues. Appears with page content and remains visible until dismissed or resolved. Use for system-level or page-level messaging, not for ephemeral feedback (use SnackBar instead) or for interruptions requiring immediate input (use Modal instead).
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
description | string | Main description content to display in the alert | - |
isCloseable | boolean | Shows close button when true. | false |
isFluid | boolean | If true, the alert takes full width of its container. | false |
primaryAction | object | Primary action button configuration | - |
secondaryAction | object | Secondary action button configuration | - |
title | string | Alert title text displayed above the message | - |
type | "Info" | "Success" | "Warning" | "Error" | "Neutral" | Alert type determining color and icon. | Info |
Events
dismisspressPrimarypressSecondary
Notes
- primaryAction and secondaryAction create action buttons. Bind pressPrimary and pressSecondary events to handle clicks. Use isCloseable with the dismiss event to handle close actions.
Example props
{
"description": "Your changes have been saved successfully.",
"isCloseable": true,
"primaryAction": {
"title": "View Details"
},
"title": "Information",
"type": "Info"
}
Renders pre-built Lottie animations from a curated library. Each animation type maps to an SVG animation that plays on mount. Use for empty states, onboarding flows, status illustrations, and feature highlights.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
type * | "ADD" | "AIRPLANE" | "BAR_CHART_DECREASE" | "BAR_CHART_INCREASE" | "BRAIN" | "BRAIN_AI" | "CALENDAR" | "CHECK_MARK" | ... (47 values) | The animation type to render from the pre-built library | - |
Events
No events.
Notes
- Wrap in a container with explicit height and width to control animation size. Animations play automatically on mount.
Example props
{
"type": "DOCUMENT"
}
A full-screen error state placeholder for API or server failures, displaying an animated exclamation icon and an error message. Use when an API call fails and the entire content area should show an error instead of the expected content.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
fixedWindowCentered | boolean | Positions the error component fixed in the center of the browser viewport. | false |
message | string | Custom error message to display. | i18n fallback message |
windowCentered | boolean | Positions the error component absolutely in the center of the nearest positioned parent container. | false |
Events
No events.
Notes
- ApiError displays a full-screen error state with an animated exclamation mark icon and an error message. Use message to provide a custom error description; omit it to show the default i18n fallback. Use windowCentered to center within a relative-positioned parent, or fixedWindowCentered to center in the browser viewport.
Example props
{
"message": "Something went wrong. Please try again."
}
A skeleton placeholder shown while app group content is loading. Use when the layout of the app group area is known and you want to reduce perceived loading time and prevent layout shift.
Accepts children: No
Props
No props.
Events
No events.
Notes
- AppGroupLoader displays a skeleton loading state for app group content. It renders a content loader with a fixed 610x130 viewport.
A multi-select dropdown for choosing multiple options from grouped categories, with app-group styling. Use when users need to pick several items organized into labeled groups (e.g. apps by category). For single selection or ungrouped options, use Select instead.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this select | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this select | - |
canClear | boolean | Show clear button to deselect all | - |
canSelectAll | boolean | Show select-all toggle | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
creatable | boolean | Allow creating new options not in the list | - |
defaultSearchQuery | string | Initial search input value | - |
dropdownHeight | number | Sets dropdown menu height in pixels | - |
emptyListPlaceholder | string | object | Placeholder when dropdown list is empty. Can be string or object with state-specific placeholders | - |
footer | object | Fixed footer at bottom of dropdown menu | - |
fuseOptions | object | Fuse.js search options for customizing fuzzy search behavior | - |
id | string | HTML id attribute for the select input | - |
isDisabled | boolean | Disables the select | - |
isMenuDefaultOpen | boolean | If true, dropdown menu will be open by default | - |
isPositionFixed | boolean | Position dropdown relative to viewport instead of parent | - |
isReadOnly | boolean | Makes the select read-only | - |
isRequired | boolean | Marks the field as required | - |
isSearchable | boolean | Enable type-to-search filtering | - |
label | string | Label text above the select | - |
list | object | object[] | Array of options or grouped options. Supports flat list or nested groups with label and list properties | - |
maxHeight | string | number | Max height of multi-select container (CSS value) | - |
maxTruncationLines | number | Max rows of chips visible before "+X" overflow chip appears | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
placement | "auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | ... (15 values) | Dropdown position relative to input. | bottom-start |
rows | number | Minimum number of rows to show | - |
scrollThreshold | number | Extra pixels to render above/below viewport for smoother scrolling (pagination mode) | - |
selectedOptionsModalClassName | string | CSS class for the modal showing all selected options (+X chip) | - |
shouldFocusFirstElement | boolean | Auto-focus first menu item when dropdown opens | - |
shouldShowSearchIcon | boolean | Show search icon prefix when isSearchable is true | - |
shouldUsePortal | boolean | Render dropdown in a React Portal. | false |
size | "XS" | "S" | "M" | "L" | Select input size variant. | M |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | unknown | unknown[] | Currently selected value(s) bound to state. Always an array in multi-select mode | - |
Events
blurchangefocusmenuTogglepaste
Notes
- AppGroupSelect is a specialized multi-select variant designed for app group selection. It automatically sets isMulti=true, isAppGroup=true, and theme=TRANSPARENT_BORDER. onChange stores an array of selected values in state (multi-select only). List supports grouped structure with label and list properties for categorizing options. List items also support rich metadata: secondaryLabel/tertiaryLabel/quaternaryLabel for multi-line text, leftIconType/labelIcon for icons (use Icon.TYPES glyph names like 'CHECK_CIRCLE_OUTLINE'), avatarProps for user options, flag for country codes, isRecommended for badges, isSeparator for dividers. onMenuToggle emits 'menuToggle' event when dropdown opens/closes. Footer onClick emits the custom event name specified in footer.onClick.
Example props
{
"name": "apps",
"label": "Select Applications",
"list": [
{
"label": "Productivity",
"list": [
{
"label": "Google Drive",
"value": "drive"
},
{
"label": "Dropbox",
"value": "dropbox"
}
]
},
{
"label": "Communication",
"list": [
{
"label": "Slack",
"value": "slack"
},
{
"label": "Zoom",
"value": "zoom"
}
]
}
],
"placeholder": "Choose apps",
"value": {
"$bindState": "/form/selectedApps"
}
}
Application navigation bar with optional routing. Displays a header without tabs when links are omitted or empty. With links, it displays a horizontal tab bar or vertical sidebar with icons, badges, and optional nested sub-navigation.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
actionClickedId | string | Stores the id of the clicked action button. Bind to state to access in the action event handler | - |
actions | object[] | Array of action buttons displayed in the nav bar. Each emits an action event with its id | - |
activeUrl | string | The currently active URL path. Use $bindState to two-way bind this to state — the value updates automatically when the user clicks a nav item. | - |
baseURL | string | Base URL prefix prepended to all link paths | - |
isLogoRound | boolean | If true, logo has rounded corners | - |
isVertical | boolean | If true, renders a vertical sidebar navigation instead of horizontal tabs | - |
links | AppNavBarNavItem[] | Navigation items. Omit or pass an empty array to render the header without tabs | - |
logoUrl | string | URL for a logo image in the header area | - |
shouldPersistQueryParams | boolean | If true, existing query parameters are preserved across navigation | - |
size | number | Fixed width in pixels for horizontal layout. 0 or omitted for fluid width | - |
subtitle | string | Subtitle text below the title | - |
supportLink | string | URL for a support/help link | - |
theme | "BOX" | "NO_PADDING" | "BOX_HEADER" | Visual theme: BOX (default with border), NO_PADDING (no padding), BOX_HEADER (border on header only) | - |
title | string | Title displayed in the nav bar header area | - |
Events
actionnavigate
Notes
- Slots:
default. - AppNavBar renders a navigation bar using Tabs.LINK internally. Links can be flat or nested (via the links field on each nav item). In vertical mode, items with isSection: true render as non-interactive section headers. Use $bindState on activeUrl to two-way bind the active tab path to state — it updates automatically when the user clicks a nav item. Use baseURL to prefix all paths. Use theme to control padding and borders.Omit links or pass an empty array to render the title, actions, and children without a tab list
Example props
{
"activeUrl": {
"$bindState": "/activeTab"
},
"links": [
{
"icon": "HOME_OUTLINE",
"path": "/dashboard",
"size": 160,
"title": "Dashboard"
},
{
"icon": "GEAR_OUTLINE",
"path": "/settings",
"title": "Settings"
},
{
"icon": "PERSON_OUTLINE",
"path": "/profile",
"title": "Profile"
}
],
"title": "My App"
}
A horizontal rule that visually divides sections of content, with optional centered text (e.g. "OR"). Use for content separation — use Divider for separating individual list items.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
text | string | Optional text displayed in the center of the separator | - |
theme | "DASHED" | Separator line style. Omit for solid | - |
Events
No events.
Example props
{
"elements": {
"sep": {
"children": [],
"props": {
"text": "OR"
},
"type": "AtomsSeparator"
}
},
"root": "sep",
"state": {}
}
A visual representation of an entity, such as a user, organization, or product. Use circular shape (isRounded=true) for people and rounded square (isRounded=false) for non-human entities like organizations or brands.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
appearance | "NEUTRAL_LIGHT" | "NEUTRAL_DARK" | "PRIMARY_LIGHT" | "PRIMARY_DARK" | "INFO_LIGHT" | "INFO_DARK" | "ERROR_LIGHT" | "ERROR_DARK" | ... (12 values) | Color appearance variant for background/text | - |
aria-label | string | Accessible label for the avatar | - |
aria-labelledby | string | ID of element that labels the avatar | - |
aria-role | string | ARIA role for the avatar element | - |
badge | object | Badge overlay configuration for the avatar | - |
caption | string | Secondary text shown below the title | - |
flagCountryCode | string | ISO country code (e.g. US, IN) to show a flag overlay on the avatar | - |
icon | string | object | Icon name from Icon.TYPES (e.g. EDIT_OUTLINE) or { type, color?, backgroundColor? } when type is ICON | - |
image | string | Image URL for the avatar | - |
imageBackground | "colorPrimary" | "colorSecondary" | "colorTertiary" | "colorPrimaryContainer" | "colorSecondaryContainer" | "colorTertiaryContainer" | "colorError" | "colorErrorContainer" | ... (33 values) | Surface color token behind the avatar image | - |
isCompact | boolean | Compact mode hides title and caption. | false |
isRounded | boolean | Fully rounded (circle) shape. | true |
logo | "amplitude" | "asana" | "ashby" | "atlassian" | "bitrise" | "box" | "buildkite" | "cloudflare" | ... (62 values) | Logo id from Avatar.LOGOS when type is LOGO | - |
placeholderIcon | string | object | Placeholder icon for LOGO avatars while loading or if the logo cannot be shown. Defaults to IMAGE_OUTLINE | - |
size | 24 | 32 | 40 | 56 | 64 | Avatar size in pixels. One of: 24, 32, 40, 56, 64. | 40 |
surfaceColor | "colorPrimary" | "colorSecondary" | "colorTertiary" | "colorPrimaryContainer" | "colorSecondaryContainer" | "colorTertiaryContainer" | "colorError" | "colorErrorContainer" | ... (33 values) | Surface color for flag background. Pebble color token. Required with flagCountryCode | - |
tip | object | Tooltip shown on avatar hover. Object with content string and optional title | - |
title | string | Display name shown below or beside the avatar | - |
to | string | object | Navigation destination. String URL or { path, openInNewTab? }. Use instead of click event if click is just for navigation | - |
truncate | boolean | Truncate title and caption with ellipsis. | true |
type | "USER" | "ICON" | "TEXT" | "NUMBER" | "RIPPLING" | "LOGO" | Avatar content type. | USER |
Events
press
Notes
- Type semantics: USER is the default for people (shows image or initials fallback). TEXT shows first+last initials from title. ICON displays a specified icon to represent an entity. LOGO renders a known brand from Avatar.LOGOS and falls back to an icon placeholder while loading or on failure. NUMBER indicates overflow count in avatar lists. RIPPLING is the dedicated Rippling brand path. Badge and flag are mutually exclusive — use either badge or flagCountryCode, not both. When using flagCountryCode, surfaceColor is required. tip.content accepts a plain string for tooltip text shown on hover.
Example props
{
"image": "https://i.pravatar.cc/150",
"size": 56,
"title": "Jane Doe",
"type": "USER"
}
Displays a list of avatars with a configurable maximum limit that automatically truncates with a number indicating the remaining entities. Use to represent a group of people or organizations.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes the avatar list | - |
aria-label | string | Accessible label for the avatar list | - |
aria-labelledby | string | ID of element that labels the avatar list | - |
isRounded | boolean | If false, avatars render as rounded squares | - |
limit | number | Maximum number of avatars to display before +N overflow | - |
logo | "amplitude" | "asana" | "ashby" | "atlassian" | "bitrise" | "box" | "buildkite" | "cloudflare" | ... (62 values) | Shared logo id for list-level LOGO avatars. Prefer roles[].avatar.logo when entries differ | - |
modalTitle | string | Title of the modal shown when clicking overflow | - |
roles | object[] | Array of role/person objects for avatars | - |
size | 24 | 32 | 40 | 56 | 64 | Avatar size in pixels. One of: 24, 32, 40, 56, 64. | 40 |
totalCount | number | Total count for overflow indicator | - |
type | "USER" | "ICON" | "TEXT" | "NUMBER" | "RIPPLING" | "LOGO" | Avatar content type | - |
Events
No events.
Notes
- Shows up to limit avatars with a +N overflow badge. Clicking overflow opens a modal listing all roles.
Example props
{
"limit": 3,
"modalTitle": "Team Members",
"roles": [
{
"fullName": "Jane Doe",
"image": "https://i.pravatar.cc/40?u=1"
},
{
"fullName": "John Smith",
"image": "https://i.pravatar.cc/40?u=2"
},
{
"fullName": "Alice Johnson"
},
{
"fullName": "Bob Williams"
},
{
"fullName": "Carol Davis"
}
],
"size": 40
}
A static indicator for displaying notifications, counts, or numerical status information. Use for unread counts, pending items, and quantity metrics — not for categories (use Label) or actions (use Button).
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
text * | string | Text content to display in the badge. Required. | - |
appearance | "INFO_DARK" | "INFO_LIGHT" | "ERROR_DARK" | "ERROR_LIGHT" | "PRIMARY_DARK" | "PRIMARY_LIGHT" | "SUCCESS_DARK" | "SUCCESS_LIGHT" | ... (12 values) | Visual appearance variant (INFO_DARK, SUCCESS_DARK, etc.). | INFO_DARK |
aria-hidden | boolean | Hide badge from screen readers | - |
aria-label | string | Accessibility label for screen readers | - |
size | "EXTRA_SMALL" | "SMALL" | "MEDIUM" | "LARGE" | Size of the badge. One of: EXTRA_SMALL, SMALL, MEDIUM, LARGE. | SMALL |
tip | object | Tooltip configuration to show on hover | - |
Events
No events.
Notes
- Badge displays small status indicators or notification counts. Use tip to add hover tooltips. The component returns null if text is empty. Badge is a leaf component — it cannot contain children. When repeating multiple badges, use a layout container (e.g. HStack) as the repeat element with Badge elements as children.
Example props
{
"appearance": "INFO_DARK",
"size": "SMALL",
"text": "3",
"tip": {
"content": "Notification count",
"placement": "top"
}
}
A general-purpose flexbox layout container with full control over direction, alignment, spacing, dimensions, styling, and responsive direction switching via container queries. Use Box when you need fine-grained CSS control (custom dimensions, borders, backgrounds, positioning, responsive breakpoints) beyond what VStack/HStack provide. Prefer VStack or HStack for simple vertical or horizontal stacking with token-based spacing.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
align | string | Align items on cross axis. CSS align-items value (e.g., "center", "flex-start") | - |
alignSelf | string | Align this child on cross axis. CSS align-self value (e.g., "center", "flex-end") | - |
aria-describedby | string | ID of element that describes this Box | - |
aria-disabled | boolean | Marks this Box as disabled for assistive technology | - |
aria-hidden | boolean | Hide this Box from assistive technology | - |
aria-label | string | Accessible label | - |
aria-labelledby | string | ID of element that labels this Box | - |
backgroundColor | "colorPrimary" | "colorSecondary" | "colorTertiary" | "colorPrimaryContainer" | "colorSecondaryContainer" | "colorTertiaryContainer" | "colorError" | "colorErrorContainer" | ... (33 values) | Background surface color token | - |
basis | number | string | Flex basis value. Number (pixels) or CSS string | - |
border | string | object | object | Border value. CSS string, strict token parts, or directional border object | - |
boxSizing | string | CSS box-sizing value. "content-box" or "border-box". | content-box |
changeDirectionAbove | number | Breakpoint in pixels at which to reverse flex direction. Uses container queries. Requires container prop for named containers | - |
child | boolean | Whether this Box is a flex child. Changes display to initial | - |
color | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Text/icon color token | - |
container | boolean | string | Container query target. true for unnamed container, string for named container. Used with changeDirectionAbove | - |
containerType | string | CSS container-type value. Defines the element as a query container | - |
direction | string | Flex direction. CSS flex-direction value (e.g., "row", "column") | - |
flex | string | CSS flex shorthand (e.g., "1", "0 1 auto") | - |
gap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Gap between flex children. Spacing token or {row, column} spacing-token object | - |
grow | number | string | Flex grow factor. Number value | - |
height | number | string | Height value. Number (pixels) or CSS string (e.g., "100px", "50%") | - |
id | string | HTML id attribute | - |
inset | number | string | Offsets a positioned Box on all sides. Number (pixels) or CSS string | - |
isInline | boolean | Use inline-flex instead of flex. | false |
justify | string | Justify content on main axis. CSS justify-content value (e.g., "center", "space-between") | - |
margin | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Margin value. Spacing token or {top, right, bottom, left} spacing-token object | - |
maxHeight | number | string | Maximum height value. Number (pixels) or CSS string | - |
maxWidth | number | string | Maximum width value. Number (pixels) or CSS string | - |
minHeight | number | string | Minimum height value. Number (pixels) or CSS string | - |
minWidth | number | string | Minimum width value. Number (pixels) or CSS string | - |
overflow | string | CSS overflow value (e.g., "hidden", "auto", "scroll") | - |
padding | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Padding value. Spacing token or {top, right, bottom, left} spacing-token object | - |
pointerEvents | string | CSS pointer-events value controlling whether the Box receives pointer input | - |
position | string | CSS position value (e.g., "relative", "absolute", "fixed") | - |
radius | "shapeCornerNone" | "shapeCornerXs" | "shapeCornerSm" | "shapeCornerMd" | "shapeCornerLg" | "shapeCornerXl" | "shapeCorner2xl" | "shapeCorner3xl" | ... (10 values) | object | Border radius. Radius token or {topLeft, topRight, bottomLeft, bottomRight} radius-token object | - |
reverse | boolean | Reverse the flex direction. Combines with direction prop | - |
role | string | ARIA role attribute | - |
shrink | number | string | Flex shrink factor. Number value | - |
width | number | string | Width value. Number (pixels) or CSS string (e.g., "200px", "100%") | - |
wrap | string | Flex wrap behavior. CSS flex-wrap value (e.g., "wrap", "nowrap") | - |
zIndex | number | string | Z-index stacking order. Number value | - |
Events
No events.
Notes
- Slots:
default. - Box is a flexible layout container built on CSS flexbox. It provides extensive styling controls via props that map directly to CSS properties. Layout behavior: - Default display: flex - Use isInline for inline-flex - Supports all flexbox properties (direction, align, justify, wrap, gap) - Children can be controlled via flex child props (flex, grow, shrink, basis) Responsive behavior: - changeDirectionAbove: Switch flex direction at a breakpoint using container queries - container: Target container for responsive queries (true for unnamed, string for named) - Example: direction="row" + changeDirectionAbove={768} switches to column at 768px+ Styling: - All CSS box model properties supported (padding, margin, border) - Dimensions (width, height, min/max variants) - Colors (backgroundColor, color) - Border radius (uniform or per-corner) - Positioned layers can use inset and pointerEvents to control placement and hit testing - Dimension props support both number (pixels) and string (CSS) values - containerType can define the Box as a CSS query container Complex prop formats: - padding/margin/gap/radius: Use strict spacing or radius token names, or object forms with token values - border: Can be string or object with top/right/bottom/left - Number values on dimension props automatically get 'px' suffix Native props: - Supports id, role, aria-label, aria-labelledby, aria-describedby, aria-hidden, and aria-disabled
Example props
{
"elements": {
"box": {
"children": [
"boxItem1",
"boxItem2",
"boxItem3"
],
"props": {
"backgroundColor": "colorSurface",
"border": "1px solid var(--color-outline)",
"direction": "column",
"gap": "space300",
"minHeight": 140,
"padding": "space400",
"radius": "shapeCornerMd",
"width": "100%"
},
"type": "Box"
},
"boxItem1": {
"children": [
"boxText1"
],
"props": {
"backgroundColor": "colorPrimaryContainer",
"border": "1px solid var(--color-outline)",
"padding": "space300",
"radius": "shapeCornerMd"
},
"type": "Box"
},
"boxItem2": {
"children": [
"boxText2"
],
"props": {
"backgroundColor": "colorSurface",
"border": "1px solid var(--color-outline)",
"padding": "space300",
"radius": "shapeCornerMd"
},
"type": "Box"
},
"boxItem3": {
"children": [
"boxText3"
],
"props": {
"backgroundColor": "colorWarningContainer",
"border": "1px solid var(--color-outline)",
"padding": "space300",
"radius": "shapeCornerMd"
},
"type": "Box"
},
"boxText1": {
"children": [],
"props": {
"text": "Block 1",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"boxText2": {
"children": [],
"props": {
"text": "Block 2",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"boxText3": {
"children": [],
"props": {
"text": "Block 3",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
}
},
"root": "box",
"state": {}
}
Displays Rippling brand badges with consistent styling. Badges come in animated (Lottie-based) and static (SVG) variants. Use for decorative brand moments, empty states, success confirmations, or feature illustrations. Animated badges play once by default; use motion="static" to freeze them.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
type * | "ADD" | "AIRPLANE" | "BAR_CHART_DECREASE" | "BAR_CHART_INCREASE" | "BRAIN" | "BRAIN_AI" | "CALENDAR" | "CHECK_MARK" | ... (87 values) | Badge type/icon to display. Choose from animated or static badge types | - |
motion | "animated" | "static" | Controls animation behavior. Only applies to animated badge types. "animated" plays animation, "static" shows first frame. | animated |
Events
No events.
Notes
- The type prop determines which badge icon to display. Animated types (e.g. CHECK_MARK, CALENDAR) are Lottie animations that play automatically unless motion="static" is set. Static types (e.g. ROCKET, FIRE) are SVG illustrations. All badges use consistent sizing and Rippling brand styling. Cannot be nested or accept children.
Example props
{
"motion": "animated",
"type": "CHECK_MARK"
}
A sequential series of links that mark the nested hierarchy and navigational context for a user's location within an app. Use for complex information architectures where users need a clear path back to higher-level pages.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
items * | object[] | Array of breadcrumb items: {title, value, isDisabled?, href?} | - |
active | string | Value of the active breadcrumb item. | last item |
aria-describedby | string | ID of element that describes the breadcrumb nav | - |
aria-label | string | Accessible label for the breadcrumb nav | - |
aria-labelledby | string | ID of element that labels the breadcrumb nav | - |
noMargin | boolean | Remove default margin from the component. | false |
shouldCollapseMiddle | boolean | Collapse middle items into a dropdown on desktop. | false |
shouldTruncateItems | boolean | Truncate breadcrumb item text to one line at 128px and show full text in a tooltip on overflow. | false |
Events
select
Notes
- The select event fires when a breadcrumb item is clicked. Bind active to state to track the selected item. On select, the clicked item value is written to the bound state path.
Example props
{
"active": "profile",
"items": [
{
"title": "Home",
"value": "home"
},
{
"title": "Settings",
"value": "settings"
},
{
"title": "Profile",
"value": "profile"
}
]
}
An interactive element that allows users to trigger actions or events with a single click. Use for actions, not navigation — use links for navigation. Use IconButton when space is limited and the action is not critical.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
appearance | "PRIMARY" | "DESTRUCTIVE" | "OUTLINE" | "GHOST" | "ACCENT" | "SUCCESS" | "INFO" | "WARNING" | ... (10 values) | Visual style variant. | PRIMARY |
aria-controls | string | ID of element controlled by this button | - |
aria-describedby | string | ID of element that describes this button | - |
aria-expanded | boolean | Indicates whether controlled element is expanded | - |
aria-haspopup | boolean | "menu" | "listbox" | "tree" | "grid" | "dialog" | Indicates button triggers a popup element | - |
aria-label | string | Accessibility label for the button | - |
aria-labelledby | string | ID of element that labels this button | - |
aria-pressed | boolean | "mixed" | Indicates button pressed state (for toggle buttons) | - |
badge | string | Badge text shown on the button | - |
contentAlignment | "CENTER" | "START" | Horizontal alignment of button content. | CENTER |
fontInherit | boolean | When variant is TEXT, inherit font from parent element. Only works with TEXT variant. | false |
icon | string | object | Icon to show in button. Can be icon name string or object with type, color, alignment | - |
id | string | DOM id selector for the button element | - |
inverseDisabledColors | boolean | Use inverse color tokens for disabled buttons on dark backgrounds. | false |
isDisabled | boolean | Disables the button. | false |
isFluid | boolean | Stretch to full container width. | false |
label | string | Button text content | - |
shouldShowSpinner | boolean | Show loading spinner explicitly. | false |
size | "L" | "M" | "S" | "XS" | Button size. | M |
tabIndex | number | Tab order index for keyboard navigation | - |
tip | string | object | Tooltip configuration. Can be simple string content or object with appearance/placement | - |
to | string | object | Navigation destination. When provided, button renders as anchor and handles navigation automatically | - |
type | "button" | "reset" | "submit" | HTML button type attribute. | button |
variant | "NORMAL" | "TEXT" | Button variant type. | NORMAL |
Events
mouseEntermouseLeavepresspressWhileDisabled
Notes
- Appearance guide: - PRIMARY: key call-to-action, unique per section - ACCENT: primary action when default style blends into the background - OUTLINE: secondary action or to de-emphasize actions of equal weight - SOLID: like OUTLINE but for backgrounds that clash with outline style - GHOST: less critical actions or to reduce visual overload with many buttons - DESTRUCTIVE: irreversible or destructive actions (use sparingly) - SUCCESS: actions expected to have positive outcomes - INFO: neutral, informational actions - WARNING: actions that might lead to unwanted results - ACTIVE: indicates a feature/state has been toggled on via this button Event handling: - onClick emits 'press' event (no parameters) - onClickWhileDisabled emits 'pressWhileDisabled' event (no parameters) - onMouseEnter emits 'mouseEnter' event (no parameters) - onMouseLeave emits 'mouseLeave' event (no parameters) Inter-prop dependencies: - fontInherit only works when variant is TEXT - icon.color only supported for OUTLINE, SOLID, and GHOST appearances - When 'to' prop is provided, button renders as anchor and handles navigation automatically - shouldShowSpinner can be used to explicitly control spinner (overrides async onClick behavior) Navigation: - Use 'to' for guaranteed navigation (renders as anchor element) - Use onClick alone for conditional navigation - 'to' and onClick can be combined (onClick fires first, then navigation occurs) Icon configuration: - Can be simple string (icon type name) or object with type, color, and alignment - Icon alignment controls whether icon appears LEFT or RIGHT of label - Default alignment is LEFT
Example props
{
"elements": {
"btnGhost": {
"children": [],
"props": {
"appearance": "GHOST",
"label": "Ghost",
"size": "M"
},
"type": "Button"
},
"btnOutline": {
"children": [],
"props": {
"appearance": "OUTLINE",
"label": "Outline",
"size": "M"
},
"type": "Button"
},
"btnPrimary": {
"children": [],
"props": {
"appearance": "PRIMARY",
"label": "Primary",
"size": "M"
},
"type": "Button"
},
"buttonRow": {
"children": [
"btnPrimary",
"btnOutline",
"btnGhost"
],
"props": {
"align": "center",
"gap": "space300",
"wrap": "wrap"
},
"type": "HStack"
}
},
"root": "buttonRow",
"state": {}
}
Layout container for arranging multiple Button elements horizontally or vertically with configurable placement, alignment, gap, and wrapping.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
alignment | "center" | "flex-start" | "flex-end" | Cross-axis alignment. | center |
containerHeight | string | number | Height of the button group container | - |
flexWrap | "nowrap" | "wrap" | "wrap-reverse" | Whether buttons wrap to the next line | - |
gap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | Gap between buttons as a spacing token | - |
placement | "horizontallyLeft" | "horizontallyCenter" | "horizontallyRight" | "horizontallySpaceBetween" | "verticallyTop" | "verticallyCenter" | "verticallyBottom" | "verticallySpaceBetween" | Layout placement of buttons. | horizontallyLeft |
Events
No events.
Notes
- Slots:
default. - Place Button elements as children. Use placement to control horizontal vs vertical layout and alignment.
Example props
{
"elements": {
"btn1": {
"children": [],
"props": {
"appearance": "OUTLINE",
"label": "Cancel"
},
"type": "Button"
},
"btn2": {
"children": [],
"props": {
"label": "Save"
},
"type": "Button"
},
"btn3": {
"children": [],
"props": {
"appearance": "DESTRUCTIVE",
"label": "Delete"
},
"type": "Button"
},
"preview": {
"children": [
"btn1",
"btn2",
"btn3"
],
"props": {
"gap": "space300",
"placement": "horizontallyLeft"
},
"type": "ButtonGroup"
}
},
"root": "preview",
"state": {}
}
An inline calendar for selecting single or multiple dates. Displays a monthly view with navigation controls. Use for date selection UI without input field — when the calendar should always be visible. Use Date input for calendar in a popover; use DateInlineMulti for multiple date selection with different layout options.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
displayDate | string | Month to show initially as an ISO date string | - |
format | "yyyy/MM/dd" | "yyyy-MM-dd" | "MM/dd/yyyy" | "dd/MM/yyyy" | "yyyy/MM/dd hh:mm a" | "yyyy-MM-dd hh:mm a" | "MM/dd/yyyy hh:mm a" | "dd/MM/yyyy hh:mm a" | ... (13 values) | Date display format. | MM/dd/yyyy |
isDisabled | boolean | Disables the calendar | - |
isLarge | boolean | Renders large calendar when true. | false |
locale | string | Locale string used to determine the start of week | - |
maxDate | string | Latest selectable date as ISO string | - |
minDate | string | Earliest selectable date as ISO string | - |
shouldShowFooter | boolean | Controls footer visibility. | true |
shouldShowHeader | boolean | object | Controls header visibility. | true |
shouldShowWeekDayInitials | boolean | If false, hides week day initials. | true |
showMonthYearPicker | boolean | Show month and year picker in the calendar header. | false |
value | string | string[] | Selected date(s) as ISO string(s). Single date or array for multi-select | - |
Events
clearclickconfirmMobile
Notes
- onClick stores an ISO 8601 date string (or array of strings for multi-select) in state. confirmMobile does the same when mobile date selection is confirmed. The format prop controls display only and does not affect the stored value. Use minDate/maxDate to restrict selectable range. onClear clears the bound value and emits when user clicks clear button (if shown via footer).
Example props
{
"displayDate": "2024-01-01",
"format": "MM/dd/yyyy",
"isLarge": true,
"showMonthYearPicker": true,
"value": {
"$bindState": "/selectedDate"
}
}
Visually groups related information and components into a contained, interactive card. Use for summarizing content, facilitating comparisons, or guiding users toward specific actions. Renders as a simple layout container when used with children only (no title/content).
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
actions | object[] | Array of action objects {id, label, icon}. Displayed as dropdown options. Emits "action" event with clicked action id written to actionId state | - |
actionsDropdownWidth | number | Width in pixels for the actions dropdown | - |
content | string | Text content to display in the card body | - |
fluid | boolean | Layout mode only. When true, the card fills its parent width (including inside row layouts, where it would otherwise size to its content). Ignored when title or content is set (basic card mode). | false |
isAddCard | boolean | Render as add card with plus icon. Emits "add" event when clicked. | false |
isDisabled | boolean | Whether the card is disabled. | false |
minCardHeight | number | string | Minimum height of card. Number values are pixels. | 150 |
padding | 0 | 8 | 16 | 24 | 32 | string | Padding for layout mode. Supports Card.Layout PADDINGS values or CSS string | - |
selectedActionId | string | Bound state path for the selected action id. Written before "action" event fires | - |
showDelete | boolean | Show delete button. Emits "delete" event when clicked. | false |
showEdit | boolean | Show edit button. Emits "edit" event when clicked. | false |
theme | "DEFAULT" | "SELECTABLE" | Visual theme for layout mode. DEFAULT or SELECTABLE | - |
title | string | Card header title text | - |
to | string | object | Route destination. String URL or object with {path, openInNewTab}. Card renders as anchor when provided | - |
value | unknown | Identifier value for the card, passed to event handlers | - |
Events
actionaddclickdeleteedit
Notes
- Slots:
default. - Card emits "click" when clicked, "edit"/"delete" for those actions, "add" for add cards, and "action" when a dropdown action is clicked. The clicked action id is written to the selectedActionId bound state before the "action" event fires. Use "to" prop for navigation. Use "content" prop for simple text or children for complex layouts. In layout mode (children only, no title/content), padding, theme, and fluid are passed to Card.Layout. IMPORTANT: There is no margin beneath the card title. Always use a VStack with a top padding token as the first child of the Card to create spacing between the title and the content below.
Example props
{
"content": "Some string content for the card",
"showDelete": true,
"showEdit": true,
"title": "SF HQ",
"value": "card-1"
}
A layout container that arranges Card children (Card, LocationCard, LoaderCard) in an auto-sizing responsive grid. Automatically computes a uniform card width based on available container space.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
minCardHeight | number | string | Minimum height of each card. Number values are pixels. | 150 |
placement | "HORIZONTALLY_LEFT" | "HORIZONTALLY_CENTER" | "HORIZONTALLY_RIGHT" | "HORIZONTALLY_SPACE_BETWEEN" | Horizontal alignment of cards within the container. One of: HORIZONTALLY_LEFT, HORIZONTALLY_CENTER, HORIZONTALLY_RIGHT, HORIZONTALLY_SPACE_BETWEEN | - |
Events
No events.
Notes
- Slots:
default. - Usage: CardGroup wraps multiple Card components and arranges them in a responsive grid layout. Place Card, LocationCard, or LoaderCard components as children. Layout: Cards are automatically sized to fill the available container width uniformly. The placement prop controls horizontal alignment. Children: Should contain Card, LocationCard, or LoaderCard components only.
Example props
{
"elements": {
"card1": {
"children": [],
"props": {
"content": "Some string content for the card",
"title": "SF HQ"
},
"type": "Card"
},
"card2": {
"children": [],
"props": {
"content": "Another card in the group",
"title": "NY Office"
},
"type": "Card"
},
"cardGroup": {
"children": [
"card1",
"card2"
],
"props": {
"minCardHeight": 150,
"placement": "HORIZONTALLY_LEFT"
},
"type": "CardGroup"
}
},
"root": "cardGroup",
"state": {}
}
A step-through image carousel for onboarding flows and guided walkthroughs. Each slide has a heading and image, with built-in navigation controls. Emits a done event when the user advances past the last slide.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
slides * | object[] | Array of slide configurations with heading and image | - |
Events
done
Notes
- Carousel displays slides with a heading and image. Navigating past the last slide emits the done event. Use for onboarding flows or guided walkthroughs.
Example props
{
"slides": [
{
"heading": "Welcome to Rippling",
"img": "https://picsum.photos/800/400?1"
},
{
"heading": "Manage Your Team",
"img": "https://picsum.photos/800/400?2"
},
{
"heading": "Get Started",
"img": "https://picsum.photos/800/400?3"
}
]
}
A skeleton placeholder shown while chart or graph content is loading. Use when the content area will contain a chart and you want to reduce perceived loading time and prevent layout shift.
Accepts children: No
Props
No props.
Events
No events.
Notes
- ChartLoader displays a skeleton loading state for chart content. It renders an animated bar chart skeleton with 4 vertical bars at different heights.
A checkbox that lets users select or unselect an option. Use for toggling a single boolean (e.g. "I agree") or selecting multiple items from a list. Use Radio for mutually exclusive choices; use Toggle when the change takes effect immediately.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this checkbox | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this checkbox | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | boolean | Initial checked state when uncontrolled | - |
isDisabled | boolean | Disables the checkbox | - |
isIndeterminate | boolean | Sets checkbox to indeterminate (neither checked nor unchecked) state | - |
isReadOnly | boolean | Makes the checkbox read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text for the checkbox. Ignored when the element has children (rich label). | - |
name | string | Unique identifier for the checkbox | - |
secondaryLabel | string | Secondary text below the label | - |
theme | "FLUID_WIDTH" | "REVERSE" | "FLUID_WIDTH_SPACE_BETWEEN_REVERSE" | Visual theme variant | - |
tip | string | Tooltip text shown on hover | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | boolean | Checked state bound to state | - |
variant | "BOX" | "LIST" | "GRID" | Display variant | - |
Events
blurchange
Notes
- Slots:
default. - onChange stores a boolean (true/false) in state. Use isIndeterminate for partial selection (e.g., "select all" when some items are selected). Use theme="REVERSE" to flip checkbox/label alignment. Use variant="LIST" or "BOX" for different visual styles. Standalone — does not register with Form; use FormCheckbox inside a Form instead. Rich labels: children (if any) are rendered as the checkbox label and take precedence over the
labelprop;labelremains the string fallback. Use this for labels containing inline elements, e.g. an agreement checkbox whose label embeds a Link. Use Text with inline=true so copy and links flow inline, and Link with href. Note: the label container programmatically clicks the input, so clicking an embedded Link will also toggle the checkbox. Prefer the plain stringlabelfor simple text.
Example props
{
"name": "agree",
"label": "I agree to the terms",
"value": {
"$bindState": "/form/agree"
}
}
A group of checkboxes that lets users select multiple options from a predefined list. Use when users can choose all, some, or none of the options. Use Radio instead for mutually exclusive single selection, or Toggle for immediate on/off activation.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this checkbox group | - |
aria-label | string | Accessibility label for screen readers | - |
aria-labelledby | string | ID of element that labels this checkbox group | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | unknown[] | Initial values when uncontrolled | - |
id | string | HTML id attribute for the checkbox group | - |
isDisabled | boolean | Disables all checkbox options | - |
isHorizontal | boolean | Arrange options in a row | - |
isReadOnly | boolean | Makes the checkbox group read-only (displays as chips) | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the checkbox group | - |
list | object[] | Array of { label, value } checkbox option objects | - |
name | string | Unique identifier for the input | - |
theme | "FLUID_WIDTH" | "REVERSE" | "FLUID_WIDTH_SPACE_BETWEEN_REVERSE" | Theme styling: FLUID_WIDTH for full-width options, REVERSE for reversed theme | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | unknown[] | Currently selected values bound to state | - |
variant | "BOX" | "LIST" | "GRID" | Visual variant: BOX for boxed layout, LIST for list layout, GRID for grid layout | - |
Events
blurchange
Notes
- onChange stores an array of selected values in state. Each value matches the value field of a selected option. List items support secondaryLabel for multi-line text, tag for badges (string or {label, appearance}), tip for hover tooltips, and isDisabled for individual checkbox disabling. When isReadOnly=true, displays selected values as chips instead of checkboxes. Use variant=LIST for vertical list, variant=BOX for outlined boxes, variant=GRID for grid layout. Standalone — does not register with Form; use FormCheckboxGroup inside a Form instead.
Example props
{
"name": "colors",
"label": "Select Colors",
"list": [
{
"label": "Red",
"value": "red"
},
{
"label": "Green",
"value": "green"
},
{
"label": "Blue",
"value": "blue"
}
],
"value": {
"$bindState": "/form/colors"
}
}
A flexible multi-select interface with nested lists, allowing users to toggle selections using switches or checkboxes. Use for hierarchical options with parent-child relationships, bulk selection, or settings where multiple configurations can be enabled simultaneously.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | CheckListItem[] | Array of checklist items with nested branches | - |
title * | string | Checklist title text | - |
type * | "SWITCH" | "CHECKBOX" | Input type for all items: SWITCH or CHECKBOX | - |
canSelectAll | boolean | Show a "Select All" option at the top. | false |
hasIndependentActions | boolean | Checking/unchecking an item does not affect parent or child items | - |
hasIndependentChildActions | boolean | Checking/unchecking a child does not affect ancestor items | - |
indent | number | Indentation in pixels for nested children | - |
selectAllText | string | Custom label for the select all option | - |
shouldHaveNegativeCheckbox | boolean | Show negative (red) checkbox style when type is CHECKBOX | - |
shouldShowIndeterminate | boolean | Show indeterminate state on parent when some children are checked | - |
showMoreSize | number | Number of items shown before "show more" toggle at global level | - |
theme | "NO_PADDING" | "NO_BORDER" | "NO_PADDING_NO_BORDER" | Visual theme controlling border and padding: NO_PADDING, NO_BORDER, or NO_PADDING_NO_BORDER | - |
Events
change
Notes
- Each list item is an object with: label (string, display text), value (string, unique ID), isChecked (boolean). Optional item fields: isDisabled (boolean), isDefaultOpen (boolean, expand nested items on load), showMoreSize (number, child items shown before "show more"), branches (array of nested items with the same shape), checkListOptions ({ type?: "SWITCH"|"CHECKBOX", shouldHaveNegativeCheckbox?: boolean } to override per-item). Bind list to $bindState so checked/unchecked state persists — onChange writes the updated list array back to state automatically.
Example props
{
"elements": {
"checklist": {
"children": [],
"props": {
"canSelectAll": true,
"list": {
"$bindState": "/checklist/items"
},
"selectAllText": "Select all documents",
"title": "Required Documents",
"type": "CHECKBOX"
},
"type": "CheckList"
}
},
"root": "checklist",
"state": {
"checklist": {
"items": [
{
"isChecked": true,
"label": "CIIA Agreement",
"value": "ciia"
},
{
"isChecked": false,
"label": "Severance Agreement",
"value": "severance"
},
{
"isChecked": false,
"label": "Payroll Authorization",
"value": "payroll"
}
]
}
}
}
A compact, interactive element for representing entities, attributes, filters, or complex criteria. Use for user-selected tags, filter conditions, or dismissible items. Use Label instead for static semantic color-coded metadata like "New" or "Caution", and Button for calls to action.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
appearance | "NEUTRAL" | "NEGATIVE" | "ACTIVE" | Visual style (NEUTRAL, NEGATIVE, ACTIVE). | NEUTRAL |
aria-describedby | string | ID of element that describes this chip | - |
aria-label | string | Accessibility label for the chip | - |
aria-labelledby | string | ID of element that labels this chip | - |
avatar | string | object | Avatar to display at the beginning. Can be image URL string or object with image/title/imageProps | - |
icon | string | object | Icon to display. Can be string name or object with type/color/alignment | - |
isActive | boolean | If true, applies active/selected styling (used inside SelectableGroup) | - |
isCloseable | boolean | Shows close button when true. | false |
isDisabled | boolean | If true, the chip is visually and functionally disabled | - |
isFluid | boolean | If true, the chip takes all available width. | false |
maxWidth | number | Maximum width in pixels. | 400px |
size | "SMALL" | "MEDIUM" | "LARGE" | "EXTRA_LARGE" | Size of the chip (SMALL, MEDIUM, LARGE, EXTRA_LARGE). | LARGE |
text | string | Text content to display in the chip | - |
tip | object | Tooltip configuration. Chip has default overflow tooltip behavior | - |
to | string | object | Navigation destination. Renders chip as anchor with router integration. Use for guaranteed navigation | - |
Events
dismisspress
Notes
- State shape: - onClick emits 'press' event (no parameters) - onClose emits 'dismiss' event (no parameters) Inter-prop dependencies: - Avatar can be combined with right-aligned icons - Icon alignment is ignored when avatar is present (avatar always appears on left) - When 'to' prop is provided, chip renders as anchor and handles navigation Navigation: - Use 'to' for guaranteed navigation (renders as anchor) - Use onClick alone for conditional navigation - Both can be combined ('to' for navigation + onClick for analytics)
Example props
{
"appearance": "ACTIVE",
"isCloseable": true,
"size": "MEDIUM",
"text": "Active"
}
A layout container for grouping multiple Chip components (tags, filters, attributes), managing arrangement with configurable gap spacing, overflow behavior that collapses excess chips into a "+N more" modal, and incremental batch rendering for large datasets.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
batchSize | number | Number of elements rendered in each incremental step, optimizing performance for large datasets | - |
gap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | Spacing token for the flex gap between chip items. | theme default spacing |
maxLinesToWrap | number | Maximum number of lines to display before showing overflow modal. When set, chips exceeding this limit are hidden with a "+N more" trigger that opens a modal | - |
overflowModalIsOpen | boolean | Bindable state value written when the overflow modal opens or closes. True when open, false when closed | - |
overflowModalTitle | string | Title text shown in the overflow modal header when maxLinesToWrap limit is exceeded | - |
Events
overflowChange
Notes
- Slots:
default. - Usage: ChipGroup wraps multiple Chip components and manages their layout. Place Chip elements as children. Overflow behavior: When maxLinesToWrap is set, chips exceeding the line limit are hidden. A "+N more" button appears that opens an overflow modal showing all chips. Events: - overflowChange: Emitted when the overflow modal opens or closes. The overflowModalIsOpen state (boolean) is written before the event fires. State shape: - onOverflowModalStateChange writes a boolean to overflowModalIsOpen (true when modal opens, false when closes) Children: Should contain Chip components.
Example props
{
"maxLinesToWrap": 2,
"overflowModalIsOpen": {
"$bindState": "/chipGroup/overflowModalIsOpen"
},
"overflowModalTitle": "All items"
}
Circular graphic element for status or decoration
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
color | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Foreground fill color token of the circle. | current theme colorInfo |
isHollow | boolean | When true, renders a hollow (outlined) circle instead of a filled one. | false |
size | number | Diameter of the circle in pixels. | 10 |
Events
No events.
Notes
- Circle renders a solid or hollow colored circle. Use size to control the diameter in pixels and color to set the fill color token. Set isHollow to true to render an outlined circle instead of a filled one.
Example props
{
"color": "colorSuccess",
"size": 16
}
A form input for selecting a color from a predefined palette or entering a custom hex value. Use for brand color selection, theme customization, or any setting where users choose a specific color.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
allowCustomColors | boolean | Allow users to input custom hex colors. | false |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
colorPerRow | number | Number of color swatches to display per row | - |
colors | string[] | Array of hex color strings to show in the palette | - |
columnGap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | Horizontal spacing between color columns as a spacing token | - |
defaultValue | string | Default hex color value for reset functionality | - |
isDisabled | boolean | Disables the color picker | - |
isReadOnly | boolean | Makes the color picker read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
name | string | Unique identifier for the input | - |
rowGap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | Vertical spacing between color rows as a spacing token | - |
showReset | boolean | Show reset link to restore default color. | true |
title | string | Title displayed at the top of the color picker panel | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Selected hex color string, e.g. "#FF5733" | - |
Events
blurchange
Notes
- onChange stores a hex color string (e.g. "#FF5733"). The picker renders as a button trigger that opens a color palette panel. When allowCustomColors is true, users can also type in a custom hex value.
Example props
{
"name": "brandColor",
"allowCustomColors": true,
"label": "Brand Color",
"title": "Choose a color",
"value": {
"$bindState": "/form/brandColor"
}
}
A low-level SVG shimmer placeholder used to indicate loading state. Renders a plain animated rectangle whose dimensions you control. For shaped placeholders (text lines, circles, boxes), use Skeleton instead.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
animate | boolean | Enable animation. | true |
backgroundColor | "colorPrimary" | "colorSecondary" | "colorTertiary" | "colorPrimaryContainer" | "colorSecondaryContainer" | "colorTertiaryContainer" | "colorError" | "colorErrorContainer" | ... (33 values) | Background surface color token. | #f5f6f7 |
backgroundOpacity | number | Opacity of background color. | 1 |
foregroundColor | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Foreground shimmer color token. | #eee |
foregroundOpacity | number | Opacity of foreground shimmer. | 1 |
gradientRatio | number | Width of the animated gradient as a ratio. | 2 |
height | number | SVG height in px. | 130 |
rtl | boolean | Right-to-left animation direction. | false |
speed | number | Animation speed in seconds. | 2 |
width | number | SVG width in px. | 400 |
Events
No events.
Notes
- ContentLoader renders a generic SVG shimmer effect. For specific shapes (text lines, circles, boxes) prefer the Skeleton component instead. Skipped: baseUrl (SVG internal), uniqueKey (React key management), beforeMask (JSX element — not serializable).
Example props
{
"height": 130,
"speed": 2,
"width": 400
}
Countdown timer displaying time remaining until a target date
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
date * | string | ISO 8601 date-time string representing the target future date (e.g. "2025-12-31T23:59:59Z"). The countdown counts down to this date. | - |
isInline | boolean | When true, the countdown renders as an inline element. | false |
shouldUseShortString | boolean | When true, uses abbreviated labels (d, h, m, s) instead of full words (days, hours, minutes, seconds). | false |
Events
No events.
Notes
- CountDown renders a live countdown to a future date. The date prop must be an ISO 8601 date-time string (e.g. "2025-12-31T23:59:59Z"). Use isInline to render the countdown inline within surrounding text. Use shouldUseShortString to display abbreviated time labels (d, h, m, s) instead of full words. The countdown updates automatically — every second when less than 2 minutes remain, every 30 seconds otherwise.
Example props
{
"date": "2025-12-31T23:59:59Z"
}
Displays a country by its ISO code, showing flag and/or name. Can show both (default), flag only, or name only. Ideal for profiles, address settings, or regional customization contexts where country identification is needed.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
countryCode * | string | ISO country code (e.g. "US", "IN", "GB"). Used to display the country flag and name. | - |
icon | string | object | Icon displayed alongside the country. Accepts a string icon name or an object with type, alignment, tip, color, size, state, and ARIA props. | - |
onlyFlag | boolean | When true, shows only the flag without rendering the country name. | false |
shouldShowFlag | boolean | When false, hides the country flag and shows only the country name. | true |
shouldShowTipOnOverflow | boolean | When false, disables the tooltip that appears when the country name overflows. | true |
size | "SMALL" | "MEDIUM" | "LARGE" | Size of the country flag. SMALL, MEDIUM, or LARGE. | LARGE |
Events
No events.
Notes
- Country displays a country flag and name given an ISO country code (e.g. "US", "IN"). Use size to control flag dimensions (SMALL/MEDIUM/LARGE, default LARGE). Set onlyFlag=true to show only the flag, or shouldShowFlag=false to show only the country name. The icon prop accepts either a string icon name (e.g. "INFO_CIRCLE_OUTLINE") or an object with type, alignment ("RIGHT"), tip, color, size, state props, and ARIA labels for more control.
Example props
{
"countryCode": "US"
}
Specialized input for entering monetary amounts with currency symbol/code prefix and locale-aware number formatting. Supports arithmetic expression evaluation, currency type selection via dropdown, and decimal precision control.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
allowNegative | boolean | Whether negative values are allowed. | true |
aria-describedby | string | ID of element that provides additional description | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
autoComplete | string | HTML autocomplete attribute value for browser autofill | - |
autoFocus | boolean | If true, input will be focused on mount | - |
canSelectCurrencyType | boolean | If true, displays a dropdown to select currency type | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
currencyTypeProps | object | Nested Select props for the currency selector | - |
decimalPlaces | number | Number of decimal places allowed. | 2 |
defaultValue | string | number | object | Initial value for uncontrolled component. Use { value, type } with shouldSendCurrencyType | - |
isDisabled | boolean | Disables the input | - |
isIntegerOnly | boolean | If true, only integer values will be allowed. | false |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
locale | string | Locale string for number formatting (e.g. en-US). Overrides shouldLocalize when set. | - |
max | number | Maximum allowed value | - |
maxLength | number | Maximum number of characters allowed | - |
maxWidth | string | Maximum width CSS value | - |
min | number | Minimum allowed value | - |
minLength | number | Minimum number of characters required | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Currency symbol or code shown as prefix. | USD |
shouldAllowCalculation | boolean | If true, input allows arithmetic operators and evaluates equation on blur | - |
shouldDisableRedundantZeroFormatting | boolean | If false, redundant zeros are removed using parseFloat. If true (default), zeros are preserved. | true |
shouldLocalize | boolean | If true, currency format is determined from user locale setting. | true |
shouldSendCurrencyType | boolean | If true, onChange writes { value, type } using currencyTypeProps value/defaultValue | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
step | number | Value to add/subtract on pressing arrow up/down respectively. | 1 |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | number | object | Current currency value bound to state. Use { value, type } with shouldSendCurrencyType | - |
Events
blurchange
Notes
- onChange stores a numeric value (number | string) in state by default. When shouldSendCurrencyType=true, onChange stores { value, type } using currencyTypeProps.value or currencyTypeProps.defaultValue for the type. The prefix prop sets the currency symbol/code displayed before the amount; it does not affect the stored value. Use decimalPlaces to control precision. When canSelectCurrencyType is true, a dropdown selector is shown for currency selection and currencyTypeProps controls the nested Select props. Currency formatting is determined by the locale prop or user locale setting when shouldLocalize is true. When shouldAllowCalculation is true, users can enter arithmetic expressions (e.g. "100+50") which are evaluated on blur. Standalone — does not register with Form; use FormCurrency inside a Form instead.
Example props
{
"name": "salary",
"allowNegative": false,
"decimalPlaces": 2,
"label": "Annual Salary",
"placeholder": "0.00",
"prefix": "USD",
"value": {
"$bindState": "/form/salary"
}
}
Embeds a saved Rippling Analytics dashboard by id. Loading, permissions, missing-dashboard, and widget behavior are handled by the dashboard viewer.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
dashboardId * | string | Id of a saved Rippling Analytics dashboard. The dashboard loads its own data and handles loading, access, missing, and widget behavior. | - |
Events
No events.
Notes
- dashboardId: id of the saved Analytics dashboard. The dashboard loads its own data and handles loading, access, missing, and widget states.
A date input that lets users select a single date via calendar or keyboard entry. Use for collecting exact, approximate, or memorable dates (e.g. birth date, start date) and for scheduling. Optionally includes time selection with timezone support. Use DateRange for start/end date pairs; use DateInlineMulti for selecting multiple individual dates without an input field.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
alwaysShowTimezone | boolean | If true, timezone abbreviation will always be shown when shouldShowTime is true. | false |
aria-describedby | string | ID of element that describes this input | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
canClear | boolean | Show clear button | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | null | Initial ISO date string or null for uncontrolled usage | - |
divider | string | Separator between date units (e.g. "/" or "-") | - |
format | "yyyy/MM/dd" | "yyyy-MM-dd" | "MM/dd/yyyy" | "dd/MM/yyyy" | "yyyy/MM/dd hh:mm a" | "yyyy-MM-dd hh:mm a" | "MM/dd/yyyy hh:mm a" | "dd/MM/yyyy hh:mm a" | ... (13 values) | Date display format. | MM/dd/yyyy |
hideStepper | boolean | If true, arrow navigation key to increment/decrement date will be hidden. | false |
id | string | HTML id attribute for the input | - |
isCalendarDefaultOpen | boolean | If true, calendar will be open by default on mount | - |
isDisabled | boolean | Disables the date picker | - |
isLarge | boolean | Renders large calendar when true. | false |
isPickerVisible | boolean | If false, hides the calendar picker. | true |
isReadOnly | boolean | Makes the date picker read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the date picker | - |
locale | string | Locale for date formatting. | en-US |
maxDate | string | Latest selectable date as ISO string | - |
minDate | string | Earliest selectable date as ISO string | - |
name | string | Unique identifier for the input | - |
shouldDisplaySeconds | boolean | Display seconds in the time input when shouldShowTime is true | - |
shouldFormatInTimezone | boolean | If true, values will transform according to global timezone. Defaults to true when shouldShowTime is true | - |
shouldLocalize | boolean | If true, display format will be determined from user locale setting. | false for explicit format control |
shouldShowTime | boolean | Include time selection | - |
shouldShowTimezoneLabel | boolean | If false, timezone label will not be shown. | true |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
theme | "NO_BOX" | Visual theme variant. NO_BOX removes input box styling | - |
timeProps | object | Configuration for time picker. Sets initial time value independently of date input | - |
timezone | string | Timezone name (e.g. "America/New_York"). Used with shouldShowTime | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | null | ISO date string or null bound to state | - |
Events
blurchange
Notes
- onChange stores an ISO 8601 date string or null in state. When shouldShowTime is true, the stored ISO string includes time. The format prop is display-only and does not affect the stored value. Defaults to MM/dd/yyyy format and en-US locale. Use theme=NO_BOX to remove input box styling. Standalone — does not register with Form; use FormDate inside a Form instead.
Example props
{
"name": "birthdate",
"format": "MM/dd/yyyy",
"label": "Birth Date",
"value": {
"$bindState": "/form/birthdate"
}
}
An always-visible inline calendar for selecting multiple individual dates without an input field. Use when users need to pick several non-contiguous dates (e.g. holidays, blocked days). Use Date for single-date entry with an input field, or DateRange for start/end date pairs.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string[] | Initial array of selected ISO 8601 date strings | - |
format | "yyyy/MM/dd" | "yyyy-MM-dd" | "MM/dd/yyyy" | "dd/MM/yyyy" | "yyyy/MM/dd hh:mm a" | "yyyy-MM-dd hh:mm a" | "MM/dd/yyyy hh:mm a" | "dd/MM/yyyy hh:mm a" | ... (13 values) | Date display format. | yyyy-MM-dd |
isDisabled | boolean | Disables the calendar | - |
isReadOnly | boolean | Makes the calendar read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the calendar | - |
locale | string | Locale for date formatting | - |
maxDate | string | Latest selectable date as ISO string | - |
minDate | string | Earliest selectable date as ISO string | - |
name | string | Unique identifier for the input | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string[] | null | Array of selected ISO 8601 date strings or null bound to state | - |
Events
blurchange
Notes
- onChange stores an array of ISO 8601 date strings or null in state. Each date toggle adds or removes an ISO string from the array. The format prop is display-only and does not affect stored values.
Example props
{
"name": "holidays",
"label": "Select Holidays",
"value": {
"$bindState": "/form/holidays"
}
}
A date range picker for selecting a start date and end date pair, such as travel dates, leave periods, or reporting intervals. Use Date instead when only a single date is needed.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
alwaysShowTimezone | boolean | If true, timezone abbreviation will always be shown when shouldShowTime is true. | false |
aria-describedby | string | ID of element that describes the date range picker | - |
aria-label | string | Accessibility label for the date range picker | - |
aria-labelledby | string | ID of element that labels the date range picker | - |
canClear | boolean | Show clear button | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | null[] | null | Initial null or array of ISO date strings/null entries [start, end] | - |
divider | string | Separator between date units (e.g. "/" or "-") | - |
endDateLabel | string | Label for the end date field | - |
format | "yyyy/MM/dd" | "yyyy-MM-dd" | "MM/dd/yyyy" | "dd/MM/yyyy" | "yyyy/MM/dd hh:mm a" | "yyyy-MM-dd hh:mm a" | "MM/dd/yyyy hh:mm a" | "dd/MM/yyyy hh:mm a" | ... (13 values) | Date display format. | MM/dd/yyyy |
hideStepper | boolean | If true, arrow navigation key to increment/decrement date will be hidden. | false |
id | string | HTML id attribute for the date range input | - |
isCalendarDefaultOpen | boolean | If true, calendar will be open by default on mount | - |
isDisabled | boolean | Disables the date range picker | - |
isLarge | boolean | Renders large calendar when true. | false |
isReadOnly | boolean | Makes the date range picker read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the date range picker | - |
locale | string | Locale for date formatting | - |
maxDate | string | Latest selectable date as ISO string | - |
minDate | string | Earliest selectable date as ISO string | - |
name | string | Unique identifier for the input | - |
shouldDisplaySeconds | boolean | Display seconds in the time input when shouldShowTime is true | - |
shouldFormatInTimezone | boolean | If true, values will transform according to global timezone. Defaults to true when shouldShowTime is true | - |
shouldLocalize | boolean | If true, display format is determined from user locale. | true |
shouldShowTime | boolean | Include time selection | - |
shouldShowTimezoneLabel | boolean | If false, timezone label will not be shown. | true |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
startDateLabel | string | Label for the start date field | - |
theme | "NO_BOX" | Visual theme variant. NO_BOX removes input box styling | - |
timezone | string | Timezone for date/time display and storage. Used with shouldShowTime | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | null[] | null | Null or array of ISO date strings/null entries [start, end] bound to state | - |
Events
blurchange
Notes
- onChange stores null or an array of two ISO strings/null entries [startDate, endDate] in state. When shouldShowTime is true, the stored ISO strings include time. The format prop is display-only for user interface. timezone must be set when shouldShowTime is true for correct time conversion. shouldLocalize controls whether display format is determined from locale (default: true). startDateLabel/endDateLabel customize the field labels. Use theme=NO_BOX to remove input box styling. Use aria-label or aria-labelledby for accessibility when label is not provided.
Example props
{
"name": "dateRange",
"endDateLabel": "End Date",
"label": "Date Range",
"startDateLabel": "Start Date",
"value": {
"$bindState": "/form/dateRange"
}
}
A form input for selecting one or more days of the week (Sunday through Saturday). Use for recurring schedules, availability preferences, or any scenario requiring day-of-week choices.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"[] | Initial day(s) when uncontrolled | - |
isMulti | boolean | Allow multiple day selection. | false |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
name | string | Unique identifier for the input | - |
renderProps | object | Per-day configuration. Keys are day names (Sunday, Monday, etc.). Each can have isDisabled (boolean) and tip (object with content string) | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"[] | Selected day(s). Single string when isMulti is false, array when true | - |
Events
change
Notes
- onChange stores a single day string (e.g. "Monday") when isMulti is false, or an array of day strings (e.g. ["Monday", "Wednesday", "Friday"]) when isMulti is true. Valid day values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday. Use renderProps to configure individual days - keys are day names, values can have isDisabled (boolean) and tip (object with content string). Standalone — does not register with Form; use FormDaySelector inside a Form instead.
Example props
{
"name": "workDays",
"isMulti": true,
"label": "Work Days",
"value": {
"$bindState": "/form/workDays"
}
}
A horizontal stacked bar that visualizes proportional distribution of values across categories. Use to show how parts contribute to a whole, such as budget allocation, storage usage breakdown, or workforce composition.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
segments * | object[] | Array of segments with value and color | - |
size | "standard" | "compact" | Bar thickness variant. | standard |
totalValue | number | Total value the bar represents. If omitted, computed as sum of segment values. Segments exceeding totalValue trigger an error. | - |
Events
No events.
Notes
- Each segment has a value and segmentColor. segmentColor must be a Pebble chart color token, or a semantic color token for status-related visualizations. The bar width is proportional to value/totalValue. If totalValue is omitted it is the sum of all segment values. Common chart tokens: chartColorSeries1Chart1 through chartColorSeries1Chart6 for generic categories. Use semantic status colors such as success, danger/error, warning, or neutral tokens for status-related visualizations.
Example props
{
"elements": {
"bar": {
"children": [],
"props": {
"segments": [
{
"segmentColor": "chartColorSeries1Chart5",
"value": 60
},
{
"segmentColor": "chartColorSeries5Chart2",
"value": 25
},
{
"segmentColor": "chartColorSeries1Chart3",
"value": 15
}
],
"size": "standard"
},
"type": "DistributionBar"
},
"container": {
"children": [
"bar"
],
"props": {
"direction": "column",
"width": 360
},
"type": "Box"
}
},
"root": "container",
"state": {}
}
Horizontal line to visually separate content sections
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
spacing | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | Vertical margin spacing token above and below the divider | - |
text | string | Optional text displayed in the center of the divider line | - |
theme | "SOLID" | "DASHED" | Line styles | - |
Events
No events.
Example props
{
"spacing": "space400",
"theme": "SOLID"
}
A reorderable drag-and-drop list for dynamically rearranging items. Supports vertical and horizontal layouts; use when item order flexibility is crucial to the user experience.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
labelKey * | string | Key name in each item used to generate chip label | - |
list * | object[] | Array of draggable items. Each item must have an id (string or number). Additional keys are allowed. | - |
dragContainerMinHeight | number | Minimum height of drag container in pixels. | 0 |
groupName | string | List group identifier for dragging among multiple lists. | "group" |
isDragDisabled | boolean | Disable drag functionality. | false |
isHorizontal | boolean | Display the list horizontally. | false |
isRemovable | boolean | Allow elements of the list to be removed. | false |
limitDragToDragIcon | boolean | Restrict dragging to only the drag icon. Only works when showDragIcon is true. | false |
showDragIcon | boolean | Show drag icon for each item. | false |
tip | object | Tooltip configuration for the default chip renderer | - |
width | string | Width of the list. | 100% |
Events
dragEnddragStartremoveupdate
Notes
- The list prop should be bound to state. When items are reordered or removed, the updated list array is written back to state. The update event fires after reorder; the remove event fires after an item is removed. Each item in the list must have a unique id field and can include additional serializable keys. The labelKey prop specifies which field to use as the display label for the default chip renderer. Use tip.contentKey and tip.titleKey to read tooltip content from item fields.
Example props
{
"elements": {
"draggableList": {
"children": [],
"props": {
"isRemovable": true,
"labelKey": "name",
"list": {
"$bindState": "/items"
},
"showDragIcon": true,
"width": "320px"
},
"type": "DraggableList"
}
},
"root": "draggableList",
"state": {
"items": [
{
"name": "Payroll setup",
"id": 1
},
{
"name": "Benefits review",
"id": 2
},
{
"name": "Device shipment",
"id": 3
}
]
}
}
A sliding panel that appears from the edge of the screen, allowing users to access additional information or complete secondary tasks like forms without losing context of their primary workflow. Use instead of Modal when preserving the user's place on the page is important.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
caption | string | Subtext below the title in the drawer header | - |
isCompact | boolean | Renders drawer in compact view | - |
isVisible | boolean | Whether the drawer is visible. Bind to state to control open/close | - |
maxWidth | string | number | Maximum width of the drawer. | 80vw |
shouldAttachToRoot | boolean | Renders drawer in a portal at document root. | true |
shouldCloseOnBackdropClick | boolean | Close drawer when clicking the backdrop. | true |
shouldCloseOnEscape | boolean | Close drawer on ESC key press | - |
shouldNotAnimate | boolean | Disables open/close animations. | false |
theme | "BACKGROUND_V2_GRAY" | "GRAY" | "NO_PADDING" | Visual style theme for the drawer | - |
title | string | object | Title displayed in the drawer header as text or breadcrumb config | - |
width | string | number | Width of the drawer. | 80vw |
Events
close
Notes
- Slots:
default. - isVisible should be bound to state. Use $bindState with a dedicated boolean flag for simple open/close, or use $state to derive visibility from another value (e.g. a non-null selected item becomes falsy when cleared). The close event fires on cancel button click, ESC key, and backdrop click. Handle it with a setState action — if closing should also clear related state, bind isVisible to that state with $state so one action achieves both. Place drawer content as children.
Example props
{
"elements": {
"button": {
"on": {
"press": [
{
"action": "setState",
"params": {
"statePath": "/ui/drawerOpen",
"value": true
}
}
]
},
"props": {
"label": "Open Drawer"
},
"type": "Button"
},
"container": {
"children": [
"button",
"drawer"
],
"props": {
"gap": "space400"
},
"type": "VStack"
},
"content": {
"children": [
"text1",
"text2"
],
"props": {
"gap": "space400",
"padding": "space400"
},
"type": "VStack"
},
"drawer": {
"children": [
"content"
],
"on": {
"close": [
{
"action": "setState",
"params": {
"statePath": "/ui/drawerOpen",
"value": false
}
}
]
},
"props": {
"caption": "Manage your preferences",
"isVisible": {
"$bindState": "/ui/drawerOpen"
},
"shouldAttachToRoot": false,
"title": "User Settings",
"width": "400px"
},
"type": "Drawer"
},
"text1": {
"props": {
"text": "This is the drawer content area."
},
"type": "Text"
},
"text2": {
"props": {
"text": "Configure your settings here."
},
"type": "Text"
}
},
"root": "container",
"state": {
"ui": {
"drawerOpen": false
}
}
}
A popover menu that displays a list of actions or selectable options. Use for 3–15 choices triggered by a button; for form field selection, use Select instead.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object | object | object[] | Array of dropdown options: {label, value, isDisabled?} | - |
clickedValue | unknown | Bindable last clicked item value, written before the action event emits | - |
defaultValue | unknown | Initially selected value | - |
dropdownIsOpen | boolean | Bindable state written when the dropdown opens or closes | - |
footer | object | Footer item rendered at the bottom of the list | - |
isCompact | boolean | Render in compact mode | - |
isDisabled | boolean | Disable the dropdown trigger | - |
maxHeight | number | Max height of the dropdown list in px. | 224 |
placement | "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end" | "left-start" | "left" | ... (12 values) | Popover position. | bottom-start |
searchable | boolean | Enable search within the dropdown list | - |
shouldAutoClose | boolean | Auto-close after item selection | - |
shouldCloseOnScroll | boolean | Close on document scroll | - |
showSelectedLabel | boolean | Display the selected option label in the trigger. Defaults to false; empty or unmatched values use triggerLabel | - |
triggerAriaLabel | string | Accessible label for the trigger button. Recommended for icon-only triggers. | - |
triggerIcon | string | Icon.TYPES name to render in the dropdown trigger button. Provide it for icon-only or icon-plus-label triggers. | - |
triggerLabel | string | Visible label for the dropdown trigger button. Omit it for an icon-only trigger. | - |
triggerSize | "XS" | "S" | "M" | "L" | Size of the trigger button (XS, S, M, L). | M |
value | unknown | Currently selected value. Bind to state for selection tracking | - |
width | number | Width of the dropdown list in px. | 192 |
Events
actionchangetoggle
Notes
- Bind value to state to track the selected option. The change event fires when the user selects an item and the selected item value is written to state. Bind clickedValue to state to capture the last clicked item value for action-menu usage; the action event fires after clickedValue is updated. Bind dropdownIsOpen to state to observe open/close; the toggle event fires after dropdownIsOpen is updated. The list supports flat items, nested items with a list field, and {isSeparator: true}. The trigger supports three modes: label-only with triggerLabel, icon-only with triggerIcon, and icon-plus-label with both triggerIcon and triggerLabel. Provide triggerAriaLabel for icon-only triggers. Use triggerSize to control the trigger button size. Set showSelectedLabel to true to replace the visible trigger label with the selected option label; when triggerIcon is provided without triggerLabel, the trigger stays icon-only.
Example props
{
"elements": {
"dropdownPreview": {
"children": [
"iconOnlyGroup",
"iconAndLabelGroup",
"labelOnlyGroup"
],
"props": {
"align": "flex-start",
"gap": "space400"
},
"type": "HStack"
},
"iconAndLabelDropdown": {
"children": [],
"props": {
"list": [
{
"label": "Option A",
"value": "a"
},
{
"label": "Option B",
"value": "b"
},
{
"label": "Option C",
"value": "c"
}
],
"showSelectedLabel": true,
"triggerIcon": "MORE_HORIZONTAL",
"triggerLabel": "Actions",
"value": {
"$bindState": "/selectedAction"
}
},
"type": "Dropdown"
},
"iconAndLabelGroup": {
"children": [
"iconAndLabelLabel",
"iconAndLabelDropdown"
],
"props": {
"align": "flex-start",
"gap": "space200"
},
"type": "VStack"
},
"iconAndLabelLabel": {
"children": [],
"props": {
"text": "Icon + selected label",
"typestyle": "typestyleBodySmallEmphasized"
},
"type": "Text"
},
"iconOnlyDropdown": {
"children": [],
"props": {
"clickedValue": {
"$bindState": "/lastClickedAction"
},
"list": [
{
"label": "Option A",
"value": "a"
},
{
"label": "Option B",
"value": "b"
},
{
"label": "Option C",
"value": "c"
}
],
"triggerAriaLabel": "Open actions",
"triggerIcon": "MORE_HORIZONTAL"
},
"type": "Dropdown"
},
"iconOnlyGroup": {
"children": [
"iconOnlyLabel",
"iconOnlyDropdown"
],
"props": {
"align": "flex-start",
"gap": "space200"
},
"type": "VStack"
},
"iconOnlyLabel": {
"children": [],
"props": {
"text": "Icon only",
"typestyle": "typestyleBodySmallEmphasized"
},
"type": "Text"
},
"labelOnlyDropdown": {
"children": [],
"props": {
"list": [
{
"label": "Option A",
"value": "a"
},
{
"label": "Option B",
"value": "b"
},
{
"label": "Option C",
"value": "c"
}
],
"triggerLabel": "More actions",
"triggerSize": "S"
},
"type": "Dropdown"
},
"labelOnlyGroup": {
"children": [
"labelOnlyLabel",
"labelOnlyDropdown"
],
"props": {
"align": "flex-start",
"gap": "space200"
},
"type": "VStack"
},
"labelOnlyLabel": {
"children": [],
"props": {
"text": "Label only",
"typestyle": "typestyleBodySmallEmphasized"
},
"type": "Text"
}
},
"root": "dropdownPreview",
"state": {
"lastClickedAction": "a",
"selectedAction": "b"
}
}
A form input field for collecting email addresses with built-in format validation. Use for registration, login, subscriptions, and any context requiring a valid email. Do not use for non-email text like phone numbers or usernames — use Text instead.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this input | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
autoCapitalize | "off" | "none" | "on" | "sentences" | "words" | "characters" | Auto-capitalization: off, none, on, sentences, words, or characters | - |
autoComplete | string | Browser autocomplete hint | - |
autoCorrect | "off" | "on" | Auto-correct: off or on | - |
autoFocus | boolean | Auto-focus on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
inputMode | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | Virtual keyboard type hint | - |
isDisabled | boolean | Disables the input | - |
isOriginalInputReadOnly | boolean | Sets readonly mode directly on input HTML element | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character count | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text or icon name from Icon.TYPES to show before the input value | - |
readOnlyAffixSpacing | boolean | Controls gap between affixes and value in read-only mode. Set false to remove gap | true |
shouldAllowAutoFill | boolean | Allow browser autofill | - |
shouldPersistCursorPosition | boolean | Persist cursor position for controlled input. | false |
shouldStopEventPropagation | boolean | Stop automatic input focus when clicking container | - |
shrinkToPlaceholder | boolean | Input spans as much as its placeholder when true. Only applies when placeholder is visible | - |
shrinkToValue | boolean | Input spans as much as its value when true. Only applies when value is present | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
stringPadding | object | Pads input value with character until reaching maxLength | - |
suffix | string | Text or icon name from Icon.TYPES to show after the input value | - |
theme | string | Theme name from Input.Text.THEMES or custom theme | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | null | Current email value bound to state | - |
Events
blurchangeclickfocuskeydownkeyupmouseentermouseleavepaste
Notes
- onChange stores the email address as a plain string in state, then emits "change" onBlur automatically trims trailing whitespace from the value, validates if checks are provided, then emits "blur" Keyboard events (keydown, keyup, paste) and mouse events (click, mouseenter, mouseleave, focus) emit without parameters Use prefix/suffix for icons - pass Icon.TYPES names like "EMAIL_OUTLINE" or text like "@" Use inputMode="email" to hint the email keyboard type on mobile devices Supports basic ARIA attributes (aria-label, aria-labelledby, aria-describedby) for accessibility Standalone — does not register with Form; use FormEmail inside a Form instead.
Example props
{
"name": "email",
"isRequired": true,
"label": "Email",
"placeholder": "Enter email address",
"value": {
"$bindState": "/form/email"
}
}
An emoji picker that lets users browse and select emojis by category or search. Can be rendered inline or in a popover. onChange emits the selected emoji data including native representation, name, and keywords.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
autoFocus | boolean | If true, automatically focuses the search input. | false |
categories | "frequent" | "people" | "nature" | "foods" | "activity" | "places" | "objects" | "symbols" | ... (9 values)[] | Array of emoji categories to display | - |
excludeIds | string[] | Emoji IDs to hide from the picker | - |
fluid | boolean | If true, makes width 100% of container. | false |
height | string | Height CSS value of the emoji picker | - |
inline | boolean | If true, renders the emoji picker inline. | false |
minHeight | string | Minimum height CSS value of the emoji picker | - |
minWidth | string | Minimum width CSS value of the emoji picker | - |
popperProps | object | Serializable popover options; middleware functions are not supported | - |
preventCloseOnSelect | boolean | Prevents the popover from closing when an emoji is selected | - |
selectedEmoji | object | Bindable selected emoji data written before the change event emits | - |
triggerIcon | string | Icon.TYPES name to render as the default popover trigger | - |
width | string | Width CSS value of the emoji picker | - |
Events
change
Notes
- Bind selectedEmoji to state to receive selected emoji data before the change event emits: { id, name, native, shortcodes, keywords, unified }. The native property contains the actual emoji character to render. Use inline={true} to render directly in the layout; use inline={false} with a trigger for popover mode. Categories can be filtered with the categories prop. popperProps supports placement and shouldFlipIfNoSpace only; middleware functions are not serializable.
Example props
{
"fluid": true,
"inline": true,
"selectedEmoji": {
"$bindState": "/emoji"
}
}
Search for and select one or more employees outside of a registered form. Supports ACTIVE; GOOD (HIRED, ACCEPTED, and ACTIVE); ACCEPTED_AND_ACTIVE (excluding HIRED); NON_INIT (all employee states except INIT, including TERMINATED); INIT (hiring started but not completed; the backend preset is roleState INIT and is not employee-constrained); and TERMINATED. The change event is notification-only and has no payload.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
canClear | boolean | Controls whether the current selection can be cleared. When omitted, the underlying select default applies. | - |
defaultValue | string | string[] | Initial uncontrolled selection as an employee role id for single select or role id array for multi-select. Defaults to no selection. | - |
isDisabled | boolean | When true, disables searching and selection changes. Defaults to false. | - |
isMulti | boolean | When true, allows multiple employee selections and uses role id arrays. Defaults to false (single select). | - |
isReadOnly | boolean | When true, displays the selection without allowing changes. Defaults to false. | - |
isRequired | boolean | When true, marks the field as required. Defaults to the form control default (not required). | - |
label | string | Label displayed for the search field. Defaults to no label. | - |
placeholder | string | Placeholder displayed when the search field is empty. When omitted, the component default placeholder is used. | - |
roleIdsToExclude | string[] | Removes the specified employee role ids from search results when no inclusion list is provided. When both lists are provided, inclusion takes precedence. When omitted, no role ids are explicitly excluded. | - |
roleIdsToInclude | string[] | Limits search results to the specified employee role ids. When both inclusion and exclusion lists are provided, inclusion takes precedence. When omitted, results are not restricted by an inclusion list. | - |
roleTypes | "ACTIVE" | "GOOD" | "ACCEPTED_AND_ACTIVE" | "NON_INIT" | "INIT" | "TERMINATED"[] | Limits search results using backend role-type presets. ACTIVE selects active employees. GOOD selects HIRED, ACCEPTED, and ACTIVE employees. ACCEPTED_AND_ACTIVE selects ACCEPTED and ACTIVE employees and excludes HIRED. NON_INIT selects all employee states except INIT, including TERMINATED. INIT selects the backend roleState INIT preset (hiring started but not completed) and is not additionally constrained to employees. TERMINATED selects terminated employees. Requires at least one value; defaults to GOOD. | - |
tip | string | Supplementary tip displayed with the label. Defaults to no tip. | - |
value | string | string[] | Controlled selection as an employee role id for single select or role id array for multi-select. When omitted, the component is uncontrolled. When value and defaultValue are both provided, value takes precedence. | - |
Events
change
Notes
- Use value for a controlled selection or defaultValue for an uncontrolled initial selection. If both are provided, value takes precedence. roleTypes defaults to GOOD. Limits search results using backend role-type presets. ACTIVE selects active employees. GOOD selects HIRED, ACCEPTED, and ACTIVE employees. ACCEPTED_AND_ACTIVE selects ACCEPTED and ACTIVE employees and excludes HIRED. NON_INIT selects all employee states except INIT, including TERMINATED. INIT selects the backend roleState INIT preset (hiring started but not completed) and is not additionally constrained to employees. TERMINATED selects terminated employees. Requires at least one value; defaults to GOOD. Loading, empty, and error behavior is inherited from Core EmployeeSearch. The change event is notification-only and has no payload; observe the selected employee role id or role ids through bound value state.
Example props
{
"elements": {
"employeeSearch": {
"children": [],
"props": {
"label": "Employee",
"roleTypes": [
"INIT"
],
"value": {
"$bindState": "/employeeSearch/selectedRoleId"
}
},
"type": "EmployeeSearch"
}
},
"root": "employeeSearch",
"state": {
"employeeSearch": {
"selectedRoleId": ""
}
}
}
A collapsible panel that expands or contracts to reveal additional detailed information. Use to organize related content within limited space, such as FAQs, settings menus, or side panels. Prefer a full scrolling page when users need to read all content.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
title * | string | Header text displayed in the expansion panel | - |
depth | number | Nesting depth for tree views | - |
horizontalCollapsedArrow | boolean | Arrow points right when collapsed instead of down | - |
indent | number | Indentation amount in px | - |
isDefaultOpen | boolean | Start expanded. | false |
isDisabled | boolean | Disable the panel. | false |
isOpen | boolean | Controlled expansion state. Bind to state for control | - |
isOutlined | boolean | Show border. | true |
shouldNotAnimate | boolean | Disable CSS animation. | false |
shouldNotUnmountChild | boolean | Keep child mounted when collapsed. | false |
theme | "COMPACT" | "NO_PADDING" | "REVERSED" | "UNDERLINED" | "LIST" | "NO_TOGGLE" | "NESTEDTAB_PADDING" | "HOVERBALE" | ... (20 values) | Visual style variant | - |
toggleIcon | object | Toggle icon layout options | - |
Events
toggle
Notes
- Slots:
default. - Place child elements inside as the expandable content. The title prop renders the panel header. The toggle event fires when expanded/collapsed. For controlled mode, bind isOpen to state. Theme guide — common variants: - COMPACT: reduced padding for dense layouts - REVERSED: chevron on the opposite side of the header - UNDERLINED: bottom border style instead of outlined box - LIST: list-style rows without box outline - NO_TOGGLE: hides the expand/collapse chevron - TRANSPARENT: no background fill - NO_PADDING: removes internal padding - SURFACE_BACKGROUND: uses surface-level background color Compound themes combine modifiers (e.g. REVERSED_TRANSPARENT_LIST = reversed + transparent + list style).
Example props
{
"isDefaultOpen": false,
"title": "Section Details"
}
A container that coordinates multiple ExpansionPanel children, optionally enforcing accordion behavior where only one panel can be open at a time. Use to organize related content into collapsible sections within limited space.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
isSingleOpen | boolean | Only allow one panel open at a time. | false |
Events
No events.
Notes
- Slots:
default. - Place ExpansionPanel elements as children. When isSingleOpen is true, expanding one panel automatically collapses others in the group.
Example props
{
"isSingleOpen": false
}
A layout wrapper that provides consistent structure around form inputs, including a label, required indicator, helper or error message, tooltip, read-only mode, and inline (side-by-side) layout option. Use Field to wrap any form input component.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
helperMessage | string | object | Helper text below the field, or object with message and status | - |
isHiddenInput | boolean | Hides the input portion of the field | - |
isInline | boolean | Renders label and input on the same line | - |
isReadOnly | boolean | Renders the field in read-only mode | - |
isRequired | boolean | Shows required asterisk next to the label | - |
label | string | Label text displayed above the field | - |
theme | "NO_MARGIN" | "NO_PADDING" | "NO_PADDING_NO_MARGIN" | Predefined style theme for margin/padding adjustments | - |
tip | string | Tooltip text shown next to the label via an info icon | - |
Events
No events.
Notes
- Slots:
default,label. - Field is a layout wrapper for form inputs. Place the actual input component in
children. Use the stringlabelprop for plain text orslots.labelfor rich label content; the named slot takes precedence. helperMessage can be a plain string or an object { message, status } where status "ERROR" shows the message as an error.
Example props
{
"helperMessage": "We will never share your email.",
"isRequired": true,
"label": "Email Address"
}
A compact file upload input for selecting one or more files via browse or drag-and-drop. Supports file type restrictions, size limits, and upload progress. Use for inline file fields in forms; use FileDrop for larger drag-and-drop zones with labels and validation.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
allowCameraCapture | boolean | object | Allow camera capture for image files; object form supports quality | - |
clickedFile | object | Bindable clicked file metadata written before chipClick emits | - |
cropperConfig | object | Image cropper configuration | - |
defaultValue | object[] | Default files to show when no value is provided | - |
icon | string | Icon name from Icon.TYPES to show above placeholder | - |
isDisabled | boolean | Disables the file input | - |
isInvalid | boolean | Shows error styling on the input | - |
isReadOnly | boolean | Makes the file input read-only (download only) | - |
isRequired | boolean | Marks the field as required | - |
maxFileSize | number | Max file size in MB per file. | 2048 |
maxTotalFileSize | number | Max total file size in MB for all files | - |
multiple | boolean | Allow multiple file uploads. | false |
name | string | Unique identifier for the file input | - |
placeholder | string | Label shown when no files are selected | - |
showProgress | boolean | Show upload progress bar. | false |
supportTypes | string[] | Array of supported file extensions, e.g. [".pdf", ".doc"] | - |
type | "DEFAULT" | "RECEIPT" | File input display type. | DEFAULT |
value | object[] | Array of file objects bound to state | - |
Events
changechipClickdelete
Notes
- supportTypes accepts file extensions like [".pdf", ".jpg"]. Use Input.File.SUPPORTED_TYPES presets like IMAGES, DOCUMENTS, etc. for common groups. Bind value to state to receive serializable FileState metadata; Blob/File content is converted to a base64 data URL string in content. The change event fires when files are selected or removed. The delete event fires when a file is removed. Bind clickedFile to state to receive clicked file metadata before chipClick emits.
Example props
{
"name": "resume",
"maxFileSize": 10,
"multiple": false,
"placeholder": "Upload your resume",
"supportTypes": [
".pdf",
".doc",
".docx"
],
"value": {
"$bindState": "/resume/files"
}
}
A file upload input that allows users to drag and drop files into a drop zone or click to browse. Supports single or multiple file uploads with configurable file type restrictions, size limits, and optional image cropping.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
allowCameraCapture | boolean | object | Allow camera capture for image files; object form supports quality | - |
aria-describedby | string | ID of element that describes this input | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
cropperConfig | object | Cropper configuration | - |
defaultValue | object[] | Default files to show when no value is provided | - |
enableCropper | boolean | Enable image cropping for selected images | - |
icon | string | Icon name from Icon.TYPES to show above placeholder | - |
id | string | HTML id attribute for the file input | - |
isDisabled | boolean | Disables the file input | - |
isReadOnly | boolean | Makes the file input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the file drop area | - |
maxFiles | integer | Max number of files allowed in total | - |
maxFileSize | number | Max file size in MB per attachment | - |
maxTotalFileSize | number | Max total size in MB for all attachments | - |
metadata | unknown | JSON-serializable metadata sent with upload requests | - |
module | string | Deprecated upload bucket hint; prefer metadata.module when possible | - |
multiPartUpload | boolean | Enables multipart upload flow for files larger than 100MB | - |
multiple | boolean | Allow selecting multiple files | - |
name | string | Unique identifier for the file input | - |
placeholder | string | Text shown when no files are selected | - |
supportTypes | string[] | Supported file extensions with dot prefix, e.g. [".pdf", ".png", ".jpg"]. Do NOT use MIME types. | - |
type | "upload" | "content" | Type of file drop: upload (shows progress bars automatically) or content. | content |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | object[] | Array of file objects bound to state | - |
Events
blurchange
Notes
- onChange stores an array of file objects in state, each with {name, type, content, progress, hasError} where content is a base64 data URL string. Use supportTypes with file extensions like [".pdf", ".png"] — NOT MIME types. Custom extensions are allowed. module is deprecated but supported for upload bucket hints; prefer metadata.module when possible. maxFiles limits the total selected files across the current value plus new picks; extra files are ignored and the user is told to remove a file before adding another. When multiple is false, only one file is stored.
Example props
{
"name": "documents",
"label": "Upload Documents",
"maxFiles": 2,
"maxFileSize": 10,
"multiple": true,
"placeholder": "Drag and drop files here or click to browse",
"supportTypes": [
".pdf",
".doc",
".docx"
],
"type": "content",
"value": {
"$bindState": "/form/documents"
}
}
A floating action button (FAB) that highlights the primary action on a screen, staying visible above other content. Uses an icon only (no text label) and typically appears once per screen for key tasks like creating, favoriting, or sharing.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
icon * | string | object | Icon to display. Can be icon name string or object with type and color | - |
aria-controls | string | ID of element controlled by the button | - |
aria-describedby | string | ID of element that describes the button | - |
aria-expanded | boolean | Indicates expanded state (for toggles) | - |
aria-haspopup | boolean | string | Indicates the button opens a popup/menu | - |
aria-label | string | Accessible label for the button. Required if aria-labelledby is not provided. | - |
aria-labelledby | string | ID of element that labels the button. Required if aria-label is not provided. | - |
aria-pressed | boolean | "mixed" | Indicates pressed state (for toggle buttons) | - |
id | string | DOM id selector for the button element | - |
inverseDisabledColors | boolean | Uses inverse color tokens for disabled state. Useful for dark backgrounds. | false |
isDisabled | boolean | If true, button is disabled. | false |
shouldPreventFocus | boolean | If true, the button will not be focusable (tabIndex -1). | false |
shouldShowSpinner | boolean | If true, shows loading spinner instead of icon | - |
size | "XS" | "S" | "M" | "L" | Size of the button (XS, S, M, L). | M |
tabIndex | number | Tab order for keyboard navigation | - |
tip | string | object | Tooltip text or tooltip configuration object | - |
to | string | object | Navigation destination. When provided, button renders as anchor and handles navigation automatically | - |
type | "button" | "submit" | "reset" | HTML button type attribute (button, submit, reset). | button |
Events
mouseEntermouseLeavepresspressWhileDisabled
Notes
- Event handling: - onClick emits 'press' event (no parameters) - onClickWhileDisabled emits 'pressWhileDisabled' event (no parameters) - onMouseEnter emits 'mouseEnter' event (no parameters) - onMouseLeave emits 'mouseLeave' event (no parameters) Inter-prop dependencies: - Either aria-label or aria-labelledby is REQUIRED for accessibility - When 'to' prop is provided, button renders as anchor and handles navigation automatically - shouldPreventFocus sets tabIndex to -1 (overrides explicit tabIndex prop) Icon format: - Icon is resolved from Icon.TYPES (e.g., "EDIT_OUTLINE" → Icon.TYPES.EDIT_OUTLINE) - Custom color only applies to icon object format with a Pebble text/icon color token Spinner behavior: - When shouldShowSpinner is true, spinner replaces icon regardless of icon prop
Example props
{
"aria-label": "Create new item",
"icon": "ADD",
"tip": "Create"
}
A form container that groups inputs together with shared submit/cancel/validation behavior. Use to collect a set of related field values and submit them as one unit. Supports a settings mode with edit/readonly toggling.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
bottomPadding | boolean | Adds bottom padding to the form. | true |
caption | string | Subtext shown beneath the title | - |
editButton | boolean | object | Settings edit button visibility/configuration. | true |
inlineLabel | boolean | Renders fields with inline labels (label and input side-by-side) | - |
isDefaultEdit | boolean | Initial edit state in settings mode. Requires isSettings: true | - |
isDisabled | boolean | Disables the entire form | - |
isEdit | boolean | Bind to state to externally control settings edit mode. Requires isSettings: true | - |
isFluid | boolean | Stretches fields to fill horizontal space. | true when settings/inlineLabel |
isSettings | boolean | Renders form with edit/readonly modes (settings form) | - |
noFooter | boolean | Removes the form footer. | false |
noVerticalSpacing | boolean | Removes vertical margin from settings form | - |
shouldHaveStickyFooter | boolean | Pins the footer to the bottom of the screen | - |
shouldHaveStickyFooterOffset | boolean | Adds offset to prevent overlap when footer is sticky. | true |
shouldStopFormPropagation | boolean | Stops form-submit event from bubbling — for nested forms | - |
shouldTriggerChangeOnInputUnmount | boolean | Fires change event when an input unmounts. | false |
shouldTrimOnSubmit | boolean | Trims string values on submit. | false |
skipButton | object | Secondary skip action. Click emits the skip event. | - |
submitButtonLabel | string | Deprecated submit button label. Prefer submitButtonProps.label for new specs | - |
submitButtonProps | object | Configuration for the form submit button | - |
successMessage | string | Message shown in a snackbar after a successful submit | - |
theme | "NO_CARD" | "NO_MARGIN_Y" | "V2" | Predefined form style theme | - |
title | string | Form title shown in header | - |
validationErrors | object | External validation errors keyed by input name | - |
values | object | Form values model. Written to state on change/submit (read-only — push-only) | - |
width | number | string | Custom form container width (applies only to settings forms) | - |
Events
cancelchangeeditinvalidskipsubmitvalid
Notes
- Slots:
default. - Container for form inputs with built-in submit/cancel/edit-mode handling. Render Form* inputs as children — they own their own state via their
valueprop. Two binding surfaces (independent — use either, both, or neither): 1. Per-inputvalue($bindState) — BIDIRECTIONAL. The canonical way to read or write field state. Externalsetactions reach the input; the input writes back on user edit. Use this when actions (mutex rules, normalization, prefill) need to mutate field values, or whenonSubmitreads them. 2.values($bindState on Form) — PUSH-ONLY aggregate. Form writes the merged\{name: value\}map to the bound path on every change. External writes to that path do NOT propagate back into inputs. Use only when something outside the form needs to observe the whole map; do not use to control inputs.isSettings=truerenders the native edit/readonly toggle plus Save/Cancel buttons; pair withisEdit($bindState) to control the mode.onSubmitfires with current values; use per-inputvalue$state refs in the payload rather than relying onvalues.skipButtonrenders a secondary footer action, supports the same icon format assubmitButtonProps.icon, and emitsskipwhen clicked. ExternalvalidationErrorsmerge with input-reported errors; clear an error by writing a falsy value to that key.
Example props
{
"elements": {
"form": {
"children": [
"nameField"
],
"on": {
"change": [
{
"action": "setState",
"params": {
"statePath": "/profile/lastEvent",
"value": "change"
}
}
],
"submit": [
{
"action": "setState",
"params": {
"statePath": "/profile/submitted",
"value": true
}
}
]
},
"props": {
"caption": "Update your personal details",
"submitButtonProps": {
"label": "Save"
},
"title": "Profile",
"validationErrors": {
"$bindState": "/profile/errors"
},
"values": {
"$bindState": "/profile/values"
}
},
"type": "Form"
},
"nameField": {
"children": [],
"props": {
"name": "fullName",
"isRequired": true,
"label": "Full name"
},
"type": "FormText"
}
},
"root": "form",
"state": {
"profile": {
"errors": {},
"lastEvent": null,
"submitted": false,
"values": {}
}
}
}
A Form-registered checkbox for use inside a Form component.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
defaultValue | boolean | Initial checked state when uncontrolled | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isIndeterminate | boolean | Sets checkbox to indeterminate (neither checked nor unchecked) state | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text for the checkbox. Ignored when the element has children (rich label). | - |
secondaryLabel | string | Secondary text below the label | - |
shouldPreventFocus | boolean | Prevent the checkbox from receiving focus | - |
theme | "FLUID_WIDTH" | "REVERSE" | "FLUID_WIDTH_SPACE_BETWEEN_REVERSE" | Visual theme variant | - |
tip | string | Tooltip text shown on hover | - |
title | string | Form field label shown outside the checkbox | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | boolean | Current value bound to state | - |
variant | "BOX" | "LIST" | "GRID" | Display variant | - |
Events
change
Notes
- Slots:
default,label. - Must be placed inside a Form element — registers with Form and does not work standalone. Stores a boolean (true/false) value keyed by
namein the parent Form's values. UsedefaultValue: trueto pre-check the box. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change". Rich labels:slots.labeltakes precedence over legacy label children, which take precedence over the stringlabelprop. Use Text with inline=true so copy and links flow inline, and Link with href. Note: the label container programmatically clicks the input, so clicking an embedded Link will also toggle the checkbox. Prefer the plain stringlabelfor simple text.
Example props
{
"elements": {
"agree": {
"children": [
"copy",
"link"
],
"props": {
"name": "agree",
"isRequired": true
},
"type": "FormCheckbox"
},
"copy": {
"children": [],
"props": {
"inline": true,
"text": "I have read and agree to the "
},
"type": "Text"
},
"form": {
"children": [
"agree"
],
"props": {
"submitButtonProps": {
"label": "Submit"
},
"title": "Terms",
"values": {
"$bindState": "/terms/values"
}
},
"type": "Form"
},
"link": {
"children": [],
"props": {
"href": "/terms",
"text": "Terms and Conditions"
},
"type": "Link"
}
},
"root": "form",
"state": {
"terms": {
"values": {}
}
}
}
A Form-registered checkbox group for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Array of {label, value} checkbox items | - |
name * | string | Field name — drives the Form value key inside the parent Form | - |
defaultValue | unknown[] | Initial array of selected values when uncontrolled | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
id | string | HTML id attribute for the checkbox group | - |
isDisabled | boolean | Disables the input | - |
isHorizontal | boolean | Arrange options in a row | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the checkbox group | - |
theme | "FLUID_WIDTH" | "REVERSE" | "FLUID_WIDTH_SPACE_BETWEEN_REVERSE" | Theme styling: FLUID_WIDTH for full-width options, REVERSE for reversed theme | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | unknown[] | Array of selected values bound to state ($bindState) | - |
variant | "BOX" | "LIST" | "GRID" | Visual variant: BOX for boxed layout, LIST for list layout, GRID for grid layout | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Stores an array of selected values keyed bynamein the parent Form's values. Uses Form.Input.Checkbox.Group internally — the Form-aware variant of CheckboxGroup. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change".
Example props
{
"elements": {
"form": {
"children": [
"perms"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Permissions",
"values": {
"$bindState": "/permissions/values"
}
},
"type": "Form"
},
"perms": {
"children": [],
"props": {
"name": "permissions",
"isRequired": true,
"label": "Access level",
"list": [
{
"label": "Read",
"value": "read"
},
{
"label": "Write",
"value": "write"
},
{
"label": "Admin",
"value": "admin"
}
]
},
"type": "FormCheckboxGroup"
}
},
"root": "form",
"state": {
"permissions": {
"values": {}
}
}
}
A Form layout helper that aligns non-input content to the same width and spacing rules as form fields.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
isFluid | boolean | Overrides whether content follows fluid form width. Defaults to the parent Form. | - |
Events
No events.
Notes
- Slots:
default. - Maps to Pebble
Form.Content. Use insideFormwhen adding explanatory text, helper content, or custom UI that should align with the form field column.isFluidoverrides the parent Form fluid layout for this content block.
Example props
{
"elements": {
"content": {
"children": [
"hint"
],
"props": {},
"type": "FormContent"
},
"form": {
"children": [
"content"
],
"props": {
"noFooter": true,
"title": "Profile"
},
"type": "Form"
},
"hint": {
"children": [],
"props": {
"text": "Use your legal name as it appears on government documents."
},
"type": "Text"
}
},
"root": "form",
"state": {}
}
A Form-registered currency field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
allowNegative | boolean | Whether negative values are allowed. | true |
canSelectCurrencyType | boolean | If true, displays a dropdown to select currency type | - |
currencyTypeProps | object | Nested Select props for the currency selector | - |
decimalPlaces | number | Number of decimal places allowed. | 2 |
defaultValue | string | number | null | object | Initial currency value set in Form on mount | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
locale | string | Locale string for number formatting (e.g. en-US). Overrides shouldLocalize when set. | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Currency symbol or code shown as prefix. | USD |
shouldSendCurrencyType | boolean | If true, onChange writes { value, type } using currencyTypeProps value/defaultValue | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | number | null | object | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Values flow through the parent Form'svaluespush-binding on submit/change. Useprefixto set the currency symbol (e.g. "USD", "$"). UsedecimalPlacesto control precision. Default is 2. SetallowNegative: falseto restrict to non-negative values. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"amount": {
"children": [],
"props": {
"name": "amount",
"defaultValue": 50000,
"isRequired": true,
"label": "Base salary",
"prefix": "USD"
},
"type": "FormCurrency"
},
"form": {
"children": [
"amount"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Salary",
"values": {
"$bindState": "/salary/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"salary": {
"values": {}
}
}
}
A Form-registered date picker for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
canClear | boolean | Show clear button | - |
defaultValue | string | null | Initial date value (yyyy-MM-dd) or null set in Form on mount | - |
format | "yyyy/MM/dd" | "yyyy-MM-dd" | "MM/dd/yyyy" | "dd/MM/yyyy" | "yyyy/MM/dd hh:mm a" | "yyyy-MM-dd hh:mm a" | "MM/dd/yyyy hh:mm a" | "dd/MM/yyyy hh:mm a" | ... (13 values) | Date display format. | MM/dd/yyyy |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
id | string | HTML id attribute for the input | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the date picker | - |
locale | string | Locale for date formatting. | en-US |
maxDate | string | Latest selectable date as ISO string | - |
minDate | string | Earliest selectable date as ISO string | - |
shouldLocalize | boolean | If true, display format will be determined from user locale setting. | false for explicit format control |
shouldShowTime | boolean | Include time selection | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
theme | "NO_BOX" | Visual theme variant. NO_BOX removes input box styling | - |
timezone | string | Timezone name (e.g. "America/New_York"). Used with shouldShowTime | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | null | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Stores a date string in the chosen format (default:yyyy-MM-dd) keyed bynamein the parent Form's values. Always supply defaultValue as a yyyy-MM-dd string regardless of the display format. Bindvaluewith\{ \$bindState: "/path" \}to initialize the date picker from state and keep state in sync. Reads initial value from state (controlled); access current date in on.change actions via\{ \$state: "/path" \}. onChange emits "change".
Example props
{
"elements": {
"form": {
"children": [
"startDate"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Schedule",
"values": {
"$bindState": "/schedule/values"
}
},
"type": "Form"
},
"startDate": {
"children": [],
"props": {
"name": "startDate",
"isRequired": true,
"label": "Start date"
},
"type": "FormDate"
}
},
"root": "form",
"state": {
"schedule": {
"values": {}
}
}
}
A Form-registered date range picker for selecting start and end dates inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
alwaysShowTimezone | boolean | If true, timezone abbreviation will always be shown when shouldShowTime is true. | false |
canClear | boolean | Show clear button | - |
defaultValue | string | null[] | null | Initial date range value [start, end] or null set in Form on mount | - |
divider | string | Separator between date units (e.g. "/" or "-") | - |
endDateLabel | string | Label for the end date field | - |
format | "yyyy/MM/dd" | "yyyy-MM-dd" | "MM/dd/yyyy" | "dd/MM/yyyy" | "yyyy/MM/dd hh:mm a" | "yyyy-MM-dd hh:mm a" | "MM/dd/yyyy hh:mm a" | "dd/MM/yyyy hh:mm a" | ... (13 values) | Date display format. | MM/dd/yyyy |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
hideStepper | boolean | If true, arrow navigation key to increment/decrement date will be hidden. | false |
id | string | HTML id attribute for the date range input | - |
isCalendarDefaultOpen | boolean | If true, calendar will be open by default on mount | - |
isDisabled | boolean | Disables the input | - |
isLarge | boolean | Renders large calendar when true. | false |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the date range picker | - |
locale | string | Locale for date formatting | - |
maxDate | string | Latest selectable date as ISO string | - |
minDate | string | Earliest selectable date as ISO string | - |
shouldFormatInTimezone | boolean | If true, values will transform according to global timezone. Defaults to true when shouldShowTime is true | - |
shouldLocalize | boolean | If true, display format is determined from user locale. | true |
shouldShowTime | boolean | Include time selection | - |
shouldShowTimezoneLabel | boolean | If false, timezone label will not be shown. | true |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
startDateLabel | string | Label for the start date field | - |
theme | "NO_BOX" | Visual theme variant. NO_BOX removes input box styling | - |
timezone | string | Timezone for date/time display and storage. Used with shouldShowTime | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | null[] | null | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Stores an array of two date strings [startDate, endDate] keyed bynamein the parent Form values. Bindvaluewith\{ \$bindState: "/path" \}to initialize the range picker from state and keep state in sync. onChange emits "change".
Example props
{
"elements": {
"form": {
"children": [
"range"
],
"props": {
"submitButtonProps": {
"label": "Submit"
},
"title": "Time off",
"values": {
"$bindState": "/request/values"
}
},
"type": "Form"
},
"range": {
"children": [],
"props": {
"name": "dateRange",
"endDateLabel": "End date",
"isRequired": true,
"label": "Date range",
"startDateLabel": "Start date"
},
"type": "FormDateRange"
}
},
"root": "form",
"state": {
"request": {
"values": {}
}
}
}
A Form-registered day-of-week selector for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
defaultValue | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"[] | Initial day(s) when uncontrolled | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isMulti | boolean | Allow multiple day selection. | false |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
renderProps | object | Per-day configuration. Keys are day names (Sunday, Monday, etc.). Each can have isDisabled (boolean) and tip (object with content string) | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | unknown | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Single-select stores a day name string; isMulti stores an array of day name strings. Valid day names: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. Values flow through the parent Form'svaluespush-binding on submit/change. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change". DaySelector has no onBlur event.
Example props
{
"elements": {
"form": {
"children": [
"workdays"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Schedule",
"values": {
"$bindState": "/schedule/values"
}
},
"type": "Form"
},
"workdays": {
"children": [],
"props": {
"name": "workdays",
"defaultValue": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"isMulti": true,
"label": "Work days"
},
"type": "FormDaySelector"
}
},
"root": "form",
"state": {
"schedule": {
"values": {}
}
}
}
A Form-registered email field with built-in email validation, for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
autoComplete | string | Browser autocomplete hint | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
placeholder | string | Placeholder text when empty | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
stringPadding | object | Pads input value with character until reaching maxLength | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | null | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Pebble applies isEmail validation by default for Form.Input.Email. Values flow through the parent Form'svaluespush-binding on submit/change. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"email": {
"children": [],
"props": {
"name": "email",
"isRequired": true,
"label": "Email address",
"placeholder": "you@example.com"
},
"type": "FormEmail"
},
"form": {
"children": [
"email"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Contact",
"values": {
"$bindState": "/contact/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"contact": {
"values": {}
}
}
}
Search for and select one or more employees as a registered form field. Supports ACTIVE; GOOD (HIRED, ACCEPTED, and ACTIVE); ACCEPTED_AND_ACTIVE (excluding HIRED); NON_INIT (all employee states except INIT, including TERMINATED); INIT (hiring started but not completed; the backend preset is roleState INIT and is not employee-constrained); and TERMINATED. The change event is notification-only and has no payload.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Non-empty field name used to register this employee role-id value with the parent form. | - |
canClear | boolean | Controls whether the current selection can be cleared. When omitted, the underlying select default applies. | - |
defaultValue | string | string[] | Initial uncontrolled selection as an employee role id for single select or role id array for multi-select. Defaults to no selection. | - |
isDisabled | boolean | When true, disables searching and selection changes. Defaults to false. | - |
isMulti | boolean | When true, allows multiple employee selections and uses role id arrays. Defaults to false (single select). | - |
isReadOnly | boolean | When true, displays the selection without allowing changes. Defaults to false. | - |
isRequired | boolean | When true, marks the field as required. Defaults to the form control default (not required). | - |
label | string | Label displayed for the search field. Defaults to no label. | - |
placeholder | string | Placeholder displayed when the search field is empty. When omitted, the component default placeholder is used. | - |
roleIdsToExclude | string[] | Removes the specified employee role ids from search results when no inclusion list is provided. When both lists are provided, inclusion takes precedence. When omitted, no role ids are explicitly excluded. | - |
roleIdsToInclude | string[] | Limits search results to the specified employee role ids. When both inclusion and exclusion lists are provided, inclusion takes precedence. When omitted, results are not restricted by an inclusion list. | - |
roleTypes | "ACTIVE" | "GOOD" | "ACCEPTED_AND_ACTIVE" | "NON_INIT" | "INIT" | "TERMINATED"[] | Limits search results using backend role-type presets. ACTIVE selects active employees. GOOD selects HIRED, ACCEPTED, and ACTIVE employees. ACCEPTED_AND_ACTIVE selects ACCEPTED and ACTIVE employees and excludes HIRED. NON_INIT selects all employee states except INIT, including TERMINATED. INIT selects the backend roleState INIT preset (hiring started but not completed) and is not additionally constrained to employees. TERMINATED selects terminated employees. Requires at least one value; defaults to GOOD. | - |
tip | string | Supplementary tip displayed with the label. Defaults to no tip. | - |
value | string | string[] | Controlled selection as an employee role id for single select or role id array for multi-select. When omitted, the component is uncontrolled. When value and defaultValue are both provided, value takes precedence. | - |
Events
change
Notes
- Provide a non-empty name to register the field with its parent form. If value and defaultValue are both provided, value takes precedence. roleTypes defaults to GOOD. Limits search results using backend role-type presets. ACTIVE selects active employees. GOOD selects HIRED, ACCEPTED, and ACTIVE employees. ACCEPTED_AND_ACTIVE selects ACCEPTED and ACTIVE employees and excludes HIRED. NON_INIT selects all employee states except INIT, including TERMINATED. INIT selects the backend roleState INIT preset (hiring started but not completed) and is not additionally constrained to employees. TERMINATED selects terminated employees. Requires at least one value; defaults to GOOD. Loading, empty, and error behavior is inherited from Core EmployeeSearch. The change event is notification-only and has no payload; observe the selected employee role id or role ids through bound value state.
Example props
{
"elements": {
"employeeSearch": {
"children": [],
"props": {
"name": "employeeRoleId",
"isRequired": true,
"label": "Employee",
"value": {
"$bindState": "/form/employeeRoleId"
}
},
"type": "FormEmployeeSearch"
},
"form": {
"children": [
"employeeSearch"
],
"props": {
"submitButtonProps": {
"label": "Assign"
},
"title": "Assign an employee"
},
"type": "Form"
}
},
"root": "form",
"state": {
"form": {
"employeeRoleId": ""
}
}
}
A Form-registered file upload field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
allowCameraCapture | boolean | object | Allow camera capture for image files; object form supports quality | - |
cropperConfig | object | Cropper configuration | - |
defaultValue | object[] | Default files to show when no value is provided | - |
enableCropper | boolean | Enable image cropping for selected images | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
icon | string | Icon name from Icon.TYPES to show above placeholder | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the file drop area | - |
maxFileSize | number | Max file size in MB per attachment | - |
maxTotalFileSize | number | Max total size in MB for all attachments | - |
multiple | boolean | Allow selecting multiple files | - |
placeholder | string | Text shown when no files are selected | - |
showProgress | boolean | Show upload progress bar. | false |
supportTypes | string[] | Supported file extensions with dot prefix, e.g. [".pdf", ".png", ".jpg"]. Do NOT use MIME types. | - |
tip | string | Tooltip text shown alongside the field label | - |
type | "DEFAULT" | "RECEIPT" | File input display type. | DEFAULT |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | object[] | Array of file objects bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Individual values are not bound to state; they flow through the parent Form'svaluespush-binding on submit/change. Usevalidationsfor Form rule strings. UsevalidationErrorsto override default error messages per rule.isRequiredblocks form submission when empty and shows an error. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur". supportTypes expects file extensions with dot prefix, e.g. [".pdf", ".png", ".jpg"]. Do NOT use MIME types.
Example props
{
"elements": {
"documents": {
"children": [],
"props": {
"name": "attachments",
"isRequired": true,
"label": "Attachments",
"maxFileSize": 10,
"multiple": true,
"placeholder": "Click to browse files",
"supportTypes": [
".pdf",
".doc",
".docx"
]
},
"type": "FormFile"
},
"form": {
"children": [
"documents"
],
"props": {
"submitButtonProps": {
"label": "Submit"
},
"title": "Upload Documents",
"values": {
"$bindState": "/upload/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"upload": {
"values": {}
}
}
}
A Form-registered file upload field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
allowCameraCapture | boolean | object | Allow camera capture for image files; object form supports quality | - |
cropperConfig | object | Cropper configuration | - |
defaultValue | object[] | Default files to show when no value is provided | - |
enableCropper | boolean | Enable image cropping for selected images | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
icon | string | Icon name from Icon.TYPES to show above placeholder | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the file drop area | - |
maxFiles | integer | Max number of files allowed in total | - |
maxFileSize | number | Max file size in MB per attachment | - |
maxTotalFileSize | number | Max total size in MB for all attachments | - |
metadata | unknown | JSON-serializable metadata sent with upload requests | - |
multiPartUpload | boolean | Enables multipart upload flow for files larger than 100MB | - |
multiple | boolean | Allow selecting multiple files | - |
placeholder | string | Text shown when no files are selected | - |
supportTypes | string[] | Supported file extensions with dot prefix, e.g. [".pdf", ".png", ".jpg"]. Do NOT use MIME types. | - |
tip | string | Tooltip text shown alongside the field label | - |
type | "upload" | "content" | Type of file drop: upload (shows progress bars automatically) or content. | content |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | object[] | Array of file objects bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Individual values are not bound to state; they flow through the parent Form'svaluespush-binding on submit/change. Usevalidationsfor Form rule strings. UsevalidationErrorsto override default error messages per rule.isRequiredblocks form submission when empty and shows an error. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur". supportTypes expects file extensions with dot prefix, e.g. [".pdf", ".png", ".jpg"]. Do NOT use MIME types. maxFiles counts files already in the field and newly selected files together; extra files are ignored until a file is removed. Use metadata to pass JSON-serializable upload context through to the underlying FileDrop upload flow.
Example props
{
"elements": {
"documents": {
"children": [],
"props": {
"name": "attachments",
"isRequired": true,
"label": "Attachments",
"maxFileSize": 10,
"multiple": true,
"placeholder": "Drag and drop files here or click to browse",
"supportTypes": [
".pdf",
".doc",
".docx"
]
},
"type": "FormFileDrop"
},
"form": {
"children": [
"documents"
],
"props": {
"submitButtonProps": {
"label": "Submit"
},
"title": "Upload Documents",
"values": {
"$bindState": "/upload/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"upload": {
"values": {}
}
}
}
A Form subsection container with an optional title, caption, and tooltip for grouping related fields.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
caption | string | Supporting text shown below the group title | - |
tip | string | Tooltip text shown beside the group title | - |
title | string | Group heading text | - |
Events
No events.
Notes
- Slots:
default. - Maps to Pebble
Form.Group. Use insideFormto divide long forms into titled subsections. Requires children; PebbleForm.Grouprenders nothing when empty.
Example props
{
"elements": {
"name": {
"children": [],
"props": {
"name": "fullName",
"label": "Full name"
},
"type": "FormText"
},
"form": {
"children": [
"personal"
],
"props": {
"noFooter": true,
"title": "Profile"
},
"type": "Form"
},
"personal": {
"children": [
"name"
],
"props": {
"caption": "Used for tax and payroll records.",
"title": "Personal"
},
"type": "FormGroup"
}
},
"root": "form",
"state": {}
}
Deprecated Form group header primitive. Prefer FormGroup for new specs because it owns both header and grouped children.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
caption | string | Supporting text shown below the group title | - |
tip | string | Tooltip text shown beside the group title | - |
title | string | Group heading text | - |
Events
No events.
Notes
- Maps to deprecated Pebble
Form.GroupHeader. PreferFormGroupunless preserving legacy layout semantics is required. Renders nothing when bothtitleandcaptionare omitted.
Example props
{
"elements": {
"form": {
"children": [
"header"
],
"props": {
"noFooter": true,
"title": "Profile"
},
"type": "Form"
},
"header": {
"children": [],
"props": {
"caption": "Used for tax and payroll records.",
"title": "Personal"
},
"type": "FormGroupHeader"
}
},
"root": "form",
"state": {}
}
A Form-registered hidden field for use inside a Form. Renders no UI — use to inject computed values into the Form submit payload.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
defaultValue | unknown | Initial value to register with Form on mount | - |
Events
No events.
Notes
- Renders nothing — registers a hidden Form field. Use to inject computed values into the Form submit payload.
Example props
{
"elements": {
"form": {
"children": [
"hiddenRole"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Profile",
"values": {
"$bindState": "/data/values"
}
},
"type": "Form"
},
"hiddenRole": {
"children": [],
"props": {
"name": "role",
"defaultValue": "admin"
},
"type": "FormHidden"
}
},
"root": "form",
"state": {
"data": {
"values": {}
}
}
}
A Form layout helper that arranges two or three child fields side by side in a single row.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
customChildWidths | string[] | Per-child widths. Must match child count and sum to 100%. | - |
tip | string | Tooltip text shown beside the group label | - |
title | string | Inline group label text | - |
Events
No events.
Notes
- Slots:
default. - Maps to Pebble
Form.InlineGroup. Use inside non-settings Forms to place related fields in one row. WhencustomChildWidthsis provided, the number of widths must equal the number of valid child elements and sum to 100%. In inline-label/settings forms, Pebble renders children without the inline-group grid layout.
Example props
{
"elements": {
"city": {
"children": [],
"props": {
"name": "city",
"label": "City"
},
"type": "FormText"
},
"cityState": {
"children": [
"city",
"state"
],
"props": {
"customChildWidths": [
"60%",
"40%"
],
"title": "Location"
},
"type": "FormInlineGroup"
},
"form": {
"children": [
"cityState"
],
"props": {
"noFooter": true,
"title": "Address"
},
"type": "Form"
},
"state": {
"children": [],
"props": {
"name": "state",
"label": "State"
},
"type": "FormText"
}
},
"root": "form",
"state": {}
}
A Form-registered grouped input layout that combines one main input with optional prefix and suffix inputs.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
input * | object | Main input configuration with type and inputProps | - |
name * | string | Field name — drives the Form value key inside the parent Form | - |
defaultValue | unknown | Initial value for the main input on mount | - |
hasSeparateFormControls | boolean | When true, prefix and suffix input configurations are rendered as separate Form fields inside the group | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables all inputs in the group | - |
isReadOnly | boolean | Makes all inputs in the group read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text shown by the Form field wrapper | - |
prefix | object | object[] | Prefix input configuration(s) prepended to the main input | - |
prefixMaxWidthPercent | number | Max width percentage for the prefix container | - |
prefixMinWidth | number | string | Minimum width for the prefix container | - |
shouldHideAddons | boolean | Hides prefix/suffix without destroying them | - |
size | "XS" | "S" | "M" | "L" | Size of all inputs in the group. | M |
suffix | object | object[] | Suffix input configuration(s) appended to the main input | - |
suffixMaxWidthPercent | number | Max width percentage for the suffix container | - |
suffixMinWidth | number | string | Minimum width for the suffix container | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | unknown | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element.input,prefix, andsuffixuse the same input configuration shape as standalone InputGroup; theirinputPropsare direct Pebble input props. For nested Select inputs, use Pebblelistinstead of the json-render Select catalogoptionsprop.valueanddefaultValueapply to the maininput; prefix/suffix values should live in their own inputProps whenhasSeparateFormControlsis true. The wrapper injects Form value handlers and defaultsinput.inputProps.namefrom the top-levelnamewhen omitted. SethasSeparateFormControlsto true when prefix/suffix configs should register their own form values. onChange emits "change" for changes from the main input.
Example props
{
"elements": {
"amount": {
"children": [],
"props": {
"name": "amount",
"input": {
"inputProps": {
"placeholder": "0.00"
},
"type": "Number"
},
"label": "Amount",
"prefix": {
"inputProps": {
"name": "currency",
"list": [
{
"label": "USD",
"value": "USD"
}
]
},
"type": "Select"
}
},
"type": "FormInputGroup"
},
"form": {
"children": [
"amount"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Amount",
"values": {
"$bindState": "/amount/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"amount": {
"values": {}
}
}
}
A Form-registered masked text input for values with a fixed format.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
mask * | string | string[] | Mask pattern. Use 9 for digit, a for letter, * for any character. Can be string ("999-999-9999") or array of patterns (["99.9a-999", "99.99/99-9"]) for multi-mask support | - |
name * | string | Field name — drives the Form value key inside the parent Form | - |
aria-label | string | Accessible label when no visible label | - |
autoComplete | string | Browser autocomplete hint. | off |
autoFocus | boolean | Auto-focus input on mount | - |
defaultValue | string | Initial masked value set in Form on mount | - |
fixedCharsPrefix | string | Fixes characters at the beginning of the value | - |
fixedCharsSuffix | string | Fixes characters at the end of the value | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
id | string | Explicit HTML element id | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
isSensitive | boolean | Marks input as sensitive for privacy/security | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character length | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character length | - |
placeholder | string | Placeholder text when empty | - |
shouldEnforceUpperCase | boolean | Enforces uppercase on input characters | - |
shouldSkipInitialFormatting | boolean | If true, skip applying mask on the default/initial value | - |
shouldUnmaskValue | boolean | If true, onChange passes the unmasked value (without mask characters) | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Mask characters: 9 = digit, a = letter, * = any character. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"form": {
"children": [
"ssn"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Identity",
"values": {
"$bindState": "/identity/values"
}
},
"type": "Form"
},
"ssn": {
"children": [],
"props": {
"name": "ssn",
"label": "SSN",
"mask": "999-99-9999",
"placeholder": "___-__-____"
},
"type": "FormMasker"
}
},
"root": "form",
"state": {
"identity": {
"values": {}
}
}
}
A Form-registered numeric field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
autoComplete | string | Browser autocomplete hint. | "off" |
autoFocus | boolean | Auto-focus on mount | - |
decimalPlaces | number | Number of decimal places. | 2 |
defaultValue | string | number | Initial default value for uncontrolled usage | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isIntegerOnly | boolean | Restrict to integer values only | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
locale | string | Locale string for number formatting (e.g. "en-US", "de-DE") | - |
max | number | Maximum allowed value | - |
maxLength | number | Maximum character count | - |
maxWidth | string | Maximum width CSS value | - |
min | number | Minimum allowed value. | 0 |
minLength | number | Minimum character count | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text prefix inside the input | - |
shouldAllowCalculation | boolean | If true, input allows arithmetic operators and evaluates on blur | - |
shouldDisableFormatting | boolean | If true, number formatting will not be applied. | true |
shouldDisableRedundantZeroFormatting | boolean | If true, redundant zeros are preserved. | true |
shouldStripLeadingZeros | boolean | If true, leading zeros are stripped from the numeric value | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
step | number | Increment/decrement step size. | 1 |
stringPadding | object | Adds padding characters to the input value | - |
suffix | string | Text suffix inside the input | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | number | Current value bound to state | - |
Events
blurchangechangeCalculationStatechangeRaw
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Values flow through the parent Form'svaluespush-binding on submit/change. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"age": {
"children": [],
"props": {
"name": "age",
"isRequired": true,
"label": "Age",
"max": 120,
"min": 18
},
"type": "FormNumber"
},
"form": {
"children": [
"age"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Settings",
"values": {
"$bindState": "/settings/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"settings": {
"values": {}
}
}
}
A Form-registered password field with show/hide toggle, for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
autoCapitalize | "off" | "none" | "on" | "sentences" | "words" | "characters" | Auto-capitalization: off, none, on, sentences, words, or characters | - |
autoComplete | string | Browser autocomplete hint | - |
autoCorrect | "off" | "on" | Auto-correct: off or on | - |
autoFocus | boolean | Auto-focus on mount | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
inputMode | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | Virtual keyboard type hint | - |
isDisabled | boolean | Disables the input | - |
isOriginalInputReadOnly | boolean | Sets readonly mode directly on input HTML element | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
minLength | number | Minimum character count | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text or icon name from Icon.TYPES to show before the input value | - |
readOnlyAffixSpacing | boolean | Controls gap between affixes and value in read-only mode. Set false to remove gap | true |
shouldAllowReveal | boolean | Show password reveal toggle. | true |
shouldPersistCursorPosition | boolean | Persist cursor position for controlled input. | false |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
stringPadding | object | Pads input value with character until reaching maxLength | - |
suffix | string | Text or icon name from Icon.TYPES to show after the input value | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Includes a built-in show/hide toggle for the password. Values flow through the parent Form'svaluespush-binding on submit/change. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"form": {
"children": [
"password"
],
"props": {
"submitButtonProps": {
"label": "Update"
},
"title": "Change Password",
"values": {
"$bindState": "/pwd/values"
}
},
"type": "Form"
},
"password": {
"children": [],
"props": {
"name": "password",
"isRequired": true,
"label": "New password",
"validationErrors": {
"minLength": "Password must be at least 8 characters"
},
"validations": "minLength:8"
},
"type": "FormPassword"
}
},
"root": "form",
"state": {
"pwd": {
"values": {}
}
}
}
A Form-registered percentage field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
allowNegative | boolean | Whether negative values are allowed. | false |
decimalPlaces | number | Number of decimal places allowed. | 2 |
defaultValue | number | Default percentage value when uncontrolled | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
locale | string | Locale string for percentage formatting (e.g. en-US) | - |
lowerLimit | number | Minimum allowed percentage value | - |
placeholder | string | Placeholder text when empty | - |
shouldDisableFormatting | boolean | If true, percentage formatting will not be applied | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
step | number | Increment/decrement step size. | 1 |
tip | string | Tooltip text shown alongside the field label | - |
upperLimit | number | Maximum allowed percentage value. | 100 |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | number | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Values flow through the parent Form'svaluespush-binding on submit/change. UselowerLimitandupperLimitto constrain the allowed range. SetallowNegative: trueto permit negative percentages. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"form": {
"children": [
"rate"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Allocation",
"values": {
"$bindState": "/allocation/values"
}
},
"type": "Form"
},
"rate": {
"children": [],
"props": {
"name": "rate",
"defaultValue": 15,
"isRequired": true,
"label": "Tax rate",
"lowerLimit": 0,
"upperLimit": 100
},
"type": "FormPercentage"
}
},
"root": "form",
"state": {
"allocation": {
"values": {}
}
}
}
A Form-registered phone number field with region-based formatting, for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
autoComplete | string | Browser autocomplete hint, e.g. "tel" | - |
autoFocus | boolean | Auto-focus on mount | - |
countryCode | string | object | Either a fixed country code string or a country-code dropdown configuration object | - |
countryCodeDefaultValue | string | [Deprecated] Use countryCode.defaultValue instead. Initial selected country code for the legacy dropdown shape | - |
countryCodeValue | string | [Deprecated] Use countryCode.value instead. Bound selected country code for the legacy dropdown shape | - |
defaultRegion | string | Default country region code for formatting, e.g. "US", "IN", "CA". | US |
defaultValue | string | Initial default value for uncontrolled usage | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
inputMode | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | Virtual keyboard type hint | - |
isCountryCodeDisabled | boolean | [Deprecated] Use countryCode.isDisabled instead for the legacy dropdown shape | - |
isCountryCodeReadOnly | boolean | [Deprecated] Use countryCode.isReadOnly instead for the legacy dropdown shape | - |
isCountryCodeRequired | boolean | [Deprecated] Use countryCode.isRequired instead for the legacy dropdown shape | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
minLength | number | Minimum character count | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text or icon name from Icon.TYPES to show before the input value | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
stringPadding | object | Pads input value with character until reaching maxLength | - |
suffix | string | Text or icon name from Icon.TYPES to show after the input value | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchangecountryCodeChange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Stores the formatted phone number string keyed bynamein the parent Form's values. Use defaultRegion to set the formatting region (US, IN, CA, etc.). Defaults to US. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"form": {
"children": [
"phone"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Contact",
"values": {
"$bindState": "/contact/values"
}
},
"type": "Form"
},
"phone": {
"children": [],
"props": {
"name": "phone",
"defaultRegion": "US",
"isRequired": true,
"label": "Phone number"
},
"type": "FormPhone"
}
},
"root": "form",
"state": {
"contact": {
"values": {}
}
}
}
A Form-registered radio group for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Array of {label, value} radio options | - |
name * | string | Field name — drives the Form value key inside the parent Form | - |
defaultValue | unknown | Initial value when uncontrolled | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isHorizontal | boolean | Arrange options in a row | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the radio group | - |
theme | "FLUID_WIDTH" | "REVERSE" | "FLUID_WIDTH_SPACE_BETWEEN_REVERSE" | Theme styling: FLUID_WIDTH for full-width options, REVERSE for reversed theme | - |
tip | string | Tooltip text shown alongside the label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | unknown | Current value bound to state | - |
variant | "BOX" | "LIST" | "GRID" | Visual variant: BOX for boxed layout, LIST for list layout, GRID for grid layout | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Stores the selected option'svaluekeyed bynamein the parent Form's values. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change".
Example props
{
"elements": {
"form": {
"children": [
"plan"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Preferences",
"values": {
"$bindState": "/prefs/values"
}
},
"type": "Form"
},
"plan": {
"children": [],
"props": {
"name": "plan",
"isRequired": true,
"label": "Plan",
"list": [
{
"label": "Basic",
"value": "basic"
},
{
"label": "Pro",
"value": "pro"
},
{
"label": "Enterprise",
"value": "enterprise"
}
]
},
"type": "FormRadio"
}
},
"root": "form",
"state": {
"prefs": {
"values": {}
}
}
}
Searches and selects a record from a searchable model, such as custom objects, Employee, Department, Team, Work Location, Computer, Job Requisition, or Applicant, as a registered form field.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Non-empty field name used to register the lookup with the parent form. | - |
objectApiName * | string | RQL API name of the model whose records can be searched. The backend rejects models that are not lookup-supported or that the viewer cannot access. | - |
canClear | boolean | Controls whether the value can be cleared. | - |
defaultValue | string | string[] | Initial uncontrolled record id, or record id array when isMulti is true. | - |
isDisabled | boolean | Disables searching and selection changes. | - |
isMenuDefaultOpen | boolean | Opens the menu when the field mounts. | - |
isMulti | boolean | Allows selecting multiple records. | - |
isReadOnly | boolean | Displays the value without allowing changes. | - |
isRequired | boolean | Marks the field required in its parent form. | - |
label | string | Label displayed above the lookup. | - |
placeholder | string | Search input placeholder. | - |
shouldShowSearchIcon | boolean | Controls whether the search icon is shown. | - |
tip | string | Supplementary text displayed with the label. | - |
value | string | string[] | Controlled record id, or record id array when isMulti is true. | - |
Events
change
Notes
- Provide name to register the lookup with its parent form. The change event is notification-only; observe selected record ids through bound value state. Searchability and viewer record access are enforced by the backend at query time.
Example props
{
"elements": {
"form": {
"children": [
"recordLookup"
],
"props": {
"title": "Assign asset"
},
"type": "Form"
},
"recordLookup": {
"children": [],
"props": {
"name": "assetId",
"isRequired": true,
"label": "Asset",
"objectApiName": "asset__c",
"value": {
"$bindState": "/form/assetId"
}
},
"type": "FormRecordLookup"
}
},
"root": "form",
"state": {
"form": {
"assetId": ""
}
}
}
A Form-registered segmented control for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
appearance | "PRIMARY" | "POSITIVE" | "NEGATIVE" | "NEUTRAL" | Visual style variant. | PRIMARY |
defaultValue | string | string[] | Initial value when uncontrolled | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isFluid | boolean | Stretches control to fill container width | - |
isMulti | boolean | Allows selecting multiple options | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
isVertical | boolean | Renders options in a vertical layout | - |
label | string | Label text above the segmented control | - |
list | object[] | Array of { label, value } segmented control options | - |
rangeLabels | object | Labels to display at the start and end of the control range | - |
size | "XS" | "S" | "M" | "L" | Control size variant. | M |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | unknown | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Single-select stores a string; isMulti stores an array of strings. Values flow through the parent Form'svaluespush-binding on submit/change. Useappearanceto set the visual style: PRIMARY, POSITIVE, NEGATIVE, or NEUTRAL. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change". SegmentedControl has no onBlur event.
Example props
{
"elements": {
"form": {
"children": [
"plan"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Preferences",
"values": {
"$bindState": "/prefs/values"
}
},
"type": "Form"
},
"plan": {
"children": [],
"props": {
"name": "plan",
"defaultValue": "monthly",
"label": "Plan type",
"list": [
{
"label": "Weekly",
"value": "weekly"
},
{
"label": "Monthly",
"value": "monthly"
},
{
"label": "Annual",
"value": "annual"
}
]
},
"type": "FormSegmentedControl"
}
},
"root": "form",
"state": {
"prefs": {
"values": {}
}
}
}
A Form-registered dropdown select for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
canClear | boolean | Show clear button to deselect all | - |
canSelectAll | boolean | Show select-all toggle. Requires isMulti to be true | - |
creatable | boolean | Allow creating new options not in the list | - |
defaultSearchQuery | string | Initial search input value | - |
defaultValue | unknown[] | unknown | Initial selected value or values when uncontrolled | - |
dropdownHeight | number | Sets dropdown menu height in pixels | - |
emptyListPlaceholder | string | object | Placeholder when dropdown list is empty. Can be string or object with state-specific placeholders | - |
fuseOptions | object | Fuse.js search options for customizing fuzzy search behavior | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isMenuDefaultOpen | boolean | If true, dropdown menu will be open by default | - |
isMulti | boolean | Allow multiple selections | - |
isPositionFixed | boolean | Position dropdown relative to viewport instead of parent | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
isSearchable | boolean | Enable type-to-search filtering | - |
label | string | Label text above the select | - |
list | object[] | object[] | Flat array of {label, value} options, or nested array of {label, list} groups for grouped/submenu options | - |
maxHeight | string | number | Max height of multi-select container (CSS value) | - |
maxTruncationLines | number | Max rows of chips visible before "+X" overflow chip appears (multi-select only) | - |
placeholder | string | Placeholder text when empty | - |
placement | "auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | ... (15 values) | Dropdown position relative to input. | bottom-start |
shouldFocusFirstElement | boolean | Auto-focus first menu item when dropdown opens | - |
shouldShowSearchIcon | boolean | Show search icon prefix when isSearchable is true | - |
shouldUsePortal | boolean | Render dropdown in a React Portal. | false |
size | "XS" | "S" | "M" | "L" | Select input size variant. | M |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | unknown | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Single-select stores the selected value; isMulti stores an array of selected values. Values flow through the parent Form'svaluespush-binding on submit/change. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"form": {
"children": [
"role"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Preferences",
"values": {
"$bindState": "/prefs/values"
}
},
"type": "Form"
},
"role": {
"children": [],
"props": {
"name": "role",
"isRequired": true,
"label": "Role",
"list": [
{
"label": "Admin",
"value": "admin"
},
{
"label": "Member",
"value": "member"
},
{
"label": "Viewer",
"value": "viewer"
}
],
"placeholder": "Select a role"
},
"type": "FormSelect"
}
},
"root": "form",
"state": {
"prefs": {
"values": {}
}
}
}
A Form-registered card-based selection group for single or multi-choice choices inside a Form.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Array of item objects to render as selectable cards | - |
name * | string | Field name — drives the Form value key inside the parent Form | - |
renderer * | "BASIC_CARD" | "LOCATION_CARD" | JSON-only constrained renderer choice: BASIC_CARD or LOCATION_CARD | - |
aria-describedby | string | ID of element that describes this input for screen readers | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input for screen readers | - |
defaultValue | string | number | string | number[] | Initial selection when uncontrolled | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
id | string | Unique DOM id for the input element | - |
isDisabled | boolean | Disables the input | - |
isMulti | boolean | Allow multiple selection. | false |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
testId | string | Deprecated testing-only prop kept for backward compatibility | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | number | string | number[] | Current value bound to state | - |
valueIdentifier | string | Key name to extract unique value from each list item. | "value" |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Single-select stores one value;isMultistores an array of selected values. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. onChange emits "change".
Example props
{
"elements": {
"form": {
"children": [
"plan"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Plan",
"values": {
"$bindState": "/plan/values"
}
},
"type": "Form"
},
"plan": {
"children": [],
"props": {
"name": "plan",
"label": "Plan",
"list": [
{
"content": "Starter plan",
"title": "Basic",
"value": "basic"
},
{
"content": "Advanced plan",
"title": "Pro",
"value": "pro"
}
],
"renderer": "BASIC_CARD"
},
"type": "FormSelectableGroup"
}
},
"root": "form",
"state": {
"plan": {
"values": {}
}
}
}
A Form-registered signature capture input for drawing or typing a signature inside a Form.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
aria-describedby | string | ID of element that describes this input | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
defaultValue | string | Initial default signature value | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
id | string | Unique DOM element ID | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
isTypeSignatureDisabled | boolean | Only show draw input, hide type input. | false |
label | string | Label text above the input | - |
penColor | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Pen color token for drawing | - |
placeholder | string | Placeholder text for the drawing area | - |
tip | string | Tooltip text shown alongside the field label | - |
typePlaceholder | string | Placeholder text for the type signature input | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Stores a base64 PNG data URL string keyed bynamein the parent Form values. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. onChange emits "change".
Example props
{
"elements": {
"form": {
"children": [
"signature"
],
"props": {
"submitButtonProps": {
"label": "Submit"
},
"title": "Agreement",
"values": {
"$bindState": "/agreement/values"
}
},
"type": "Form"
},
"signature": {
"children": [],
"props": {
"name": "signature",
"isRequired": true,
"label": "Signature"
},
"type": "FormSignature"
}
},
"root": "form",
"state": {
"agreement": {
"values": {}
}
}
}
A Form-registered SIN (Social Insurance Number) masked field for use inside a Form. Applies the Canadian SIN format mask (999 999 999) automatically.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
defaultValue | string | Initial masked value set in Form on mount | - |
fixedCharsPrefix | string | Fixes characters at the beginning of the value | - |
fixedCharsSuffix | string | Fixes characters at the end of the value | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
placeholder | string | Placeholder text. | "XXX XXX XXX" |
shouldEnforceUpperCase | boolean | Enforces uppercase on input characters | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. The Canadian SIN mask (999 999 999) is applied automatically — no need to configure the mask. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"form": {
"children": [
"sin"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Tax information",
"values": {
"$bindState": "/tax/values"
}
},
"type": "Form"
},
"sin": {
"children": [],
"props": {
"name": "sin",
"isRequired": true,
"label": "Social Insurance Number",
"placeholder": "999 999 999"
},
"type": "FormSin"
}
},
"root": "form",
"state": {
"tax": {
"values": {}
}
}
}
A Form-registered slider for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
appearance | "PRIMARY" | "ERROR" | "SUCCESS" | "WARNING" | Sets slider appearance. | PRIMARY |
defaultValue | number | Initial value when uncontrolled. | 0 |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
hideTooltip | boolean | Hide the value tooltip. | false |
isDisabled | boolean | Disables the input | - |
isDotsVisible | boolean | If true renders slider with dots. | true |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the slider | - |
marks | object | Named marks on the slider track. Keys are numeric positions, values are labels | - |
max | number | Maximum value. | 100 |
min | number | Minimum value. | 0 |
shouldShowMarker | boolean | Controls visibility of marker. | true |
step | number | null | Step size. Set to null to use marks as steps. | 1 |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | unknown | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Values flow through the parent Form'svaluespush-binding on submit/change. Usemarksto label specific positions on the slider track. Useappearanceto set the visual style: PRIMARY, ERROR, SUCCESS, or WARNING. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change". Slider has no onBlur event.
Example props
{
"elements": {
"form": {
"children": [
"volume"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Settings",
"values": {
"$bindState": "/settings/values"
}
},
"type": "Form"
},
"volume": {
"children": [],
"props": {
"name": "volume",
"defaultValue": 50,
"label": "Volume",
"marks": {
"0": "Min",
"100": "Max"
},
"max": 100,
"min": 0,
"step": 5
},
"type": "FormSlider"
}
},
"root": "form",
"state": {
"settings": {
"values": {}
}
}
}
A Form-registered SSN (Social Security Number) masked field for use inside a Form. Applies the US SSN format mask (999-99-9999) automatically.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
defaultValue | string | Initial masked value set in Form on mount | - |
fixedCharsPrefix | string | Fixes characters at the beginning of the value | - |
fixedCharsSuffix | string | Fixes characters at the end of the value | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
placeholder | string | Placeholder text. | "XXX-XX-XXXX" |
shouldEnforceUpperCase | boolean | Enforces uppercase on input characters | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. The US SSN mask (999-99-9999) is applied automatically — no need to configure the mask. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"form": {
"children": [
"ssn"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Tax information",
"values": {
"$bindState": "/tax/values"
}
},
"type": "Form"
},
"ssn": {
"children": [],
"props": {
"name": "ssn",
"isRequired": true,
"label": "Social Security Number",
"placeholder": "999-99-9999"
},
"type": "FormSsn"
}
},
"root": "form",
"state": {
"tax": {
"values": {}
}
}
}
A Form-registered survey/rating input for collecting a bounded opinion or score inside a Form.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Array of survey option items with label and value | - |
name * | string | Field name — drives the Form value key inside the parent Form | - |
caption | string | Caption text displayed below the survey | - |
defaultValue | string | number | string | number[] | Initial selected value(s) set on mount | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isMulti | boolean | Allow multiple selections. | false |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
isVertical | boolean | Stack options vertically. | false |
label | string | Label text above the input | - |
rangeLabels | object | Labels for lowest and highest options | - |
theme | "TWO_LINE" | Survey theme. TWO_LINE stacks label below value | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | number | string | number[] | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Single-select stores one value;isMultistores an array of selected values. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. onChange emits "change".
Example props
{
"elements": {
"form": {
"children": [
"score"
],
"props": {
"submitButtonProps": {
"label": "Submit"
},
"title": "Feedback",
"values": {
"$bindState": "/feedback/values"
}
},
"type": "Form"
},
"score": {
"children": [],
"props": {
"name": "score",
"label": "How satisfied are you?",
"list": [
{
"label": 1,
"value": 1
},
{
"label": 2,
"value": 2
},
{
"label": 3,
"value": 3
},
{
"label": 4,
"value": 4
},
{
"label": 5,
"value": 5
}
],
"rangeLabels": {
"lower": "Low",
"upper": "High"
}
},
"type": "FormSurvey"
}
},
"root": "form",
"state": {
"feedback": {
"values": {}
}
}
}
A Form-registered toggle switch for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
compact | boolean | Use compact size variant | - |
defaultValue | boolean | Initial toggle state when uncontrolled | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Field-level label shown above the switch | - |
offLabel | string | Label text when switch is off | - |
onLabel | string | Label text when switch is on | - |
rightAlign | boolean | Align switch to the right | - |
tip | string | object | Tooltip text or serializable tip config shown alongside the switch labels | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | boolean | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Stores a boolean (true/false) value keyed bynamein the parent Form's values. UsedefaultValue: trueto pre-toggle the switch on. UseonLabelandoffLabelto customize state text. Usetipas a plain string or Tip-like object with serializable fields such ascontent,title, andappearance. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change". Switch has no onBlur event.
Example props
{
"elements": {
"form": {
"children": [
"notifications"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Settings",
"values": {
"$bindState": "/settings/values"
}
},
"type": "Form"
},
"notifications": {
"children": [],
"props": {
"name": "notifications",
"defaultValue": true,
"label": "Email notifications",
"offLabel": "Disabled",
"onLabel": "Enabled"
},
"type": "FormSwitch"
}
},
"root": "form",
"state": {
"settings": {
"values": {}
}
}
}
A Form-registered text field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
autoCapitalize | "off" | "none" | "on" | "sentences" | "words" | "characters" | Auto-capitalization: off, none, on, sentences, words, or characters | - |
autoComplete | string | Browser autocomplete hint | - |
autoCorrect | "off" | "on" | Auto-correct: off or on | - |
autoFocus | boolean | Auto-focus on mount | - |
canClear | boolean | Show clear button | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
inputMode | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | Virtual keyboard type hint | - |
isDisabled | boolean | Disables the input | - |
isOriginalInputReadOnly | boolean | Sets readonly mode directly on input HTML element | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character count | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text or icon name from Icon.TYPES to show before the input value | - |
readOnlyAffixSpacing | boolean | Controls gap between affixes and value in read-only mode. Set false to remove gap | true |
shouldPersistCursorPosition | boolean | Persist cursor position for controlled input. | false |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
stringPadding | object | Pads input value with character until reaching maxLength | - |
suffix | string | Text or icon name from Icon.TYPES to show after the input value | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Must be placed inside a Form element — it registers with Form and does not work standalone. Individual values are not bound to state; they flow through the parent Form's
valuespush-binding on submit/change. Usevalidationsfor Form rule strings: "isEmail", "minLength:5", "maxLength:100", "isNumeric", etc. Browser/input behavior props such asminLength,autoCapitalize,autoCorrect,spellCheck,inputMode,stringPadding, andshouldPersistCursorPositionpreserve the underlying Text input API. UsevalidationErrorsto override default error messages per rule.helperMessagedisplays supporting text below the input. Validation errors temporarily replace it, and it returns when validation clears.isRequiredblocks form submission when empty and shows an error. Labels: use the stringlabelprop for plain text. For rich labels, provide element IDs through the namedslots.labelslot; it takes precedence overlabeland can compose inline Text, Link, or other renderable SDUI elements. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"name": {
"children": [],
"props": {
"name": "fullName",
"helperMessage": "Use at least 2 characters.",
"isRequired": true,
"placeholder": "Enter your name",
"validationErrors": {
"minLength": "Name must be at least 2 characters"
},
"validations": "minLength:2"
},
"slots": {
"label": [
"labelText",
"helpLink"
]
},
"type": "FormText"
},
"form": {
"children": [
"name"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Profile",
"values": {
"$bindState": "/profile/values"
}
},
"type": "Form"
},
"helpLink": {
"children": [],
"props": {
"href": "/help/profile-name",
"text": "Why do we ask?"
},
"type": "Link"
},
"labelText": {
"children": [],
"props": {
"inline": true,
"text": "Full name "
},
"type": "Text"
}
},
"root": "form",
"state": {
"profile": {
"values": {}
}
}
}
A Form-registered multi-line textarea for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
autoFocus | boolean | Auto-focus on mount | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
hasCharsLimit | boolean | Show character count indicator. Requires maxLength to be set | - |
height | number | Fixed height in pixels | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
maxHeight | number | Maximum height in pixels | - |
maxLength | number | Maximum character count. | 10000 |
placeholder | string | Placeholder text when empty | - |
rows | number | Number of visible text rows | - |
theme | "NO_BOX" | Visual theme variant | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchangefocus
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Values flow through the parent Form'svaluespush-binding on submit/change. Set hasCharsLimit with maxLength to show a character counter. UsemaxHeightto cap textarea growth in pixels. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur"; onFocus emits "focus".
Example props
{
"elements": {
"comments": {
"children": [],
"props": {
"name": "comments",
"hasCharsLimit": true,
"isRequired": true,
"label": "Comments",
"maxLength": 500,
"placeholder": "Share your thoughts...",
"rows": 4
},
"type": "FormTextarea"
},
"form": {
"children": [
"comments"
],
"props": {
"submitButtonProps": {
"label": "Submit"
},
"title": "Feedback",
"values": {
"$bindState": "/feedback/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"feedback": {
"values": {}
}
}
}
A Form-registered text field with auto-suggest dropdown for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Flat suggestion list matching the React list item shape | - |
name * | string | Field name — drives the Form value key inside the parent Form | - |
defaultValue | string | Initial value set in Form on mount | - |
fuseOptions | object | Fuse.js search options for customizing suggestion filtering | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isPositionFixed | boolean | Use fixed positioning for dropdown menu. Useful in scrollable containers | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
placeholder | string | Placeholder text when empty | - |
shouldShowMenuOnFocus | boolean | Show dropdown menu on input focus. | false |
shouldShowSearchIcon | boolean | Show search icon prefix. | false |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | number | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Values flow through the parent Form'svaluespush-binding on submit/change. Passlistas the React-style flat suggestion list. Common fields arelabel,value, andisDisabled; extra serializable item metadata is preserved. UseshouldShowMenuOnFocus: trueto open the dropdown immediately on focus. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"city": {
"children": [],
"props": {
"name": "city",
"label": "City",
"list": [
{
"label": "San Francisco",
"value": "sf"
},
{
"label": "New York",
"value": "ny"
},
{
"label": "London",
"value": "lon"
}
],
"placeholder": "Start typing...",
"shouldShowSearchIcon": true
},
"type": "FormTextAutoSuggest"
},
"form": {
"children": [
"city"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Location",
"values": {
"$bindState": "/location/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"location": {
"values": {}
}
}
}
A Form-registered time picker field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
alwaysShowTimezone | boolean | If true, timezone abbreviation will always be shown. | false |
defaultSelectionStartTime | string | Time to start the selection scroll from when shouldAllowTimeSelection is true (e.g. "08:00 AM") | - |
defaultValue | string | Initial value — ISO 8601 or "HH:MM AM/PM" time string | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDateTimeInline | boolean | Make input inline, removes border, padding and width fits input/placeholder content | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
locale | string | Locale string for time formatting (e.g. en-US) | - |
maxWidth | string | Maximum width CSS value | - |
pickClosestMeridiem | boolean | When user does not enter AM/PM, pick the closest meridiem to the inputted hour value. | false |
referenceDate | string | ISO date string used as reference for timezone calculations and DST determination. Defaults to current date. | - |
shouldAllowTimeSelection | boolean | object | Show a time selection dropdown for picking times | - |
shouldDisplaySeconds | boolean | Display seconds in the time input | - |
shouldFormatInTimezone | boolean | If true, values will transform according to global timezone when timezone prop is not passed explicitly | - |
shouldLocalize | boolean | If true, display format will be determined from user locale setting | - |
shouldReturnISO | boolean | Always return value in ISO 8601 format | - |
shouldShowTimezoneLabel | boolean | If false, timezone label will not be shown. | true |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
timezone | string | object | Show time relative to this timezone or configure the timezone selector | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Accepts ISO 8601 time strings or "HH:MM AM/PM" format as defaultValue. Use timezone to specify the IANA timezone name for display and value handling. Set shouldAllowTimeSelection to true to show a time picker dropdown. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"form": {
"children": [
"startTime"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Schedule",
"values": {
"$bindState": "/schedule/values"
}
},
"type": "Form"
},
"startTime": {
"children": [],
"props": {
"name": "startTime",
"defaultValue": "09:00 AM",
"label": "Start time",
"shouldAllowTimeSelection": true,
"timezone": "America/New_York"
},
"type": "FormTime"
}
},
"root": "form",
"state": {
"schedule": {
"values": {}
}
}
}
A Form-registered timezone selector for choosing an IANA timezone inside a Form.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
canClear | boolean | Shows a clear button to reset selection | - |
defaultValue | string | Initial IANA timezone identifier | - |
displayIANA | boolean | Display IANA timezone name. | true |
displayShortFormat | boolean | Display timezone abbreviation | - |
dropdownHeight | number | Height of the dropdown menu in pixels | - |
emptyListPlaceholder | string | Placeholder text shown when no timezone matches the search | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isMenuDefaultOpen | boolean | If true, the dropdown menu will be open by default on mount | - |
isPositionFixed | boolean | Use fixed positioning for dropdown (useful in scrollable containers) | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
isSearchable | boolean | Enables search filtering. | true |
label | string | Label text above the input | - |
placeholder | string | Placeholder text when empty | - |
placement | "TOP_START" | "TOP" | "TOP_END" | "RIGHT_START" | "RIGHT" | "RIGHT_END" | "BOTTOM_END" | "BOTTOM" | ... (12 values) | Dropdown placement position. | BOTTOM_START |
referenceDate | string | ISO 8601 date string to determine timezone offsets (e.g. 2024-01-15T12:00:00Z) | - |
shouldShowSearchIcon | boolean | If true, shows a search icon in the dropdown | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
theme | "TRANSPARENT_BORDER" | "TOP_NAV" | "INLINE_TRANSPARENT_BORDER" | "INLINE_TOP_NAV" | "NO_PADDING_RIGHT_NO_BOX_TRANSPARENT_BORDER" | "NO_PADDING_RIGHT_NO_BOX_TOP_NAV" | "NO_PADDING_LEFT_NO_BOX_TRANSPARENT_BORDER" | "NO_PADDING_LEFT_NO_BOX_TOP_NAV" | Visual theme variant for the input | - |
tip | string | Tooltip text shown alongside the field label | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchangefocus
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — registers with Form and does not work standalone. Stores an IANA timezone identifier string keyed bynamein the parent Form values. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. onChange emits "change"; onBlur emits "blur"; onFocus emits "focus".
Example props
{
"elements": {
"form": {
"children": [
"timezone"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Profile",
"values": {
"$bindState": "/profile/values"
}
},
"type": "Form"
},
"timezone": {
"children": [],
"props": {
"name": "timezone",
"label": "Timezone",
"placeholder": "Select timezone"
},
"type": "FormTimezone"
}
},
"root": "form",
"state": {
"profile": {
"values": {}
}
}
}
A Form-registered tree selection field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Flat array of tree items with parent references. Root items have parent: null, children reference parent value | - |
name * | string | Field name — drives the Form value key inside the parent Form | - |
canSelectAll | boolean | Show select all toggle in multi mode | - |
defaultValue | string | string[] | null | Initial selection set in Form on mount | - |
dropdownWidth | number | Override internal dropdown width in pixels | - |
emptyListPlaceholder | string | Placeholder text when list is empty | - |
fuseOptions | object | Fuse.js search options for customizing search behavior | - |
hasIndependentActions | boolean | In multiSelect, action on an item does not affect selection of parent or child items | - |
hasIndependentChildActions | boolean | Actions on child in multi select do not affect selection of ancestors | - |
hasStaticParentNodes | boolean | Makes parent nodes non-actionable (only manage hierarchy) | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isMulti | boolean | Allow multiple selection. | false |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
isSearchable | boolean | Enable search filtering. | true |
label | string | Label text above the input | - |
maxHeight | number | Maximum height of the tree list in pixels | - |
selectionCount | boolean | Show count of selected items in multi-select mode | - |
shouldExpandNodeOnSelection | boolean | Auto-expand node when selected. | false |
shouldShowFolderStructure | boolean | Renders folder structure for tree items | - |
size | "XS" | "S" | "M" | "L" | Input size. Options: XS, S, M, L. | M |
theme | "NO_BORDER" | "NO_PADDING" | "REVERSE" | "NO_BOX" | Tree theme for styling variants | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | unknown | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Set parent to the value of the parent node to build tree hierarchy; null for root nodes. Use isMulti to allow selecting multiple nodes. Use isSearchable to enable filtering of tree nodes. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change".
Example props
{
"elements": {
"dept": {
"children": [],
"props": {
"name": "department",
"isSearchable": true,
"label": "Department",
"list": [
{
"label": "Engineering",
"parent": null,
"value": "eng"
},
{
"label": "Frontend",
"parent": "eng",
"value": "frontend"
},
{
"label": "Backend",
"parent": "eng",
"value": "backend"
}
]
},
"type": "FormTree"
},
"form": {
"children": [
"dept"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Department",
"values": {
"$bindState": "/department/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"department": {
"values": {}
}
}
}
A Form-registered tree-select dropdown field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Flat array of tree items with parent references. Root items have parent: null, children reference parent value | - |
name * | string | Field name — drives the Form value key inside the parent Form | - |
canSelectAll | boolean | Show select all toggle in multi mode | - |
defaultSearchQuery | string | Default search input value | - |
defaultValue | string | string[] | null | Initial value set. Single string when isMulti is false, array when true | - |
dropdownWidth | number | Custom dropdown width in pixels | - |
emptyListPlaceholder | string | Placeholder shown when list is empty | - |
fuseOptions | object | Fuse.js search configuration. | { keys: ["label", "name"] } |
hasIndependentActions | boolean | In multiSelect, action on an item does not affect selection of parent or child items | - |
hasIndependentChildActions | boolean | Actions on child in multi select do not affect selection of ancestors | - |
hasStaticParentNodes | boolean | Makes parent nodes non-actionable (only manage hierarchy) | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isMenuDefaultOpen | boolean | If true, dropdown menu will be open by default | - |
isMulti | boolean | Allow multiple selection. | false |
isPositionFixed | boolean | Sets dropdown position as fixed (relative to viewport) | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
maxHeight | string | number | Max height of tags container (CSS value) | - |
placeholder | string | Placeholder text when no selection | - |
placement | "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | ... (12 values) | Dropdown position. | bottom-end |
shouldExpandNodeOnSelection | boolean | Auto expands a node to show its children once selected. | false |
shouldShowFolderStructure | boolean | Renders folder structure view | - |
shouldShowSelectionPath | boolean | Show parent-to-child path in selected chips. | false |
size | "XS" | "S" | "M" | "L" | Input size. | M |
theme | "NO_BOX" | Custom theme styling | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | unknown | Current value bound to state | - |
Events
change
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Set parent to the value of the parent node to build tree hierarchy; null for root nodes. Use isMulti to allow selecting multiple values displayed as chips. Use shouldShowSelectionPath to display the full ancestor path in chips for multi-select. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change".
Example props
{
"elements": {
"form": {
"children": [
"region"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Location",
"values": {
"$bindState": "/location/values"
}
},
"type": "Form"
},
"region": {
"children": [],
"props": {
"name": "region",
"label": "Region",
"list": [
{
"label": "Americas",
"parent": null,
"value": "americas"
},
{
"label": "US",
"parent": "americas",
"value": "us"
},
{
"label": "Canada",
"parent": "americas",
"value": "ca"
}
],
"placeholder": "Select a region"
},
"type": "FormTreeSelect"
}
},
"root": "form",
"state": {
"location": {
"values": {}
}
}
}
A Form-registered work email field for use inside a Form component.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name — drives the Form value key inside the parent Form | - |
autoComplete | string | Browser autocomplete hint | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
domainList | string | string[] | object[] | object[] | Email domain list for selection. Can be: single string, array of strings ["acme.com"], array of {label, value, tag?} objects (FlatList), or array of {label, list} objects (NestedList) for grouped domains | - |
helperMessage | string | Persistent supporting text below the input. Validation errors temporarily replace it. | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks field required and blocks form submit when empty | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
placeholder | string | Placeholder text when empty | - |
validationErrors | object | Map of rule name to error message | - |
validations | string | Comma-separated Form rule string example: "isEmail,minLength:5" | - |
value | string | Current value bound to state | - |
Events
blurchange
Notes
- Slots:
label. - Labels: use the string
labelprop for plain text or provide element IDs throughslots.labelfor rich content; the named slot takes precedence over the string fallback. Must be placed inside a Form element — it registers with Form and does not work standalone. Use domainList to restrict suggestions to specific email domains. The field validates email format automatically. Bindvaluewith\{ \$bindState: "/path" \}to initialize the input from state and keep state in sync. Reads initial value from state (controlled); access current value in on.change actions via\{ \$state: "/path" \}. onChange emits "change"; onBlur emits "blur".
Example props
{
"elements": {
"email": {
"children": [],
"props": {
"name": "workEmail",
"domainList": [
"company.com"
],
"isRequired": true,
"label": "Work email",
"placeholder": "you@company.com"
},
"type": "FormWorkEmail"
},
"form": {
"children": [
"email"
],
"props": {
"submitButtonProps": {
"label": "Save"
},
"title": "Profile",
"values": {
"$bindState": "/profile/values"
}
},
"type": "Form"
}
},
"root": "form",
"state": {
"profile": {
"values": {}
}
}
}
A structured key-value grid for displaying labeled data fields with automatic responsive column sizing. Use for read-only detail views such as profile summaries, record details, or settings overviews. Supports action buttons for edit/delete operations on the displayed data.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object | object[] | Array of cells to display in the grid. Each cell has a label and renderer with props | - |
actionClickedId | string | Stores the id of the clicked action. Bind to state path to access in actionClick event handler | - |
actions | object[] | Array of action buttons displayed at the bottom of the grid. Each action emits actionClick event with id in state | - |
theme | "NO_CARD" | "TRANSPARENT" | "NO_PADDING" | Visual theme variant. NO_CARD removes card styling, TRANSPARENT uses transparent theme, NO_PADDING removes padding. | card with padding |
Events
actionClick
Notes
- Grid displays data in a key-value grid layout with automatic responsive column sizing. State shape: - actionClickedId: string - The id of the clicked action button Renderer types: - TEXT: Displays plain text value. Props: { value: string, color?: text/icon color token } - LABEL: Renders a Pebble Label component. Props: { children/text, appearance, size, leftIcon/rightIcon, maxWidth, tip }. Nested icon colors must be text/icon color tokens. Actions: - Each action must have unique id - When an action is clicked, its id is written to the actionClickedId state path - The actionClick event is emitted after state update - Bind actionClickedId to a state path to access which action was clicked Tips: - Both cell labels and actions support tooltips - Tips can be simple strings or objects with appearance, placement, and size options
Example props
{
"elements": {
"grid": {
"children": [],
"props": {
"actionClickedId": {
"$bindState": "/actionId"
},
"actions": [
{
"aria-label": "Edit",
"iconType": "EDIT_OUTLINE",
"id": "edit"
},
{
"aria-label": "Delete",
"iconType": "DELETE",
"id": "delete"
}
],
"list": [
{
"label": "Name",
"props": {
"value": "John Doe"
},
"renderer": "TEXT"
},
{
"label": "Status",
"props": {
"appearance": "SUCCESS",
"children": "Active"
},
"renderer": "LABEL"
},
{
"label": "Email",
"props": {
"value": "john@example.com"
},
"renderer": "TEXT"
},
{
"label": "Department",
"props": {
"value": "Engineering"
},
"renderer": "TEXT"
}
]
},
"type": "Grid"
}
},
"root": "grid",
"state": {
"actionId": ""
}
}
A semantic heading element (h1–h6) for page titles and section headers that establishes document hierarchy. Use for structural headings only — for body text or paragraphs use Paragraph, and for a title paired with a subtitle use TitleCaption.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
align | "left" | "center" | "right" | Text alignment | - |
color | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Pebble text/icon color token resolved via the current theme. | - |
decoration | string | Text decoration CSS value (e.g. "underline", "line-through") | - |
inline | boolean | Display as inline element instead of block | - |
level | 1 | 2 | 3 | 4 | 5 | 6 | Heading level (h1=1, h2=2, h3=3, h4=4, h5=5, h6=6) | - |
lineClamp | number | Max visible lines before truncation with ellipsis | - |
maxWidth | string | Maximum width CSS value for the text element | - |
mono | boolean | Apply monospace font family | - |
text | string | Heading text content | - |
transform | string | Text transform CSS value (e.g. "uppercase", "capitalize") | - |
Events
No events.
Example props
{
"align": "left",
"level": 1,
"text": "Welcome to the Form"
}
A hidden form input for passing fixed or derived values through form submission without any visible UI.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
name * | string | Field name used in form submission data | - |
defaultValue | string | Initial value for uncontrolled usage | - |
value | string | The value submitted with the form, bound to state | - |
Events
No events.
Notes
- Hidden renders a native input[type="hidden"]. It is invisible and ignored by assistive technologies. Use it to include IDs, tokens, or computed values in form submissions. Standalone — does not register with Form; use FormHidden inside a Form instead.
Example props
{
"name": "userId",
"value": "user-12345"
}
Horizontal stack layout that arranges children side-by-side in a row with token-based spacing. Use for placing elements next to each other horizontally — e.g. side-by-side form fields, button groups, or inline icon-and-text pairs. Prefer VStack for vertical stacking and Box for complex layouts needing custom dimensions, borders, or backgrounds.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
align | "flex-start" | "center" | "flex-end" | "stretch" | "baseline" | Cross-axis alignment | - |
alignSelf | "auto" | "flex-start" | "center" | "flex-end" | "stretch" | "baseline" | Align self override when inside a flex parent | - |
backgroundColor | "colorPrimary" | "colorSecondary" | "colorTertiary" | "colorPrimaryContainer" | "colorSecondaryContainer" | "colorTertiaryContainer" | "colorError" | "colorErrorContainer" | ... (33 values) | Background surface color token | - |
basis | number | string | Flex basis value | - |
boxSizing | "content-box" | "border-box" | Box sizing model | - |
color | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Text/icon color token | - |
gap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | Spacing token for gap between children | - |
grow | number | Flex grow factor | - |
height | number | string | Height in pixels (number) or CSS string | - |
justify | "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly" | Main-axis alignment | - |
margin | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Margin as a spacing token or directional spacing-token object {top, right, bottom, left} | - |
maxHeight | number | string | Max height in pixels or CSS string | - |
maxWidth | number | string | Max width in pixels or CSS string | - |
minHeight | number | string | Min height in pixels or CSS string | - |
minWidth | number | string | Min width in pixels or CSS string | - |
overflow | "visible" | "hidden" | "scroll" | "auto" | Overflow behavior | - |
padding | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Padding as a spacing token or directional spacing-token object {top, right, bottom, left} | - |
radius | "shapeCornerNone" | "shapeCornerXs" | "shapeCornerSm" | "shapeCornerMd" | "shapeCornerLg" | "shapeCornerXl" | "shapeCorner2xl" | "shapeCorner3xl" | ... (10 values) | Border radius token | - |
shrink | number | Flex shrink factor | - |
width | number | string | Width in pixels (number) or CSS string | - |
wrap | "nowrap" | "wrap" | "wrap-reverse" | Flex wrap behavior | - |
Events
No events.
Notes
- Slots:
default.
Example props
{
"elements": {
"hstack": {
"children": [
"hstackText1",
"hstackText2",
"hstackText3"
],
"props": {
"align": "center",
"gap": "space300",
"justify": "flex-start",
"wrap": "wrap"
},
"type": "HStack"
},
"hstackText1": {
"children": [],
"props": {
"inline": true,
"text": "First",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"hstackText2": {
"children": [],
"props": {
"inline": true,
"text": "Second",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"hstackText3": {
"children": [],
"props": {
"inline": true,
"text": "Third",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
}
},
"root": "hstack",
"state": {}
}
A standalone icon element from the Pebble icon set. Use for decorative or interactive icon displays — as clickable action triggers, status indicators, or visual accents. Supports tooltips and full ARIA attributes for accessibility.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
type * | string | Icon type string from Icon.TYPES (e.g. ADD, CHECK, CLOSE, EDIT_OUTLINE) | - |
aria-controls | string | ID of element controlled by this icon | - |
aria-describedby | string | ID of element that describes this icon | - |
aria-expanded | boolean | Indicates if controlled element is expanded | - |
aria-haspopup | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog" | Indicates the icon triggers a popup | - |
aria-label | string | Accessible label. Required when onClick is used | - |
aria-labelledby | string | ID of element that labels this icon | - |
color | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Pebble text/icon color token | - |
isDisabled | boolean | Disable the icon. | false |
isFocused | boolean | Show icon backdrop when focused. Use only with interactive icons (onClick). | false |
showCursor | boolean | Show pointer cursor and backdrop on hover. Use only with interactive icons (onClick). | false |
size | "sizeIcon2xl" | "sizeIcon2xs" | "sizeIcon3xl" | "sizeIcon3xs" | "sizeIcon4xl" | "sizeIconLg" | "sizeIconMd" | "sizeIconSm" | ... (10 values) | Icon size token | - |
tip | string | object | Tooltip. String for simple text, or object for advanced options | - |
Events
press
Notes
- Icon type values are uppercase strings matching Icon.TYPES constants (e.g. ADD, ARROW_DOWN, CHECK, CHEVRON_DOWN, CLOSE, COPY_OUTLINE, DELETE, DOWNLOAD, EDIT_OUTLINE, SEARCH, USER_OUTLINE). When press event is bound, aria-label is required for accessibility. Tip can be a simple string or an object with content, placement (e.g. TOP, BOTTOM, LEFT, RIGHT), and appearance (LIGHT or DARK). Interactive icons (with onClick) automatically show a backdrop on hover with 4px padding for better hit area. The isFocused and showCursor props should only be used with interactive icons to provide visual feedback. Skipped: backdropColor (internal/non-functional), fontFamily (internal), className (CSS override), shouldPreventFocus (internal), onMouseDown/onMouseUp (DOM events), testId (testing only).
Example props
{
"size": "sizeIconMd",
"type": "EDIT_OUTLINE"
}
An icon-only button for repeated, common, or persistent actions when screen real estate is limited. Use for well-known actions like search, refresh, edit, or navigation — use a regular Button with text when the action is critical or requires more context.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
icon * | string | object | Icon to display. Can be icon name string or object with type and color | - |
appearance | "PRIMARY" | "GHOST" | "OUTLINE" | "SOLID" | "DESTRUCTIVE" | "SUCCESS" | "INFO" | "WARNING" | ... (10 values) | Visual appearance style (PRIMARY, GHOST, OUTLINE, SOLID, DESTRUCTIVE, SUCCESS, INFO, WARNING, ACCENT, ACTIVE). | PRIMARY |
aria-controls | string | ID of element controlled by the button | - |
aria-describedby | string | ID of element that describes the button | - |
aria-expanded | boolean | Indicates expanded state (for toggles) | - |
aria-haspopup | boolean | string | Indicates the button opens a popup/menu | - |
aria-label | string | Accessible label for the button. Required if aria-labelledby is not provided. | - |
aria-labelledby | string | ID of element that labels the button. Required if aria-label is not provided. | - |
aria-pressed | boolean | "mixed" | Indicates pressed state (for toggle buttons) | - |
id | string | DOM id selector for the button element | - |
isDisabled | boolean | If true, button is disabled. | false |
shouldPreventFocus | boolean | If true, the button will not be focusable (tabIndex -1). | false |
shouldShowSpinner | boolean | If true, shows loading spinner instead of icon | - |
size | "XS" | "S" | "M" | "L" | Size of the button (XS, S, M, L). | M |
tabIndex | number | Tab order for keyboard navigation | - |
tip | string | object | Tooltip text or tooltip configuration object | - |
to | string | object | Navigation destination. When provided, button renders as anchor and handles navigation automatically | - |
type | "button" | "submit" | "reset" | HTML button type attribute (button, submit, reset). | button |
Events
mouseEntermouseLeavepresspressWhileDisabled
Notes
- Event handling: - onClick emits 'press' event (no parameters) - onClickWhileDisabled emits 'pressWhileDisabled' event (no parameters) - onMouseEnter emits 'mouseEnter' event (no parameters) - onMouseLeave emits 'mouseLeave' event (no parameters) Inter-prop dependencies: - Either aria-label or aria-labelledby is REQUIRED for accessibility - When 'to' prop is provided, button renders as anchor and handles navigation automatically - shouldPreventFocus sets tabIndex to -1 (overrides explicit tabIndex prop) Icon format: - Icon is resolved from Icon.TYPES (e.g., "EDIT_OUTLINE" → Icon.TYPES.EDIT_OUTLINE) - Custom color only applies to icon object format with a Pebble text/icon color token - Custom icon color is only allowed in OUTLINE, SOLID, and GHOST appearances Spinner behavior: - When shouldShowSpinner is true, spinner replaces icon regardless of icon prop
Example props
{
"aria-label": "Edit",
"icon": "EDIT_OUTLINE",
"tip": "Edit item"
}
Displays an image with optional theme-aware light/dark sources, lazy loading, and click interaction. Use for static or decorative images — use Avatar for user profile pictures, Icon for symbolic glyphs, or ImageViewer for zoomable image galleries.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
alt * | string | Alt text for accessibility. Required for screen readers | - |
assetFilter | boolean | Apply dark mode filter for dark themes. | false |
borderRadius | "shapeCornerNone" | "shapeCornerXs" | "shapeCornerSm" | "shapeCornerMd" | "shapeCornerLg" | "shapeCornerXl" | "shapeCorner2xl" | "shapeCorner3xl" | ... (10 values) | Border radius token, e.g. "shapeCornerMd" | - |
height | number | string | Image height in px or CSS string | - |
loading | "eager" | "lazy" | Loading strategy. | eager |
src | string | object | Image URL or theme-aware source object with light/dark variants | - |
theme | "COVER" | Image theme. COVER for cover positioning | - |
width | number | string | Image width in px or CSS string | - |
Events
errorloadpress
Notes
- Events: "press" fires on click, "load" fires when image loads, "error" fires on load error. For theme-aware images, provide src as {light: "url1", dark: "url2"}.
Example props
{
"elements": {
"img": {
"children": [],
"props": {
"alt": "Brex logo",
"borderRadius": "shapeCornerMd",
"height": 200,
"src": "https://static-assets.ripplingcdn.com/webapp-static/ui-kit/examples/brex.png"
},
"type": "Image"
}
},
"root": "img",
"state": {}
}
Displays an image thumbnail that expands into a full-size overlay with zoom when clicked. Use for previewing images such as uploaded documents, photos, or screenshots where users need to inspect detail.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
imageUrl * | string | URL of the image to display | - |
alt | string | Alt text for accessibility | - |
maxHeightForExpandedImage | string | Max height for expanded image with CSS unit. Example: 80vh | - |
Events
No events.
Example props
{
"alt": "Sample landscape photo",
"imageUrl": "https://picsum.photos/400/300"
}
Combines multiple input fields (e.g. a Select prefix with a Text input) into a single visually unified group with shared sizing, disabled, invalid, and read-only state. Use for composite inputs like currency amount with currency selector, or phone number with country code.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
input * | object | Main input configuration with type and inputProps | - |
isDisabled | boolean | Disables all inputs in the group | - |
isInvalid | boolean | Shows error styling on the group | - |
isReadOnly | boolean | Makes all inputs in the group read-only | - |
prefix | object | object[] | Prefix input configuration(s) prepended to the main input | - |
prefixMaxWidthPercent | number | Max width percentage for the prefix container | - |
prefixMinWidth | number | string | Minimum width for the prefix container | - |
shouldHideAddons | boolean | Hides prefix/suffix without destroying them | - |
size | "XS" | "S" | "M" | "L" | Size of all inputs in the group. | M |
suffix | object | object[] | Suffix input configuration(s) appended to the main input | - |
suffixMaxWidthPercent | number | Max width percentage for the suffix container | - |
suffixMinWidth | number | string | Minimum width for the suffix container | - |
Events
No events.
Notes
- Each input configuration requires a type (matching INPUT_TYPES) and inputProps object. The inputProps are passed directly to the underlying Pebble input component, so Select configs use
listrather than the json-render Select catalogoptionsprop. Common pattern: Select prefix + Text input for currency/phone fields.
Example props
{
"input": {
"inputProps": {
"name": "amount",
"placeholder": "Enter amount"
},
"type": "Text"
},
"prefix": {
"inputProps": {
"name": "currency",
"list": [
{
"label": "USD",
"value": "USD"
}
]
},
"type": "Select"
},
"size": "M"
}
Emits a tick event repeatedly after the configured delay. Renders no UI and stops when unmounted.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
delay * | integer | Time in milliseconds between tick events. | - |
Events
tick
Notes
- Bind an action to on.tick. The first tick fires after delay milliseconds, matching window.setInterval.
Example props
{
"elements": {
"interval": {
"on": {
"tick": {
"action": "setState",
"params": {
"statePath": "/lastTick",
"value": "tick"
}
}
},
"props": {
"delay": 5000
},
"type": "Interval"
}
},
"root": "interval"
}
A compact control for stepping through items one at a time, with either an "X of Y items" label or clickable position dots. Use for sequential item-by-item navigation such as cycling through detail views, carousel items, search results, or review queues — not for page-based navigation (use Pagination instead).
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
currentItemIndex * | number | Current item index (0-based). Range: 0 to totalItems-1 | - |
itemLabel * | string | Singular form of item label used in button labels. Example: "vendor" | - |
itemLabelPlural * | string | Plural form of item label used in display text. Example: "vendors" | - |
totalItems * | number | Total number of items to navigate through | - |
hasMore | boolean | Whether there are more items beyond totalItems. Shows "+" indicator | - |
nextDisabled | boolean | Force-disable the next button, overriding default logic | - |
nextTip | string | Tooltip text for the next button | - |
prevDisabled | boolean | Force-disable the previous button, overriding default logic | - |
prevTip | string | Tooltip text for the previous button | - |
variant | "LABEL" | "DOTS" | Display style: LABEL shows the item count; DOTS shows clickable position dots | - |
Events
nextpreviousselect
Notes
- ItemNavigator displays either "X of Y items" or clickable position dots with previous/next buttons. Bind currentItemIndex to state. The next, previous, and select events update currentItemIndex automatically. Previous is auto-disabled at index 0; next is auto-disabled at totalItems-1.
Example props
{
"currentItemIndex": {
"$bindState": "/nav/currentIndex"
},
"itemLabel": "vendor",
"itemLabelPlural": "vendors",
"totalItems": 25,
"variant": "DOTS"
}
A static, non-interactive identifier representing a status, property, or other highlighted metadata about an item. Use for categorizing or labeling items with short keywords like "New", "Recommended", or "High Priority". For interactive tagging use Chip; for live status updates use Status.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
text * | string | Text content of the label | - |
appearance | "PRIMARY" | "NEUTRAL" | "WARNING" | "INFO" | "ERROR" | "SUCCESS" | "TRANSPARENT" | "DISABLED" | Color scheme of the label. | NEUTRAL |
leftIcon | string | object | Icon displayed on the left side of the label | - |
maxWidth | string | Maximum width CSS value for truncation | - |
rightIcon | string | object | Icon displayed on the right side of the label | - |
size | "SMALL" | "MEDIUM" | "LARGE" | "EXTRA_LARGE" | Size of the label. | LARGE |
tip | string | object | Tooltip shown on hover. Can be simple string or object with appearance, placement, and other options | - |
Events
No events.
Notes
- Icon props: - Can be simple string (icon type name) or object with type, color, and aria props - Icon color only supported for TRANSPARENT appearance Tip props: - Can be simple string (tooltip text) or object with appearance, placement, delays, and other options - Tooltip automatically shown on overflow with default content matching label text
Example props
{
"appearance": "PRIMARY",
"leftIcon": "HIGH_PRIORITY",
"size": "MEDIUM",
"text": "Active"
}
A layout container for grouping multiple Label components together, with automatic wrapping and overflow handling. When labels exceed a configured row limit, excess labels collapse into a "+N more" indicator that opens a modal. Use when displaying a set of categorization or metadata labels on an item.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
maxLinesToWrap | number | Maximum number of lines to display before showing overflow indicator. Labels beyond this wrap into an overflow modal. | no limit |
overflowModalTitle | string | Title for the overflow modal that appears when labels exceed maxLinesToWrap. | "View All" |
Events
No events.
Notes
- Slots:
default. - LabelGroup is a container for displaying multiple Label components together. It provides automatic wrapping and overflow handling when many labels are present. Overflow handling: - maxLinesToWrap: Set a limit on visible rows of labels - When labels exceed this limit, remaining labels are hidden with a "+N more" indicator - Clicking the indicator opens a modal showing all labels - overflowModalTitle: Customize the modal header text Usage pattern: - Place Label components as direct children — do not wrap them in intermediate layout containers (VStack, HStack, Box) as this breaks the wrapping behavior - For dynamic labels from a state array, place the "repeat" field directly on the LabelGroup element with a single Label child — the Label is cloned per array item as a direct child of the group - Labels automatically wrap to fill available width - Maintains consistent spacing between labels
Example props
{
"children": [],
"maxLinesToWrap": 2,
"overflowModalTitle": "All Labels"
}
A flex-based container for arranging child elements with control over direction, alignment, spacing, dimensions, and styling. Use Layout for general-purpose page structure and custom layouts. Prefer VStack or HStack for simple vertical or horizontal stacking.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
align | string | CSS align-items value for flex children alignment | - |
alignSelf | string | CSS align-self value to override parent align | - |
backgroundColor | "colorPrimary" | "colorSecondary" | "colorTertiary" | "colorPrimaryContainer" | "colorSecondaryContainer" | "colorTertiaryContainer" | "colorError" | "colorErrorContainer" | ... (33 values) | Background surface color token | - |
basis | number | string | CSS flex-basis value | - |
border | string | object | object | Border. CSS string, strict token parts, or directional border object | - |
boxSizing | "content-box" | "border-box" | CSS box-sizing model | - |
color | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Text/icon color token | - |
direction | "row" | "column" | "row-reverse" | "column-reverse" | Flex direction. | row |
flex | number | string | CSS flex shorthand | - |
gap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Gap between children. Spacing token or {row, column} spacing-token object | - |
grow | number | CSS flex-grow value | - |
height | number | string | Element height. Number (px) or CSS string | - |
id | string | HTML id attribute | - |
isInline | boolean | Use inline-flex display instead of flex | - |
justify | string | CSS justify-content value for flex main-axis alignment | - |
margin | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Margin. Spacing token or {left, right, top, bottom} spacing-token object | - |
maxHeight | number | string | Maximum height. Number (px) or CSS string | - |
maxWidth | number | string | Maximum width. Number (px) or CSS string | - |
minHeight | number | string | Minimum height. Number (px) or CSS string | - |
minWidth | number | string | Minimum width. Number (px) or CSS string | - |
overflow | string | CSS overflow behavior | - |
padding | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Padding. Spacing token or {left, right, top, bottom} spacing-token object | - |
position | string | CSS position value | - |
radius | "shapeCornerNone" | "shapeCornerXs" | "shapeCornerSm" | "shapeCornerMd" | "shapeCornerLg" | "shapeCornerXl" | "shapeCorner2xl" | "shapeCorner3xl" | ... (10 values) | object | Border radius. Radius token or directional corner radius token object | - |
reverse | boolean | Reverse the flex direction | - |
role | string | ARIA role for the container element | - |
shrink | number | CSS flex-shrink value | - |
width | number | string | Element width. Number (px) or CSS string | - |
wrap | string | CSS flex-wrap value | - |
zIndex | number | CSS z-index stacking order | - |
Events
No events.
Notes
- Slots:
default. - Layout is a flex-based Box container for page structure. Use direction to set the main axis. Use HStack/VStack for simpler horizontal/vertical layouts. Supports shorthand and object-based padding, margin, border, and radius. Use Pebble spacing tokens for gap and padding values.
Example props
{
"align": "stretch",
"direction": "column",
"gap": "space400",
"padding": "space600"
}
A standard card container for creating card-based page layouts with configurable padding and an optional selectable theme for selection interfaces.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
fluid | boolean | When true, the card fills its parent width (including inside row layouts, where it would otherwise size to its content). | false |
padding | "PX_0" | "PX_8" | "PX_16" | "PX_24" | "PX_32" | Card padding size. | PX_24 |
theme | "DEFAULT" | "SELECTABLE" | Card theme. SELECTABLE adds 2px tertiary border for selection UI. | DEFAULT |
Events
press
Notes
- Slots:
default. - LayoutCard is a layout wrapper component providing consistent card styling with configurable padding. Use SELECTABLE theme for selection interfaces. Emits "press" event when clicked (requires onClick binding).
Example props
{
"elements": {
"layout-card": {
"children": [
"text"
],
"props": {},
"type": "LayoutCard"
},
"text": {
"children": [],
"props": {
"text": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s."
},
"type": "Text"
}
},
"root": "layout-card",
"state": {}
}
A clickable text hyperlink for navigating to URLs or downloading files. Use for inline or standalone text links — use Button for actions that don't navigate, and Breadcrumb for hierarchical navigation trails.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
href * | string | URL to navigate to | - |
aria-controls | string | ID of element controlled by this link | - |
aria-current | boolean | "page" | "step" | "location" | "date" | "time" | Indicates current item within a set of items | - |
aria-haspopup | boolean | "menu" | "listbox" | "tree" | "grid" | "dialog" | Indicates element triggers a popup or menu | - |
aria-hidden | boolean | Hide element from accessibility tree | - |
aria-label | string | Accessibility label for the link | - |
aria-labelledby | string | ID of element that labels this link | - |
color | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Pebble text/icon color token | - |
download | string | boolean | Prompts download of the linked URL. Boolean true uses default filename, string sets custom filename | - |
rel | string | Relationship between current document and linked URL. Auto-set to "noopener noreferrer" when target is _blank | - |
target | "_blank" | "_self" | Link target (_blank or _self). | _self |
text | string | Link text content | - |
typestyle | "typestyleBodyLarge" | "typestyleBodyLarge500" | "typestyleBodyLarge600" | "typestyleBodyLargeEmphasized" | "typestyleBodyMedium" | "typestyleBodyMedium400" | "typestyleBodyMedium500" | "typestyleBodyMedium600" | ... (61 values) | Pebble typestyle token name for link text (e.g., "typestyleTitleSmall") | - |
Events
press
Notes
- Use href="#" with a "press" event handler for links that trigger actions instead of navigating. The "press" event fires on every click; when href is "#" or empty, default navigation is automatically prevented. Set target="_blank" to open in a new tab — rel is auto-set to "noopener noreferrer" in that case. Use the download prop (boolean or custom filename string) to prompt a file download instead of navigation.
Example props
{
"href": "https://example.com",
"target": "_blank",
"text": "Learn more"
}
A structured list entry for displaying related entities vertically, with a title and optional caption. Use within grouped lists to present items for scanning, selection, or action.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
caption | string | Secondary text below the title | - |
shouldTruncateCaption | boolean | Truncate caption to single line. | true |
title | string | Primary text content of the list item | - |
Events
press
Notes
- Skipped: leftRenderer/rightRenderer (ReactNode — not serializable in JSON spec), dropdownActions (complex DropdownProps object with nested callbacks).
Example props
{
"caption": "Engineering Department",
"title": "Employee Name"
}
A skeleton placeholder shaped like a card, shown while card content is loading. Use inside a Card.Group context to match card dimensions and reduce perceived loading time. Set isGridView for grid-based layouts.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
isGridView | boolean | Display with margin for grid layouts. | false |
Events
No events.
Notes
- LoaderCard displays a skeleton loading state for cards. Use within Card.Group context for proper sizing. The isGridView prop adds margin for grid-based layouts.
Example props
{
"isGridView": false
}
A specialized card for displaying a physical location with its nickname and formatted address. Supports edit/delete actions, custom dropdown actions, and navigation links to location details.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
location * | object | Location object with nickname and address. Required for displaying location information | - |
actions | object[] | Array of action objects {id, label, icon}. Displayed as dropdown options. Emits "action" event with clicked action id | - |
minCardHeight | number | string | Minimum height of card. Number values are pixels. | 150 |
selectedActionId | string | Bound state path for the selected action id. Written before "action" event fires | - |
showDelete | boolean | Show delete button. Emits "delete" event when clicked. | false |
showEdit | boolean | Show edit button. Emits "edit" event when clicked. | false |
to | string | object | Route destination for navigation. String URL or object with {path, openInNewTab}. Card renders as anchor when provided | - |
Events
actionclickdeleteedit
Notes
- LocationCard displays location information with nickname and formatted address. Emits "click" when clicked, "edit"/"delete" for those actions, and "action" when a dropdown action is clicked. The clicked action id is written to the selectedActionId bound state before the "action" event fires. Use "to" prop for navigation to map or location details.
Example props
{
"location": {
"address": {
"city": "San Francisco",
"country": "US",
"countyName": "San Francisco County",
"state": "CA",
"streetLine1": "2570 Folsom Street",
"streetLine2": null,
"streetLine3": null,
"streetLine4": null,
"zip": "94110"
},
"nickname": "Work Main"
},
"showDelete": true,
"showEdit": true
}
Plays Lottie animations (JSON-based vector animations). Use for animated illustrations, loading states, or decorative motion graphics. Supports SVG, Canvas, and HTML rendering. Provide either a path to a Lottie JSON file or the animation data directly through loadConfig.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
height | string | Height of the animation container | - |
loadConfig | object | Semantic Lottie load configuration object | - |
width | string | Width of the animation container | - |
Events
No events.
Notes
- Use loadConfig to preserve the underlying React prop shape. Provide either loadConfig.path for an external JSON file or loadConfig.animationData for inline animation data. loadConfig.renderer controls how the animation is rendered: svg (default, best quality), canvas (better performance for complex animations), or html (rarely used). loadConfig.loop can be true (infinite), false (play once), or a number (play N times).
Example props
{
"height": "200px",
"loadConfig": {
"autoplay": true,
"loop": true,
"path": "/animations/success.json"
},
"width": "200px"
}
A text input that enforces a specific format pattern using mask characters (e.g. phone numbers, SSNs, postal codes). Use when the input value must conform to a known fixed-length pattern with digit, letter, or mixed character slots.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
mask * | string | string[] | Mask pattern. Use 9 for digit, a for letter, * for any character. Can be string ("999-999-9999") or array of patterns (["99.9a-999", "99.99/99-9"]) for multi-mask support | - |
aria-label | string | Accessible label when no visible label | - |
autoComplete | string | Browser autocomplete hint. | off |
autoFocus | boolean | Auto-focus input on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
fixedCharsPrefix | string | Fixes characters at the beginning of the value | - |
fixedCharsSuffix | string | Fixes characters at the end of the value | - |
id | string | Explicit HTML element id | - |
isDisabled | boolean | Disables the input | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
isSensitive | boolean | Marks input as sensitive for privacy/security | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character length | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character length | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
shouldEnforceUpperCase | boolean | Enforces uppercase on input characters | - |
shouldSkipInitialFormatting | boolean | If true, skip applying mask on the default/initial value | - |
shouldUnmaskValue | boolean | If true, onChange passes the unmasked value (without mask characters) | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Current masked value bound to state | - |
Events
blurchange
Notes
- onChange stores a string in state. By default it stores the masked value (with mask characters). Set shouldUnmaskValue to true to store only the raw input characters. Mask characters: 9 = digit, a = letter, * = any character. For multi-mask support (e.g., phone numbers with different formats), pass mask as an array of pattern strings.
Example props
{
"name": "ssn",
"label": "Social Security Number",
"mask": "999-99-9999",
"placeholder": "___-__-____",
"value": {
"$bindState": "/form/ssn"
}
}
A dropdown menu list that displays selectable actions or options. Use for context menus, action menus, or option pickers where items need to be selected from a list. Items can use WARNING type for cautionary actions or ALERT type for destructive actions like delete.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Array of menu items with label, value, and optional fields (secondaryLabel, tertiaryLabel, quaternaryLabel, rightLabel, description, leftIconType, type, tag, disabledInfo) | - |
enableSeparator | boolean | Show bottom border between items. | false |
isCompact | boolean | Render in compact mode | - |
maxHeight | number | Max height of the menu list in px. | 224 |
maxWidth | number | Maximum width in px | - |
minWidth | number | Minimum width in px | - |
searchable | boolean | Enable search within the menu list | - |
selectedValues | string[] | Array of selected item values for highlighting | - |
width | number | "auto" | Width of the menu list in px or "auto". | 192 |
Events
select
Notes
- The select event fires when a menu item is clicked. The clicked item value (string) is written to the bound selectedValues state. Use selectedValues to show which items are selected. Items support multiple label fields (label, secondaryLabel, tertiaryLabel, quaternaryLabel, rightLabel, description) - the component automatically renders the appropriate template based on which fields are provided.
Example props
{
"list": [
{
"label": "Edit",
"leftIconType": "EDIT",
"value": "edit"
},
{
"label": "Duplicate",
"leftIconType": "COPY",
"value": "duplicate"
},
{
"label": "Delete",
"leftIconType": "DELETE",
"type": "WARNING",
"value": "delete"
}
],
"selectedValues": {
"$bindState": "/selectedItems"
}
}
An interactive overlay that demands user attention and input, isolating specific tasks or information above the main page content. Use for confirmations, urgent notifications, or brief focused tasks that require an immediate response.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
animation | string | Modal animation type (e.g., "zoom", "fade"). | zoom |
backdropAnimation | string | Backdrop animation type (e.g., "fade"). | fade |
isFullScreen | boolean | If true, modal renders full screen. | false |
isVisible | boolean | Controls modal visibility | - |
shouldCloseOnBackdropClick | boolean | If true, modal closes when backdrop is clicked. | true |
shouldCloseOnEscape | boolean | If true, modal closes on Escape key press. Defaults to shouldCloseOnBackdropClick value | - |
shouldHideCancelIcon | boolean | If true, hides the close button in the header. | false |
shouldNotAnimate | boolean | Disables open/close animation. Should be true if DataGrid is rendered as content | - |
theme | "GRAY" | "NO_PADDING" | Pre-defined modal styles. GRAY: gray background. NO_PADDING: removes body padding | - |
title | string | Modal header title text | - |
width | number | string | Custom modal width in px (number) or CSS string | - |
Events
close
Notes
- Slots:
default. - Place ModalFooter component as the last child for action buttons. On close event, update isVisible binding to false to dismiss the modal.
Example props
{
"elements": {
"actions": {
"children": [
"cancelBtn",
"confirmBtn"
],
"props": {
"placement": "right"
},
"type": "ModalFooter"
},
"button": {
"children": [],
"on": {
"press": [
{
"action": "setState",
"params": {
"statePath": "/ui/modalOpen",
"value": true
}
}
]
},
"props": {
"appearance": "PRIMARY",
"label": "Open Modal"
},
"type": "Button"
},
"cancelBtn": {
"children": [],
"on": {
"press": [
{
"action": "setState",
"params": {
"statePath": "/ui/modalOpen",
"value": false
}
}
]
},
"props": {
"appearance": "GHOST",
"label": "Cancel"
},
"type": "Button"
},
"confirmBtn": {
"children": [],
"on": {
"press": [
{
"action": "setState",
"params": {
"statePath": "/ui/modalOpen",
"value": false
}
}
]
},
"props": {
"appearance": "PRIMARY",
"label": "Confirm"
},
"type": "Button"
},
"container": {
"children": [
"button",
"modal"
],
"props": {
"gap": "space400"
},
"type": "VStack"
},
"content": {
"children": [],
"props": {
"text": "Are you sure you want to proceed with this action? This operation cannot be undone."
},
"type": "Text"
},
"modal": {
"children": [
"content",
"actions"
],
"on": {
"close": [
{
"action": "setState",
"params": {
"statePath": "/ui/modalOpen",
"value": false
}
}
]
},
"props": {
"isVisible": {
"$bindState": "/ui/modalOpen"
},
"shouldHideCancelIcon": false,
"title": "Confirm Action",
"width": 744
},
"type": "Modal"
}
},
"root": "container",
"state": {
"ui": {
"modalOpen": false
}
}
}
A button placed inside a Modal that dismisses the dialog when clicked. Used as the cancel or close action in modal footers, allowing users to exit without completing the modal task.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
appearance | "ACCENT" | "ACTIVE" | "PRIMARY" | "DESTRUCTIVE" | "SUCCESS" | "INFO" | "WARNING" | "OUTLINE" | ... (10 values) | Button visual style. | OUTLINE |
isDisabled | boolean | If true, disables the button. | false |
label | string | Button label text. | "Cancel" |
size | "L" | "M" | "S" | "XS" | Button size. L, M, S, or XS. | M |
Events
No events.
Notes
- Must be placed inside a Modal element. Gets its close handler automatically from Modal context — no event wiring needed. When clicked, it dismisses the parent Modal (triggering the Modal close event).
Example props
{
"appearance": "OUTLINE",
"label": "Cancel"
}
Footer section of a Modal that holds primary action buttons for task completion or cancellation. Use inside a Modal as the bottom bar for confirm/cancel actions.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
bottomSpacing | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | Custom bottom spacing token. | modal footer height |
placement | "right" | "space-between" | Button alignment: right-aligned or space-between. | right |
shouldBeSticky | boolean | If true, the footer will be sticky at the bottom of the modal | - |
shouldHaveStickyOffset | boolean | If true, adds offset for sticky positioning. | true |
Events
No events.
Notes
- Slots:
default. - Place action buttons inside ModalFooter. Use placement="space-between" to align buttons on opposite sides.
Example props
{
"placement": "right"
}
A hierarchical nested list for displaying complex data structures like categories and subcategories, supporting up to four levels of expandable/collapsible nesting. Use for organizing large amounts of nested information such as organizational structures or department lists.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | NestedListItem[] | Array of nested tree items: {label, value?, branches?} | - |
depth | number | Current node depth in nested tree. | 0 |
indent | number | Indentation per nesting level in px. | 32 |
selectedValue | string | Currently selected item value. Bind to state for tracking | - |
showMore | object | Configuration for show more behavior | - |
theme | "NO_CARD" | "TRANSPARENT_NO_SEPARATOR" | "TRANSPARENT_NO_SEPARATOR_NO_CARD" | ExpansionPanel theme variant | - |
title | string | Title for the nested list | - |
toggleIcon | object | Toggle icon configuration | - |
Events
selecttoggle
Notes
- Items use {label, value?, branches?} format where branches creates nested levels. Each item renders its label as text. Leaf items (no branches) are clickable and update selectedValue in state. The select event fires when a leaf item is clicked. The toggle event fires when any branch is expanded/collapsed.
Example props
{
"elements": {
"list": {
"children": [],
"on": {
"select": [
{
"action": "setState",
"params": {
"statePath": "/lastAction",
"value": "selected"
}
}
]
},
"props": {
"list": [
{
"branches": [
{
"label": "Frontend",
"value": "fe"
},
{
"label": "Backend",
"value": "be"
},
{
"branches": [
{
"label": "Cloud",
"value": "cloud"
},
{
"label": "DevOps",
"value": "devops"
}
],
"label": "Infrastructure",
"value": "infra"
}
],
"isDefaultOpen": true,
"label": "Engineering",
"value": "eng"
},
{
"branches": [
{
"label": "Product Design",
"value": "pd"
},
{
"label": "Brand Design",
"value": "brand"
}
],
"label": "Design",
"value": "design"
},
{
"label": "Marketing",
"value": "marketing"
}
],
"selectedValue": {
"$bindState": "/selectedDept"
}
},
"type": "NestedList"
}
},
"root": "list",
"state": {
"lastAction": null,
"selectedDept": ""
}
}
A general-purpose numeric input for entering whole or decimal numbers. Supports min/max range constraints, step increments, locale-aware formatting, and inline arithmetic evaluation. Use for quantities, counts, measurements, or any plain number entry — use Currency for monetary amounts, Percentage for percent values, or Slider/RangeSlider for visual range selection.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
autoComplete | string | Browser autocomplete hint. | "off" |
autoFocus | boolean | Auto-focus on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
decimalPlaces | number | Number of decimal places. | 2 |
defaultValue | string | number | Initial default value for uncontrolled usage | - |
isDisabled | boolean | Disables the input | - |
isIntegerOnly | boolean | Restrict to integer values only | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
locale | string | Locale string for number formatting (e.g. "en-US", "de-DE") | - |
max | number | Maximum allowed value | - |
maxLength | number | Maximum character count | - |
maxWidth | string | Maximum width CSS value | - |
min | number | Minimum allowed value. | 0 |
minLength | number | Minimum character count | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text prefix inside the input | - |
shouldAllowCalculation | boolean | If true, input allows arithmetic operators and evaluates on blur | - |
shouldDisableFormatting | boolean | If true, number formatting will not be applied. | true |
shouldDisableRedundantZeroFormatting | boolean | If true, redundant zeros are preserved. | true |
shouldStripLeadingZeros | boolean | If true, leading zeros are stripped from the numeric value | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
step | number | Increment/decrement step size. | 1 |
stringPadding | object | Adds padding characters to the input value | - |
suffix | string | Text suffix inside the input | - |
theme | "DARK" | "INLINE_DATE_DAY" | "INLINE_DATE_MONTH" | "INLINE_DATE_YEAR" | "INLINE_SELECT_SEARCH" | "INLINE_TEXT" | "INLINE_TIME" | "INLINE_TIME_WITH_SECONDS" | ... (49 values) | Predefined visual theme | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | number | Current numeric value bound to state | - |
Events
blurchangechangeCalculationStatechangeRaw
Notes
- onChange stores a number in state when the input is valid, or an empty string when cleared. isIntegerOnly and decimalPlaces are mutually exclusive — use one or the other. min/max constrain the allowed range; step controls increment size. When shouldAllowCalculation is true, onChangeRaw emits the raw arithmetic expression string to the changeRaw event, and onChangeCalculationState emits the calculated value (or raw string if invalid) to the changeCalculationState event. Standalone — does not register with Form; use FormNumber inside a Form instead.
Example props
{
"name": "quantity",
"label": "Quantity",
"max": 100,
"min": 0,
"placeholder": "Enter quantity",
"step": 1,
"value": {
"$bindState": "/form/quantity"
}
}
Full-featured object list page with list view management. Supports multiple list views, view switching, inline editing, bulk actions, and record management. Use objectApiName to specify the object.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
objectApiName * | string | - | - |
Events
No events.
Notes
- Wraps ObjectListPage which provides list view selector, manage views, add/delete records, CSV export, and RQL filtering.
A modular component that presents a high-level overview of an entity (person, organization, device) with an avatar, title, and caption. Typically placed at the top of a detail page below navigation. Use Cards for detailed entity info, Lists for comparing multiple items, or Tables for large sortable datasets.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
avatarProps | object | Avatar configuration for the header | - |
caption | string | Header caption text below the title | - |
title | string | Header title text | - |
Events
No events.
Notes
- Slots:
default. - ObjectUI is a convenience wrapper that combines ObjectUITemplate, ObjectUIHeader, and ObjectUIContent. For more flexibility (such as adding ObjectUIStats between header and content), use the individual sub-components: ObjectUITemplate, ObjectUIHeader, ObjectUIStats, and ObjectUIContent. Complex actions (buttons, dropdowns) are not supported — use Button components in a separate layout for actions.
Example props
{
"avatarProps": {
"image": "https://i.pravatar.cc/150",
"type": "USER"
},
"caption": "Software Engineer",
"title": "Jane Doe"
}
The main body content area of an ObjectUI entity detail page. Place below ObjectUIHeader (and optionally ObjectUIStats) inside ObjectUITemplate to hold the detailed content for the entity.
Accepts children: Yes
Props
No props.
Events
No events.
Notes
- Slots:
default. - ObjectUIContent wraps the main content area of an ObjectUI layout. Place content components, forms, or other layouts as children. Use within ObjectUITemplate after ObjectUIHeader and/or ObjectUIStats.
Header section of an entity overview (person, organization, device) displaying an avatar, title, caption, optional label chip, and an optional primary action. Used at the top of ObjectUI layouts to identify the entity at a glance.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
avatarProps | object | Avatar configuration for the header | - |
caption | string | Header caption text below the title | - |
label | object | Label chip displayed next to the title | - |
primaryAction | object | Primary action button. Clicking it emits the primaryAction event | - |
primaryActionLabel | string | Deprecated. Use primaryAction.label instead for the primary action button text | - |
title | string | Header title text | - |
Events
primaryAction
Notes
- ObjectUIHeader renders the header section of an ObjectUI layout with an avatar, title, caption, optional label chip, and optional primary action. Clicking primaryAction emits the primaryAction event. primaryActionLabel is deprecated and kept only for backward compatibility; prefer primaryAction.label for new specs. Complex actions (button dropdowns, select actions, responsive action groups) are not supported — compose those with separate JSON-render components outside ObjectUIHeader.
Example props
{
"avatarProps": {
"image": "https://i.pravatar.cc/150",
"type": "USER"
},
"caption": "Software Engineer",
"label": {
"appearance": "INFO",
"children": "Manager"
},
"primaryAction": {
"icon": "ARROW_UP_RIGHT_BOX",
"label": "View profile"
},
"title": "Jane Doe"
}
A grid section within ObjectUI that displays key-value statistics about an entity (person, organization, device), with optional tooltips on stat labels and icon action buttons.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object | object[] | Array of cells to display in the stats grid. Each cell has a label and renderer with props | - |
actionClickedId | string | Stores the id of the clicked action. Bind to state path to access in actionClick event handler | - |
actions | object[] | Array of action buttons displayed at the bottom of the grid. Each action emits actionClick event with id in state | - |
Events
actionClick
Notes
- ObjectUIStats displays key metrics in a grid layout within an ObjectUI page. Use within ObjectUITemplate after ObjectUIHeader and before ObjectUIContent. State shape: - actionClickedId: string - The id of the clicked action button Renderer types: - TEXT: Displays plain text value. Props: { value: string, color?: text/icon color token } - LABEL: Renders a Pebble Label component. Props: { children/text, appearance, size, leftIcon/rightIcon, maxWidth, tip }. Nested icon colors must be text/icon color tokens. Actions: - Each action must have unique id - When an action is clicked, its id is written to the actionClickedId state path - The actionClick event is emitted after state update - Bind actionClickedId to a state path to access which action was clicked Tips: - Both cell labels and actions support tooltips - Tips can be simple strings or objects with appearance, placement, and size options
Example props
{
"list": [
{
"label": "Employees",
"props": {
"value": "127"
},
"renderer": "TEXT"
},
{
"label": "Departments",
"props": {
"value": "8"
},
"renderer": "TEXT"
},
{
"label": "Revenue",
"props": {
"value": "$2.4M"
},
"renderer": "TEXT"
}
]
}
The root container for an ObjectUI entity detail page that presents a high-level overview of an entity (person, organization, device). Place ObjectUIHeader, ObjectUIStats, and ObjectUIContent as children. Use ObjectUITemplate when you need a structured entity overview at the top of a page; use Cards for detailed entity info, Lists for comparing multiple items, or Tables for large sortable datasets.
Accepts children: Yes
Props
No props.
Events
No events.
Notes
- Slots:
default. - ObjectUITemplate is the root container for ObjectUI layouts. Place ObjectUIHeader, ObjectUIStats, and ObjectUIContent as children. Typically used to wrap an entire object detail page layout.
Example props
{
"elements": {
"content1": {
"children": [
"text1"
],
"props": {},
"type": "ObjectUIContent"
},
"content2": {
"children": [
"text2"
],
"props": {},
"type": "ObjectUIContent"
},
"header": {
"children": [],
"props": {
"caption": "This is object header caption",
"primaryActionLabel": "Button",
"title": "This is object header title"
},
"type": "ObjectUIHeader"
},
"stats": {
"children": [],
"props": {
"actions": [
{
"aria-label": "Settings",
"iconType": "SETTINGS_OUTLINE",
"id": "settings"
},
{
"aria-label": "Edit",
"iconType": "EDIT_OUTLINE",
"id": "edit"
},
{
"aria-label": "Calendar",
"iconType": "CALENDAR_OUTLINE",
"id": "calendar"
}
],
"list": [
{
"label": "Key here",
"props": {
"value": "Value goes here"
},
"renderer": "TEXT"
},
{
"label": "Key here",
"props": {
"value": "Value goes here"
},
"renderer": "TEXT"
}
]
},
"type": "ObjectUIStats"
},
"template": {
"children": [
"header",
"stats",
"content1",
"content2"
],
"props": {},
"type": "ObjectUITemplate"
},
"text1": {
"children": [],
"props": {
"text": "Custom content goes here1"
},
"type": "Text"
},
"text2": {
"children": [],
"props": {
"text": "Custom content goes here2"
},
"type": "Text"
}
},
"root": "template",
"state": {}
}
Branded header for an application or module page, displaying the app logo, title, optional subtitle, and optional help/support link. Use at the top of a page to identify which app the user is in.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
title * | string | Main title displayed in the app logo header | - |
isLogoRound | boolean | If true, logo image is displayed as a circle. | false |
isUnderlined | boolean | If true, a line is added at the bottom. | false |
logoUrl | string | URL for the logo image | - |
size | "STANDARD" | "FLUID" | Logo area width. STANDARD (936px) or FLUID (full width) | - |
subtitle | string | Secondary text displayed below the title | - |
supportLink | string | URL for a support/help link displayed next to the title | - |
theme | "NO_PADDING_TOP" | Visual theme. NO_PADDING_TOP removes top padding | - |
Events
No events.
Notes
- PageAppLogo renders an app-level logo header with title, optional subtitle, and logo image. Use supportLink to add a help documentation link next to the title. The supportLink prop accepts a URL string only; the object variant with onClick is not supported.
Example props
{
"logoUrl": "https://example.com/logo.png",
"subtitle": "Manage employee payroll",
"title": "Payroll"
}
The standard wrapper for a page's main body area. Controls maximum content width (584–1544px or FLUID for edge-to-edge) and horizontal alignment (center, left, right). Use PageContent for every page-level content region, whether constrained to a fixed width or stretched full-width.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
alignment | "CENTER" | "LEFT" | "RIGHT" | Content horizontal alignment within the page | - |
size | "584" | "776" | "1160" | "1544" | "FLUID" | Maximum content width. 584, 776, 1160, 1544 (px) or FLUID for full width | - |
theme | "NO_BOTTOM_PADDING" | "NO_MARGIN" | "PADDING_APP_NAV_BAR" | Layout adjustment: NO_BOTTOM_PADDING removes bottom padding, NO_MARGIN removes horizontal margins, PADDING_APP_NAV_BAR adds top padding to clear an app navigation bar | - |
Events
No events.
Notes
- Slots:
default. - Page wraps content in a page-level container with configurable width and alignment. Use size to constrain content width. Use FLUID for full-width layouts. Renders as Page.Content from Pebble.
Example props
{
"alignment": "CENTER",
"size": "1160"
}
A persistent footer bar at the bottom of a page, typically used for primary navigation actions like "Continue" or "Submit". Supports a built-in continue button (via the continue event) or custom child content for more complex footer layouts. Use shouldBeSticky to keep it visible at the bottom of the viewport as the user scrolls.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
bottomSpacing | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | Bottom padding spacing token | - |
continueBtnLabel | string | Label for the continue button. | "Continue" |
isContinueDisabled | boolean | If true, the continue button is disabled. | false |
shouldBeSticky | boolean | If true, footer is sticky at the bottom. | false |
shouldHaveStickyOffset | boolean | If true, adds spacing above sticky footer to prevent content overlap. | true |
stickyPosition | "absolute" | "fixed" | CSS position for sticky footer. | fixed |
Events
continue
Notes
- Slots:
default. - PageFooter renders a page-level footer area. When a continue event handler is wired, it renders a built-in continue button (use continueBtnLabel to customize text). When children are provided instead, they are rendered as custom footer content. Use shouldBeSticky to fix the footer at the bottom of the viewport.
Example props
{
"continueBtnLabel": "Continue",
"shouldBeSticky": true
}
A top-of-page header displaying a title and optional caption, used inside a page layout alongside PageContent and PageFooter. Use size to match the PageContent width.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
actionClickedId | string | Bind to state to receive the clicked action ID when an action is clicked | - |
actions | object[] | JSON-only extension for serializable button actions. React Page.Header actions is a ReactNode slot; this array renders Button actions and emits an action event on click. | - |
caption | string | Caption text displayed below the title | - |
id | string | HTML id attribute for the title/caption container | - |
shouldBeLeftAligned | boolean | If true, header is left-aligned instead of centered. | false |
shouldBeUnderlined | boolean | If true, header has an underline | - |
size | "584" | "776" | "1160" | "1544" | "FLUID" | Maximum header width. 584, 776, 1160, 1544 (px) or FLUID for full width | - |
theme | "NO_MARGIN" | "NO_TOP_MARGIN" | Visual theme. NO_MARGIN removes all margins, NO_TOP_MARGIN removes top margin only | - |
title | string | Title text for the page header | - |
Events
action
Notes
- PageHeader renders a page-level header with title and caption text. Use size to match the PageContent width. Use shouldBeLeftAligned to align the header to the left instead of center. The React actions prop is a ReactNode slot and is not JSON-serializable. For backward compatibility, SDUI keeps actions as a JSON-only extension that renders Button actions; each action emits the action event on click with its ID written to actionClickedId state. When JSON-only actions are present, the header is automatically underlined unless shouldBeUnderlined is set to false.
Example props
{
"elements": {
"header": {
"children": [],
"on": {
"action": [
{
"action": "setState",
"params": {
"statePath": "/lastActionClicked",
"value": {
"$state": "/clickedActionId"
}
}
}
]
},
"props": {
"actionClickedId": {
"$bindState": "/clickedActionId"
},
"actions": [
{
"appearance": "PRIMARY",
"icon": "ADD",
"id": "create",
"label": "Create"
}
],
"caption": "Page description or subtitle",
"title": "Page Title"
},
"type": "PageHeader"
}
},
"root": "header",
"state": {
"clickedActionId": "",
"lastActionClicked": ""
}
}
A navigation control that breaks large content into smaller pages, commonly used with data tables and content-rich views. Use when loading all data at once is impractical or when content is too large for a single view.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
pageCount * | number | Total number of pages | - |
alignment | "LEFT" | "CENTER" | "RIGHT" | Alignment of pagination controls | - |
forcePage | number | Override selected page with parent control (0-indexed). Bind to state | - |
initialPage | number | Initially selected page (0-indexed) | - |
marginPagesDisplayed | number | Pages shown at start and end of pagination | - |
pageRangeDisplayed | number | Range of pages displayed around current | - |
theme | "NO_MARGIN" | Visual style variant | - |
Events
change
Notes
- Bind forcePage to state for controlled pagination. The change event fires when the user clicks a page. The selected page number (0-indexed) is written to the bound forcePage state.
Example props
{
"forcePage": {
"$bindState": "/currentPage"
},
"pageCount": 10
}
A paginated list that divides items across pages with built-in navigation controls. Use when displaying a client-side list that is too long for a single view and needs page-by-page browsing.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | JSON-only subset of the React list prop. Each item must have an id and label for the built-in renderer. | - |
initialPage | number | Initial page number to display (0-indexed) | - |
pageSize | number | Number of items displayed per page. | 10 |
Events
change
Notes
- PaginateList intentionally exposes a JSON-only subset of the React list/listItemRenderer model. Each list item must provide id and label so SDUI can use its built-in renderer. The pageSize prop controls how many items appear per page (default 10). Unlike Paginate (standalone pagination control), PaginateList manages both list rendering and pagination state together.
Example props
{
"elements": {
"paginateList": {
"children": [],
"props": {
"list": {
"$bindState": "/items"
},
"pageSize": 3
},
"type": "PaginateList"
}
},
"root": "paginateList",
"state": {
"items": [
{
"id": 1,
"label": "Alice Johnson — Engineering"
},
{
"id": 2,
"label": "Bob Smith — Design"
},
{
"id": 3,
"label": "Carol Williams — HR"
},
{
"id": 4,
"label": "David Brown — Finance"
},
{
"id": 5,
"label": "Emma Davis — Marketing"
},
{
"id": 6,
"label": "Frank Miller — Operations"
},
{
"id": 7,
"label": "Grace Wilson — Legal"
},
{
"id": 8,
"label": "Henry Taylor — Support"
}
]
}
}
Define one adaptive pane
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
id * | string | Stable identifier, unique among direct siblings in one SplitPane. | - |
priority * | "PRIMARY" | "SECONDARY" | "TERTIARY" | Retention priority: TERTIARY collapses first, then SECONDARY; PRIMARY remains open. | - |
adaptation | PaneAdaptationRule[] | Ordered breakpoint-token rules for bottomDock, overlay, or hidden presentation. | - |
ariaLabel | string | Accessible name for the pane region. | - |
ariaLabelledBy | string | Space-separated element id list that labels the pane region. | - |
body | PaneBodyDescriptor | Body scrolling and padding behavior. | - |
collapseControl | "auto" | "header" | "divider" | Authored Collapse and temporary Hide control location while open. Every collapsed Pane restores from the shared divider rail. Auto uses the header when present and the divider otherwise; header falls back to the divider when no header exists. | auto |
collapsed | boolean | Controlled explicit collapsed state. Bind for SDUI controlled use. | - |
collapsible | boolean | Enable explicit user collapse. Automatic adaptation remains independent. | false |
committedSize | PaneCommittedSize | Controlled committed pixel size by orientation. Bind for SDUI controlled use. | - |
controlTips | PaneControlTips | Tooltip overrides for built-in Pane controls. | - |
defaultCollapsed | boolean | Initial explicit collapsed state for uncontrolled use. | false |
defaultCommittedSize | PaneCommittedSize | Initial committed pixel size by orientation for uncontrolled use. | - |
defaultDismissed | boolean | Initial dismissed state for uncontrolled use. | false |
dismissControl | "auto" | "header" | "divider" | Authored dismiss control location. Auto uses the header when present and the divider otherwise; header also falls back to the divider when no header exists. | auto |
dismissed | boolean | Controlled dismissed state. Bind for SDUI controlled use. | - |
dismissible | boolean | Enable explicit user dismissal. | false |
footer | PaneFooterDescriptor | Serializable fixed footer rendered outside the scrolling body. | - |
footerActionId | string | JSON-only event metadata. Bind to receive the activated footer action id before footerAction emits. | - |
header | PaneHeaderDescriptor | Serializable fixed header descriptor rendered outside the scrolling body. | - |
headerActionId | string | JSON-only event metadata. Bind to receive the activated header action id before headerAction emits. | - |
pin | "start" | "end" | Pin to a logical edge and exclude this pane from priority collapse. | - |
presentation | "docked" | "collapsed" | "hidden" | "bottomDock" | "overlay" | JSON-only event metadata. Bind to receive the resolved presentation before presentationChange emits; this does not control presentation. | - |
reflowSizing | PaneSizing | Sizing descriptor used while the parent SplitPane is reflowed. | - |
sizing | PaneSizing | Docked sizing descriptor. Omit for equal fill sizing without implicit bounds. | - |
Events
collapsedChangecommittedSizeChangedismissedChangefooterActionheaderActionpresentationChange
Notes
- Slots:
default. - Pane must be a direct child of SplitPane and requires a stable sibling-unique id plus PRIMARY, SECONDARY, or TERTIARY priority. - Use sizing and reflowSizing descriptors instead of legacy size constraints. Dimensions are pixel numbers or { value, unit: 'percent' }. - Header, body, footer, controlTips, pin, and adaptation preserve the React descriptor shapes. Icon fields use current Icon.TYPES names. - Bind collapsed, dismissed, and committedSize for controlled state. The wrapper writes each new value before emitting collapsedChange, dismissedChange, or committedSizeChange. - presentation, headerActionId, and footerActionId are JSON-only callback metadata. Bind them to read the callback payload; they are written before presentationChange, headerAction, or footerAction emits. - Pane adaptation accepts Pebble breakpoint token names and the bottomDock, overlay, or hidden presentations. - Persistence belongs to the parent SplitPane.
Example props
{
"elements": {
"inspector": {
"children": [
"inspectorText"
],
"props": {
"adaptation": [
{
"below": "breakpointSm",
"presentation": "overlay"
}
],
"ariaLabel": "Inspector",
"dismissControl": "divider",
"dismissed": {
"$bindState": "/inspector/dismissed"
},
"dismissible": true,
"header": {
"leadingIcon": "INFO_CIRCLE_OUTLINE",
"title": "Inspector"
},
"id": "inspector",
"presentation": {
"$bindState": "/inspector/presentation"
},
"priority": "TERTIARY",
"sizing": {
"mode": "fixed",
"size": 220
}
},
"type": "Pane"
},
"inspectorText": {
"children": [],
"props": {
"text": "Supplementary inspector",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"navigation": {
"children": [
"navigationText"
],
"on": {
"collapsedChange": [
{
"action": "setState",
"params": {
"statePath": "/navigation/changed",
"value": true
}
}
],
"footerAction": [
{
"action": "setState",
"params": {
"statePath": "/navigation/lastAction",
"value": {
"$state": "/navigation/footerActionId"
}
}
}
],
"headerAction": [
{
"action": "setState",
"params": {
"statePath": "/navigation/lastAction",
"value": {
"$state": "/navigation/headerActionId"
}
}
}
]
},
"props": {
"ariaLabel": "Navigation",
"body": {
"scroll": "auto"
},
"collapseControl": "header",
"collapsed": {
"$bindState": "/navigation/collapsed"
},
"collapsible": true,
"committedSize": {
"$bindState": "/navigation/committedSize"
},
"controlTips": {
"collapse": "Collapse navigation",
"restore": "Expand navigation"
},
"footer": {
"actions": [
{
"appearance": "PRIMARY",
"id": "create",
"label": "Create folder",
"placement": "end"
}
]
},
"footerActionId": {
"$bindState": "/navigation/footerActionId"
},
"header": {
"actions": [
{
"ariaLabel": "Refresh navigation",
"icon": "REFRESH_OUTLINE",
"id": "refresh",
"tip": "Refresh navigation"
},
{
"ariaLabel": "Search navigation",
"icon": "SEARCH_OUTLINE",
"id": "search"
}
],
"leadingIcon": "FOLDER_OUTLINE",
"title": "Navigation"
},
"headerActionId": {
"$bindState": "/navigation/headerActionId"
},
"id": "navigation",
"presentation": {
"$bindState": "/navigation/presentation"
},
"priority": "SECONDARY",
"sizing": {
"growWeight": 0,
"maxSize": 360,
"minSize": 180,
"mode": "resizable",
"preferredSize": 260
}
},
"type": "Pane"
},
"navigationText": {
"children": [],
"props": {
"text": "Folders and saved views",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"paneGroup": {
"children": [
"navigation",
"workspace",
"inspector"
],
"props": {
"adaptation": {
"collapseBelow": {
"SECONDARY": "breakpointSm",
"TERTIARY": "breakpointSm"
}
},
"ariaLabel": "Pane contract workspace",
"divider": {
"resizeGrip": "visible",
"visibility": "visible"
},
"id": "pane-contract-workspace",
"persistence": {
"fields": [
"committedSize",
"collapsed",
"dismissed"
],
"key": "pane-contract-workspace"
}
},
"type": "SplitPane"
},
"panePreview": {
"children": [
"paneGroup"
],
"props": {
"height": 360,
"minWidth": 0,
"width": "100%"
},
"type": "Box"
},
"workspace": {
"children": [
"workspaceText"
],
"props": {
"ariaLabel": "Workspace",
"header": {
"leadingIcon": "FILE_OUTLINE",
"title": "Workspace"
},
"id": "workspace",
"priority": "PRIMARY",
"sizing": {
"minSize": 280,
"mode": "fill",
"preferredSize": 0
}
},
"type": "Pane"
},
"workspaceText": {
"children": [],
"props": {
"text": "Primary workspace content",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
}
},
"root": "panePreview",
"state": {
"inspector": {
"dismissed": false,
"presentation": "docked"
},
"navigation": {
"changed": false,
"collapsed": false,
"committedSize": {
"horizontal": 240
},
"footerActionId": "",
"headerActionId": "",
"lastAction": "",
"presentation": "docked"
}
}
}
A secure input field for entering or creating passwords, with automatic character masking and an optional visibility toggle. Use in login, signup, or verification flows.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this input | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
autoCapitalize | "off" | "none" | "on" | "sentences" | "words" | "characters" | Auto-capitalization: off, none, on, sentences, words, or characters | - |
autoComplete | string | Browser autocomplete hint | - |
autoCorrect | "off" | "on" | Auto-correct: off or on | - |
autoFocus | boolean | Auto-focus on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
inputMode | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | Virtual keyboard type hint | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isOriginalInputReadOnly | boolean | Sets readonly mode directly on input HTML element | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character count | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text or icon name from Icon.TYPES to show before the input value | - |
readOnlyAffixSpacing | boolean | Controls gap between affixes and value in read-only mode. Set false to remove gap | true |
shouldAllowReveal | boolean | Show password reveal toggle. | true |
shouldPersistCursorPosition | boolean | Persist cursor position for controlled input. | false |
shrinkToPlaceholder | boolean | Input spans as much as its placeholder when true. Only applies when placeholder is visible | - |
shrinkToValue | boolean | Input spans as much as its value when true. Only applies when value is present | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
stringPadding | object | Pads input value with character until reaching maxLength | - |
suffix | string | Text or icon name from Icon.TYPES to show after the input value | - |
theme | string | Theme name from Input.Password.THEMES or custom theme | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Current password value bound to state | - |
Events
blurchangeclickfocuskeydownkeyupmouseentermouseleavepasterevealChange
Notes
- onChange writes password value to state path bound to
value, then emits "change" onBlur validates if checks are provided, then emits "blur" onRevealChange emits "revealChange" when the reveal state toggles Keyboard events (keydown, keyup, paste) and mouse events (click, mouseenter, mouseleave, focus) emit without parameters Use prefix/suffix for icons - pass Icon.TYPES names like "LOCK_OUTLINE" or text Use inputMode to hint the virtual keyboard type on mobile devices Supported ARIA attributes: aria-label, aria-labelledby, aria-describedby Set shouldAllowReveal to false to hide the reveal toggle (default: true) Standalone — does not register with Form; use FormPassword inside a Form instead.
Example props
{
"name": "password",
"isRequired": true,
"label": "Password",
"placeholder": "Enter password",
"shouldAllowReveal": true,
"value": {
"$bindState": "/form/password"
}
}
A numeric input for entering and editing percentage values. Automatically appends a % suffix, supports decimal precision, negative values, and upper/lower bounds. Use for financial calculations, progress indicators, or statistical entries requiring percentage values.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
allowNegative | boolean | Whether negative values are allowed. | false |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
decimalPlaces | number | Number of decimal places allowed. | 2 |
defaultValue | number | Default percentage value when uncontrolled | - |
id | string | HTML id attribute for the input | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
locale | string | Locale string for percentage formatting (e.g. en-US) | - |
lowerLimit | number | Minimum allowed percentage value | - |
maxWidth | string | Maximum width CSS value | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
shouldDisableFormatting | boolean | If true, percentage formatting will not be applied | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
step | number | Increment/decrement step size. | 1 |
upperLimit | number | Maximum allowed percentage value. | 100 |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | number | Current percentage value bound to state | - |
Events
blurchange
Notes
- onChange stores a numeric value (number | string) in state. The component automatically displays a % suffix icon. Use upperLimit/lowerLimit to constrain the range (defaults: 0-100, or -100-100 when allowNegative is true). Standalone — does not register with Form; use FormPercentage inside a Form instead.
Example props
{
"name": "taxRate",
"allowNegative": false,
"decimalPlaces": 2,
"label": "Tax Rate",
"placeholder": "0.00",
"upperLimit": 100,
"value": {
"$bindState": "/form/taxRate"
}
}
A specialized input for entering and editing phone numbers with automatic region-based formatting, international support, and an optional country code dropdown selector.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this input | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
autoCapitalize | "off" | "none" | "on" | "sentences" | "words" | "characters" | Auto-capitalization: off, none, on, sentences, words, or characters | - |
autoComplete | string | Browser autocomplete hint, e.g. "tel" | - |
autoCorrect | "off" | "on" | Auto-correct: off or on | - |
autoFocus | boolean | Auto-focus on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
countryCode | string | object | Either a fixed country code string or a country-code dropdown configuration object | - |
countryCodeDefaultValue | string | [Deprecated] Use countryCode.defaultValue instead. Initial selected country code for the legacy dropdown shape | - |
countryCodeValue | string | [Deprecated] Use countryCode.value instead. Bound selected country code for the legacy dropdown shape | - |
defaultRegion | string | Default country region code for formatting, e.g. "US", "IN", "CA". | US |
defaultValue | string | Initial default value for uncontrolled usage | - |
fixedCharsPrefix | string | Fixed characters at the beginning of value | - |
fixedCharsSuffix | string | Fixed characters at the end of value | - |
id | string | HTML element ID | - |
inputMode | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | Virtual keyboard type hint | - |
isCountryCodeDisabled | boolean | [Deprecated] Use countryCode.isDisabled instead for the legacy dropdown shape | - |
isCountryCodeReadOnly | boolean | [Deprecated] Use countryCode.isReadOnly instead for the legacy dropdown shape | - |
isCountryCodeRequired | boolean | [Deprecated] Use countryCode.isRequired instead for the legacy dropdown shape | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isOriginalInputReadOnly | boolean | Sets readonly mode directly on input HTML element | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
isSensitive | boolean | Marks field as containing sensitive data | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character count | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text or icon name from Icon.TYPES to show before the input value | - |
readOnlyAffixSpacing | boolean | Controls gap between affixes and value in read-only mode. Set false to remove gap | true |
region | string | [Deprecated] Use defaultRegion instead. Region code for phone formatting | - |
shouldAllowAutoFill | boolean | Allow browser autofill | - |
shouldEnforceUpperCase | boolean | Enforce upper case input | - |
shouldPersistCursorPosition | boolean | Persist cursor position for controlled input. | false |
shouldSkipInitialFormatting | boolean | Skip masking on default value | - |
shouldStopEventPropagation | boolean | Stop automatic input focus when clicking container | - |
shrinkToPlaceholder | boolean | Input spans as much as its placeholder when true. Only applies when placeholder is visible | - |
shrinkToValue | boolean | Input spans as much as its value when true. Only applies when value is present | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
stringPadding | object | Pads input value with character until reaching maxLength | - |
suffix | string | Text or icon name from Icon.TYPES to show after the input value | - |
testId | string | Deprecated testing-only prop kept for backward compatibility | - |
theme | string | Theme name from Input.Phone.THEMES or custom theme | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Current phone number value bound to state | - |
Events
blurchangeclickcountryCodeChangefocuskeydownkeyupmouseentermouseleavepaste
Notes
- onChange writes formatted phone number to state path bound to
value, then emits "change" onBlur validates if checks are provided, then emits "blur" Keyboard events (keydown, keyup, paste) and mouse events (click, mouseenter, mouseleave, focus) emit without parameters countryCode preserves the React API shape: pass a string for a fixed prefix or an object for the dropdown branch. countryCodeChange emits when the dropdown selection changes. countryCodeValue, countryCodeDefaultValue, isCountryCodeDisabled, isCountryCodeReadOnly, and isCountryCodeRequired are deprecated legacy aliases kept for backward compatibility; prefer the nested countryCode object fields for new specs. Use defaultRegion to specify formatting region (US, IN, CA, etc.) - defaults to US Use prefix/suffix for icons - pass Icon.TYPES names like "PHONE_OUTLINE" or text Use inputMode to hint the virtual keyboard type on mobile devices - defaults to "tel" Use stringPadding to automatically pad values Basic ARIA attributes (aria-label, aria-labelledby, aria-describedby) support accessibility The region prop is deprecated - use defaultRegion instead testId is a deprecated testing-only prop kept only for backward compatibility. Standalone — does not register with Form; use FormPhone inside a Form instead.
Example props
{
"name": "phone",
"autoComplete": "tel",
"countryCode": {
"name": "countryCode",
"isRequired": true,
"value": "1"
},
"defaultRegion": "US",
"label": "Phone Number",
"placeholder": "Enter phone number",
"value": {
"$bindState": "/form/phone"
}
}
Communicates the status of an ongoing process, like downloading or uploading files, to inform the user of the remaining wait time. Use determinate mode when progress percentage is known, or indeterminate when wait time cannot be calculated. For multi-step processes requiring user action, use ProgressSteps instead; for a simple busy indicator, use Spinner.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
appearance | "PRIMARY" | "SECONDARY" | "TERTIARY" | "ERROR" | "SUCCESS" | "WARNING" | "INFO" | Visual appearance style | - |
aria-describedby | string | ID of element that describes this progress bar | - |
aria-label | string | Accessibility label for screen readers | - |
aria-labelledby | string | ID of element that labels this progress bar | - |
aria-valuetext | string | Human-readable text alternative for the current value | - |
completedPercent | number | Progress percentage (0-100). Canonical ProgressBar value prop | - |
isIndeterminate | boolean | Shows indeterminate loading animation | - |
label | string | Deprecated compatibility prop for wrapper-level label text outside ProgressBar | - |
showPercentage | boolean | Deprecated compatibility prop for wrapper-level percentage text outside ProgressBar | - |
testId | string | Deprecated testing-only prop kept for backward compatibility. | progress-bar |
value | number | Deprecated. Use completedPercent instead | - |
Events
No events.
Notes
- Set isIndeterminate=true when the progress amount is unknown; the bar animates continuously. When progress becomes known, set completedPercent (0-100) and isIndeterminate=false. Use appearance to convey semantic meaning: SUCCESS for completed operations, ERROR for failed ones, WARNING for operations needing attention. completedPercent supports $state/$bindState for real-time updates from backend processes. Always provide an aria-label describing the process (e.g. "Downloading PDF") since the bar is a visual-only cue. The legacy value, label, showPercentage, and testId props are kept only for backward compatibility with older SDUI specs.
Example props
{
"appearance": "PRIMARY",
"aria-label": "Upload progress",
"completedPercent": 65
}
A multi-step progress indicator that visually shows completed, current, and upcoming steps in a sequential workflow. Use for onboarding flows, form wizards, or any multi-part process where users need to see their progress.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
steps * | object[] | Array of step configurations with title, subtitle, icon, hasError, and isDisabled | - |
isFluid | boolean | Steps take remaining space if true | - |
isHorizontal | boolean | Renders steps horizontally if true | - |
isNumeric | boolean | Shows numeric step indicators instead of icons | - |
stepsCompleted | number | Number of steps completed, starting from 1. | 0 |
Events
No events.
Notes
- stepsCompleted starts at 1. Use isNumeric for numbered steps. Use isHorizontal for compact horizontal layouts. SDUI does not support the React onStepAdd callback affordance, so add-step nodes are not rendered from JSON.
Example props
{
"steps": [
{
"subtitle": "Enter your details",
"title": "Personal Info"
},
{
"subtitle": "Configure company",
"title": "Company Setup"
},
{
"subtitle": "Confirm and submit",
"title": "Review"
}
],
"stepsCompleted": 2
}
Radio buttons let users choose a single option from two or more mutually exclusive options. Prefer over Select when showing 5 or fewer options that need to be immediately visible. Use Checkbox instead when multiple selections are allowed.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this radio group | - |
aria-label | string | Accessibility label for screen readers | - |
aria-labelledby | string | ID of element that labels this radio group | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | unknown | Initial value when uncontrolled | - |
hoveredValue | unknown | Value of currently hovered option, bound to state | - |
id | string | HTML id attribute for the radio group | - |
isDisabled | boolean | Disables all radio options | - |
isHorizontal | boolean | Arrange options in a row | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isReadOnly | boolean | Makes the radio group read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the radio group | - |
list | object[] | Array of { label, value } option objects | - |
name | string | Unique identifier for the input | - |
theme | "FLUID_WIDTH" | "REVERSE" | "FLUID_WIDTH_SPACE_BETWEEN_REVERSE" | Theme styling: FLUID_WIDTH for full-width options, REVERSE for reversed theme | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | unknown | Currently selected value bound to state | - |
variant | "BOX" | "LIST" | "GRID" | Visual variant: BOX for boxed layout, LIST for list layout, GRID for grid layout | - |
Events
blurchangemouseentermouseleave
Notes
- onChange stores the selected option value in state. The stored value matches the value field of the selected option object. onMouseEnter and onMouseLeave write the hovered option value to hoveredValue state path before emitting events. Pass list as an array of {label, value} option objects. Prefer over Select when showing 5 or fewer options that need to be immediately visible. Standalone — does not register with Form; use FormRadio inside a Form instead.
Example props
{
"name": "color",
"label": "Favorite Color",
"list": [
{
"label": "Red",
"value": "red"
},
{
"label": "Green",
"value": "green"
},
{
"label": "Blue",
"value": "blue"
}
],
"value": {
"$bindState": "/form/color"
}
}
A two-handle slider for selecting a numeric range within a track. Use for defining min/max boundaries such as price filters or value ranges.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
appearance | "PRIMARY" | "ERROR" | "SUCCESS" | "WARNING" | Visual appearance of the slider track. | PRIMARY |
aria-describedby | string | ID of element that describes this slider | - |
aria-label | string | Accessibility label for screen readers | - |
aria-labelledby | string | ID of element that labels this slider | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | number[] | Initial range values [min, max] when uncontrolled. | [0, 100] |
hideTooltip | boolean | Hides the value tooltips above the slider handles. | false |
id | string | HTML id attribute for the range slider | - |
isDisabled | boolean | Disables the slider. | false |
isDotsVisible | boolean | Shows dots at each step position. | true |
isReadOnly | boolean | Displays range as read-only text instead of interactive slider. | false |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the range slider | - |
marks | object | Marks on slider as {position: label} object (e.g. {10: "10$", 50: "50$"}) | - |
max | number | Maximum value of the slider range. | 100 |
min | number | Minimum value of the slider range. | 0 |
name | string | Unique identifier for the input | - |
shouldShowMarker | boolean | Shows mark labels below the slider. | true |
step | number | null | Value increment/decrement per step. max-min should be evenly divisible by step. Set to null when using marks as steps. | 1 |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | number[] | Current range values [min, max] bound to state | - |
Events
afterChangebeforeChangeblurchange
Notes
- onChange stores an array [minValue, maxValue] representing the selected range in state. onBeforeChange fires when user starts dragging (mouse down/touch start), onChange fires during dragging, onAfterChange fires when dragging ends (mouse up/touch end). For step-based sliders, max-min must be evenly divisible by step. Set step=null to use marks as discrete steps. When isReadOnly=true, displays the range as text (e.g., "10 to 20"). Use appearance to color the track (PRIMARY, ERROR, SUCCESS, WARNING).
Example props
{
"name": "priceRange",
"defaultValue": [
200,
800
],
"label": "Price Range",
"max": 1000,
"min": 0,
"step": 10,
"value": {
"$bindState": "/filter/priceRange"
}
}
Searches and selects a record from a searchable model, such as custom objects, Employee, Department, Team, Work Location, Computer, Job Requisition, or Applicant.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
objectApiName * | string | RQL API name of the model whose records can be searched. The backend rejects models that are not lookup-supported or that the viewer cannot access. | - |
canClear | boolean | Controls whether the value can be cleared. | - |
defaultValue | string | string[] | Initial uncontrolled record id, or record id array when isMulti is true. | - |
isDisabled | boolean | Disables searching and selection changes. | - |
isMenuDefaultOpen | boolean | Opens the menu when the field mounts. | - |
isMulti | boolean | Allows selecting multiple records. | - |
isReadOnly | boolean | Displays the value without allowing changes. | - |
label | string | Label displayed above the lookup. | - |
placeholder | string | Search input placeholder. | - |
shouldShowSearchIcon | boolean | Controls whether the search icon is shown. | - |
tip | string | Supplementary text displayed with the label. | - |
value | string | string[] | Controlled record id, or record id array when isMulti is true. | - |
Events
change
Notes
- Use a controlled value with $bindState or defaultValue for an uncontrolled initial value. The change event is notification-only; observe selected record ids through bound value state. Searchability and viewer record access are enforced by the backend at query time.
Example props
{
"elements": {
"recordLookup": {
"children": [],
"props": {
"label": "Asset",
"objectApiName": "asset__c",
"value": {
"$bindState": "/recordLookup/assetId"
}
},
"type": "RecordLookup"
}
},
"root": "recordLookup",
"state": {
"recordLookup": {
"assetId": ""
}
}
}
A skeleton placeholder shown while tabular report content is loading. Use when the content area will contain a data report with header and detail rows, and you want to reduce perceived loading time and prevent layout shift.
Accepts children: No
Props
No props.
Events
No events.
Notes
- ReportLoader displays a skeleton loading state for report content. It renders an animated skeleton with rows simulating report data including header and data rows with optional role columns.
Embeds a saved Rippling Analytics Report by id. Mounts the EmbeddedReport viewer in STANDALONE mode; the viewer owns fetch, loading, and 403–404 surfaces.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
reportId * | string | Id of a saved Rippling Analytics Report. The viewer fetches the report and derives grid-vs-chart from its saved configuration. | - |
Events
No events.
Notes
- reportId: id of the saved Analytics Report. The viewer fetches the report itself, derives grid-vs-chart from the saved config, and handles its own loading stencil and error boundary (forbidden / not-found surfaces from inside the tile). The tile owns a local <Suspense> boundary so the viewer's internal version-create suspense is contained to this tile and does not bubble up to the page-level Suspense.
A skeleton placeholder shown while report sharing content is loading. Use when the report share dialog or page layout is known and you want to reduce perceived loading time and prevent layout shift. Renders a header, description, and two side-by-side content blocks (stacking on mobile).
Accepts children: No
Props
No props.
Events
No events.
Notes
- ReportShareLoader is a zero-configuration skeleton loader for the report sharing UI. It accepts no props — simply place it where report sharing content will appear. Use ReportLoader for general report content, ReportViewerLoader for the report viewer with sidebar navigation, and ReportShareLoader specifically for the report sharing flow.
A skeleton placeholder shown while report viewer content is loading. Use when the content area will contain a report viewer with sidebar navigation and a main report content area, and you want to reduce perceived loading time and prevent layout shift.
Accepts children: No
Props
No props.
Events
No events.
Notes
- ReportViewerLoader displays a skeleton loading state for a report viewer layout. It renders a full-page placeholder with a sidebar navigation panel and a main report content area. This is a zero-prop component — just place it where the report viewer will appear. For tabular report data loading, use ReportLoader instead. For report sharing dialogs, use ReportShareLoader instead.
A responsive 12-column grid for dashboard widgets that supports drag-to-rearrange and resize-from-any-corner. Use for user-curated dashboards where end-users decide which tiles appear where and how large they are. Each direct child element's spec id must match a layouts[].identifier; that layout entry controls the child's size and per-block styling.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
layouts * | object[] | Layout descriptor for each block. Every entry's identifier must match the spec id of one of the board's direct children — that's how a block is wired to its widget content. Optional x/y positions are respected; when omitted, the board auto-places blocks. Drag/resize will respect optional min/max bounds. | - |
blockShapeCorner | "shapeCornerNone" | "shapeCornerXs" | "shapeCornerSm" | "shapeCornerMd" | "shapeCornerLg" | "shapeCornerXl" | "shapeCorner2xl" | "shapeCorner3xl" | ... (10 values) | Shape-corner radius token applied to every block, e.g. "shapeCornerMd". Per-entry layouts[].shapeCorner overrides this for individual blocks. | - |
containerPadding | array | Padding inside the board container in pixels [x, y]. | - |
isStatic | boolean | Locks all blocks: disables both drag and resize together. | false |
margin | array | Horizontal and vertical gutter between blocks in pixels. | [24, 24] |
rowHeight | number | Pixel height of one vertical grid unit. | 100 |
Events
breakpointChangedragStartdragStoplayoutChangeresizeStartresizeStop
Notes
- Slots:
default. - Children: Each direct child element's spec id must match an entry in this board's
layoutsarray. Children with no matching layout entry are dropped silently — keep the two in sync. Layouts: Each layout entry carries a uniqueidentifier(= the matched child's spec id), optionalx/yposition in grid units, the size in grid units (width 1–12 with a default of 3, height in row-height multiples), optionalminWidth/maxWidth/minHeight/maxHeightconstraints, and optional per-block styling (border,shadow,shapeCorner).minWidthdefaults to 1. Whenxoryis omitted, the board auto-calculates that coordinate. Uniform styling: Use top-levelblockShapeCornerwhen every block should share the same border-radius; per-entryshapeCorneroverrides it for that block only. Events: The board tracks the user's drag/resize internally — positions persist across re-renders as long as thelayoutsprop value (deep) does not change.layoutChange/breakpointChange/dragStart/dragStop/resizeStart/resizeStopare notification-only and carry no payload through json-render'semittoday; use them to drive side effects (e.g.runActionto a backend, hiding overlays while dragging), not to mirror the new layout into state. Do not bindlayoutsto a state path that you also mutate from these events — that creates a feedback loop that snaps the board back to its starting positions. Static mode:isStaticis a single switch — it disables both drag and resize simultaneously. The board does not support disabling only one of them.
Example props
{
"elements": {
"board": {
"children": [
"t1",
"t2",
"t3"
],
"props": {
"layouts": [
{
"height": 2,
"identifier": "t1",
"width": 12,
"x": 0,
"y": 0
},
{
"height": 2,
"identifier": "t2",
"width": 6,
"x": 0,
"y": 2
},
{
"height": 2,
"identifier": "t3",
"width": 6,
"x": 6,
"y": 2
}
]
},
"type": "ResizableBoard"
},
"t1": {
"props": {
"text": "Widget 1"
},
"type": "Text"
},
"t2": {
"props": {
"text": "Widget 2"
},
"type": "Text"
},
"t3": {
"props": {
"text": "Widget 3"
},
"type": "Text"
}
},
"root": "board",
"state": {}
}
Conditionally show or hide content based on container or viewport width breakpoints, enabling responsive layouts that adapt to different screen and panel sizes. Use to hide non-essential UI at narrow widths or show alternative layouts at wider breakpoints.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
above | "breakpoint2xl" | "breakpointLg" | "breakpointMd" | "breakpointSm" | "breakpointXl" | Min-width breakpoint token. Children visible at this width and above (mobile-first). Do not use with below | - |
below | "breakpoint2xl" | "breakpointLg" | "breakpointMd" | "breakpointSm" | "breakpointXl" | Max-width breakpoint token. Children visible below this width (desktop-first). Do not use with above | - |
mode | "show" | "hide" | Whether to show or hide children at the breakpoint. | show |
viewport | boolean | Use viewport media queries instead of shell container queries. | false |
Events
No events.
Notes
- Slots:
default. - Responsive conditionally renders children based on viewport or container width. Use mode="show" (default) to display children at a breakpoint, or mode="hide" to hide them. Use above for mobile-first (recommended) or below for desktop-first. Common tokens: breakpointSm, breakpointMd, breakpointLg. Do not mix above and below on the same component. To target a width range, nest two Responsive wrappers: an outer with mode="show" above="breakpointMd", and an inner with mode="hide" above="breakpointLg".
Example props
{
"elements": {
"responsiveDemos": {
"children": [
"responsiveShowDemo",
"responsiveHideDemo"
],
"props": {
"align": "flex-start",
"gap": "space300",
"wrap": "wrap"
},
"type": "HStack"
},
"responsiveHide": {
"children": [
"responsiveHideBox"
],
"props": {
"below": "breakpointMd",
"mode": "hide",
"viewport": true
},
"type": "Responsive"
},
"responsiveHideBox": {
"children": [
"responsiveHideText"
],
"props": {
"backgroundColor": "colorWarningContainer",
"border": "1px solid var(--color-outline)",
"padding": "space300",
"radius": "shapeCornerMd"
},
"type": "Box"
},
"responsiveHideDemo": {
"children": [
"responsiveHideLabel",
"responsiveHide"
],
"props": {
"gap": "space200"
},
"type": "VStack"
},
"responsiveHideLabel": {
"children": [],
"props": {
"text": "mode='hide', below='breakpointMd'",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"responsiveHideText": {
"children": [],
"props": {
"text": "Hidden below 768px (mobile)",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"responsiveHint": {
"children": [],
"props": {
"text": "Resize the browser below 768px to see the Show panel appear and the Hide panel disappear.",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"responsiveRoot": {
"children": [
"responsiveHint",
"responsiveDemos"
],
"props": {
"gap": "space300"
},
"type": "VStack"
},
"responsiveShow": {
"children": [
"responsiveShowBox"
],
"props": {
"below": "breakpointMd",
"mode": "show",
"viewport": true
},
"type": "Responsive"
},
"responsiveShowBox": {
"children": [
"responsiveShowText"
],
"props": {
"backgroundColor": "colorPrimaryContainer",
"border": "1px solid var(--color-outline)",
"padding": "space300",
"radius": "shapeCornerMd"
},
"type": "Box"
},
"responsiveShowDemo": {
"children": [
"responsiveShowLabel",
"responsiveShow"
],
"props": {
"gap": "space200"
},
"type": "VStack"
},
"responsiveShowLabel": {
"children": [],
"props": {
"text": "mode='show', below='breakpointMd'",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"responsiveShowText": {
"children": [],
"props": {
"text": "Visible only below 768px (mobile)",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
}
},
"root": "responsiveRoot",
"state": {}
}
A linear set of buttons for toggling between closely related choices (2-5 short-label options) and instantly applying a selection. Supports single, multi, and range selection modes. NOT suitable for binary (2-option) choices — use Toggle or ToggleButton instead. Prefer over Radio when options are short labels needing a compact inline layout; use Radio for longer phrases, Tabs for content navigation.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Array of { label, value } option objects | - |
appearance | "PRIMARY" | "POSITIVE" | "NEGATIVE" | "NEUTRAL" | Visual style variant. | PRIMARY |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | string[] | Initial value when uncontrolled | - |
isDisabled | boolean | Disables the entire control | - |
isFluid | boolean | Stretches control to fill container width | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isMulti | boolean | Allows selecting multiple options | - |
isReadOnly | boolean | Makes the control read-only | - |
isRequired | boolean | Marks the field as required | - |
isVertical | boolean | Renders options in a vertical layout | - |
label | string | Label text above the segmented control | - |
name | string | Unique identifier for the input | - |
options | object[] | [Deprecated] Use list. Legacy alias for segmented control options | - |
rangeLabels | object | Labels to display at the start and end of the control range | - |
size | "XS" | "S" | "M" | "L" | Control size variant. | M |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | string[] | Currently selected value bound to state | - |
Events
blurchange
Notes
- onChange stores the selected value (single mode) or an array of selected values (isMulti mode) in state. Pass list as an array of {label, value} objects. Prefer over Radio when options are short labels (2-5 items) and need a compact inline layout. Standalone — does not register with Form; use FormSegmentedControl inside a Form instead.
Example props
{
"name": "plan",
"label": "Plan Type",
"list": [
{
"label": "Monthly",
"value": "monthly"
},
{
"label": "Quarterly",
"value": "quarterly"
},
{
"label": "Annual",
"value": "annual"
}
],
"value": {
"$bindState": "/form/plan"
}
}
A dropdown input that lets users choose one or more options from a predefined list. Use for long lists, searchable lists, or constrained spaces. Use Radio or Checkbox cards instead when there are few options and the selection is a key part of the flow.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this select | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this select | - |
canClear | boolean | Show clear button to deselect all | - |
canSelectAll | boolean | Show select-all toggle. Requires isMulti to be true | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
creatable | boolean | Allow creating new options not in the list | - |
defaultSearchQuery | string | Initial search input value | - |
defaultValue | unknown[] | unknown | Initial selected value or values when uncontrolled | - |
dropdownHeight | number | Sets dropdown menu height in pixels | - |
emptyListPlaceholder | string | object | Placeholder when dropdown list is empty. Can be string or object with state-specific placeholders | - |
footer | object | Fixed footer at bottom of dropdown menu | - |
fuseOptions | object | Fuse.js search options for customizing fuzzy search behavior | - |
id | string | HTML id attribute for the select input | - |
isDisabled | boolean | Disables the select | - |
isInvalid | boolean | Shows invalid styling on the select | - |
isMenuDefaultOpen | boolean | If true, dropdown menu will be open by default | - |
isMulti | boolean | Allow multiple selections | - |
isPositionFixed | boolean | Position dropdown relative to viewport instead of parent | - |
isReadOnly | boolean | Makes the select read-only | - |
isRequired | boolean | Marks the field as required | - |
isSearchable | boolean | Enable type-to-search filtering | - |
label | string | Label text above the select | - |
list | object[] | object[] | Selectable options. Supports a flat array of options or a nested array of {label, list} groups | - |
maxHeight | string | number | Max height of multi-select container (CSS value) | - |
maxTruncationLines | number | Max rows of chips visible before "+X" overflow chip appears (multi-select only) | - |
name | string | Unique identifier for the input | - |
options | object[] | object[] | Deprecated alias for list. Use list for new specs | - |
placeholder | string | Placeholder text when empty | - |
placement | "auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | ... (15 values) | Dropdown position relative to input. | bottom-start |
rows | number | Minimum number of rows to show | - |
scrollThreshold | number | Extra pixels to render above/below viewport for smoother scrolling (pagination mode) | - |
selectedOptionsModalClassName | string | CSS class for the modal showing all selected options (multi-select +X chip) | - |
shouldFocusFirstElement | boolean | Auto-focus first menu item when dropdown opens | - |
shouldShowSearchIcon | boolean | Show search icon prefix when isSearchable is true | - |
shouldUsePortal | boolean | Render dropdown in a React Portal. | false |
size | "XS" | "S" | "M" | "L" | Select input size variant. | M |
theme | "TRANSPARENT_BORDER" | "TOP_NAV" | "INLINE_TRANSPARENT_BORDER" | "INLINE_TOP_NAV" | "NO_PADDING_RIGHT_NO_BOX_TRANSPARENT_BORDER" | "NO_PADDING_RIGHT_NO_BOX_TOP_NAV" | "NO_PADDING_LEFT_NO_BOX_TRANSPARENT_BORDER" | "NO_PADDING_LEFT_NO_BOX_TOP_NAV" | Visual theme variant for customized styling | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | unknown | Currently selected value bound to state | - |
Events
blurchangefocusmenuTogglepaste
Notes
- onChange stores the selected option value in state (single mode) or an array of selected values (isMulti mode). Use list for the React-aligned static option branches. list supports either a flat array of options or nested groups of {label, list}. The legacy options prop is kept only for backward compatibility. Options support rich metadata: secondaryLabel/tertiaryLabel/quaternaryLabel for multi-line text, leftIconType/labelIcon for icons (use Icon.TYPES glyph names like 'CHECK_CIRCLE_OUTLINE'), avatarProps for user options, flag for country codes, isRecommended for badges, isSeparator for dividers. Set isMulti=true for multi-select with token chips. Set creatable=true to allow creating new options. Multi-select chip overflow: use maxTruncationLines to cap the number of visible chip rows before a "+X" overflow chip appears. Do not use rows for this — rows sets the minimum row count, not the max. onMenuToggle emits 'menuToggle' event when dropdown opens/closes. Footer onClick emits the custom event name specified in footer.onClick. Standalone — does not register with Form; use FormSelect inside a Form instead.
Example props
{
"name": "country",
"label": "Country",
"list": [
{
"label": "United States",
"value": "us"
},
{
"label": "Canada",
"value": "ca"
},
{
"label": "United Kingdom",
"value": "uk"
}
],
"placeholder": "Select a country",
"value": {
"$bindState": "/form/country"
}
}
A card-based selection input that renders a group of selectable cards for single or multi-choice picking. Use when users need to choose from a small set of visually rich options displayed as cards (e.g. plans, locations, tiers). Use Radio for simple text-only single choice, or Select for long option lists in a dropdown.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Array of item objects to render as selectable cards | - |
renderer * | "BASIC_CARD" | "LOCATION_CARD" | JSON-only constrained renderer choice: BASIC_CARD or LOCATION_CARD | - |
aria-describedby | string | ID of element that describes this input for screen readers | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input for screen readers | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | number | string | number[] | Initial selection when uncontrolled | - |
id | string | Unique DOM id for the input element | - |
isDisabled | boolean | Disables all items in the group | - |
isInvalid | boolean | Shows invalid styling on the group | - |
isMulti | boolean | Allow multiple selection. | false |
isReadOnly | boolean | Makes the group read-only | - |
isRequired | boolean | Marks as required. In multi-select, prevents deselecting the last item | - |
label | string | Label text above the input | - |
name | string | Unique identifier for the input | - |
testId | string | Deprecated testing-only prop kept for backward compatibility | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | number | string | number[] | Selected value(s). Single value when isMulti is false, array when true | - |
valueIdentifier | string | Key name to extract unique value from each list item. | "value" |
Events
change
Notes
- onChange stores a single value when isMulti is false, or an array of values when isMulti is true. The list prop must be an array of objects; each object should have a key matching valueIdentifier (default "value") for unique identification, plus title and content keys for BASIC_CARD renderer display. renderer is a JSON-only constrained rendering model that chooses between the built-in BASIC_CARD and LOCATION_CARD renderers because the React renderer function prop is not serializable. testId is a deprecated testing-only prop kept only for backward compatibility. This component does not accept children — use a layout wrapper (VStack) to place multiple SelectableGroup elements together.
Example props
{
"name": "plan",
"label": "Select a Plan",
"list": [
{
"content": "Free tier",
"title": "Basic",
"value": "basic"
},
{
"content": "$10/month",
"title": "Pro",
"value": "pro"
},
{
"content": "Custom pricing",
"title": "Enterprise",
"value": "enterprise"
}
],
"renderer": "BASIC_CARD",
"value": {
"$bindState": "/form/plan"
},
"valueIdentifier": "value"
}
A dropdown menu that displays selectable options, allowing users to choose from a list of actions or settings. Includes a built-in trigger button. Deprecated — prefer Dropdown for new specs.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Array of menu options: {label, value, isDisabled?} | - |
defaultValue | string | Initially selected value | - |
isCompact | boolean | Render in compact mode | - |
isDisabled | boolean | Disable the menu trigger | - |
isScrollbarAlwaysVisible | boolean | Always show scrollbar in the menu list | - |
maxHeight | number | Max height of the menu in px | - |
placement | "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end" | Menu position. | bottom-start |
searchable | boolean | Enable search within the menu | - |
shouldAutoClose | boolean | Auto-close after item selection | - |
shouldCloseOnScroll | boolean | Close dropdown on document scroll. | false |
shouldScrollToSelectedValue | boolean | Auto-scroll to the selected value in the list | - |
theme | "BOLD" | Visual theme for the trigger. Available: BOLD | - |
value | string | Currently selected value. Bind to state for selection tracking | - |
virtualizeWhenItemCountExceeds | number | Virtualize the list when item count exceeds this number | - |
width | number | Width of the menu in px. | 312 |
Events
change
Notes
- Deprecated — prefer Dropdown for new specs. Bind value to state to track the selected option. The change event fires on selection. The trigger is rendered automatically with the selected option label.
Example props
{
"list": [
{
"label": "Edit",
"value": "edit"
},
{
"label": "Duplicate",
"value": "duplicate"
},
{
"label": "Delete",
"value": "delete"
}
],
"value": {
"$bindState": "/selectedAction"
}
}
A skeleton placeholder shown while settings page content is loading. Use when the content area will contain a settings form with label/value rows, and you want to reduce perceived loading time and prevent layout shift. Supports optional centering and custom margin.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
isCenter | boolean | Center the loader horizontally using auto margins. | false |
margin | string | number | Custom margin for the loader container. Accepts a CSS string (e.g. "16px") or a number (applied as px). Overrides default top margin when provided. | - |
Events
No events.
Notes
- SettingsLoader displays a skeleton loading state for settings page content. It renders animated rows simulating label/value pairs in a settings layout. Use isCenter to horizontally center the loader. Use margin to override the default top margin.
Example props
{
"isCenter": false
}
A container that truncates a list of child elements, showing only the first N items with a "Show all" / "Show less" toggle button. Use to reduce visual clutter in long lists while keeping all items accessible on demand.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
buttonSize | "XS" | "S" | "M" | "L" | Size of the show more/less toggle button | - |
leftOffset | number | Left padding for the toggle button in pixels | - |
showMoreSuffix | string | Suffix text appended to "Show all N" button text. | "items" |
size | number | Number of items to show initially before requiring expansion. | 3 |
Events
No events.
Notes
- Slots:
default. - ShowMore truncates its direct children — only the first "size" are shown initially, with a toggle to reveal the rest. Items MUST be direct children of ShowMore (not wrapped in a VStack or other container), otherwise truncation has no effect. For dynamic lists from state arrays, place the "repeat" field on the ShowMore element itself so each array item becomes a direct child that can be truncated.
Example props
{
"elements": {
"item1": {
"children": [],
"props": {
"title": "Alice Johnson"
},
"type": "ListItem"
},
"item2": {
"children": [],
"props": {
"title": "Bob Martinez"
},
"type": "ListItem"
},
"item3": {
"children": [],
"props": {
"title": "Carol Lee"
},
"type": "ListItem"
},
"item4": {
"children": [],
"props": {
"title": "David Kim"
},
"type": "ListItem"
},
"item5": {
"children": [],
"props": {
"title": "Eva Nguyen"
},
"type": "ListItem"
},
"preview": {
"children": [
"showMore"
],
"props": {
"direction": "column",
"width": "300px"
},
"type": "Box"
},
"showMore": {
"children": [
"item1",
"item2",
"item3",
"item4",
"item5"
],
"props": {
"showMoreSuffix": "employees",
"size": 3
},
"type": "ShowMore"
}
},
"root": "preview",
"state": {}
}
A signature capture input that lets users sign by drawing on a canvas or typing their name. Use for legally binding agreements, contracts, or any workflow requiring a personal signature.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this input | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | Initial default signature value | - |
id | string | Unique DOM element ID | - |
isDisabled | boolean | Disables the signature input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isReadOnly | boolean | Shows signature image only, no input | - |
isRequired | boolean | Marks the field as required | - |
isTypeSignatureDisabled | boolean | Only show draw input, hide type input. | false |
label | string | Label text above the input | - |
name | string | Unique identifier for the input | - |
penColor | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Pen color token for drawing | - |
placeholder | string | Placeholder text for the drawing area | - |
typePlaceholder | string | Placeholder text for the type signature input | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Signature as base64 PNG data URL string | - |
Events
change
Notes
- onChange stores a base64 PNG data URL string (e.g. "data:image/png;base64,..."). The component provides both a draw canvas and a type-to-sign input. When isTypeSignatureDisabled is true, only the draw canvas is shown.
Example props
{
"name": "signature",
"label": "Signature",
"value": {
"$bindState": "/form/signature"
}
}
A specialized masked input for entering Canadian Social Insurance Numbers (SIN). Automatically formats the 9-digit value as "XXX XXX XXX" while storing the unmasked digits. Use for Canadian employee or tax forms requiring a SIN — use Ssn for US Social Security Numbers, or Masker for other custom-format masked inputs.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-label | string | Accessible label when no visible label | - |
autoComplete | string | Browser autocomplete hint. | off |
autoFocus | boolean | Auto-focus input on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | Initial unmasked SIN value | - |
fixedCharsPrefix | string | Fixes characters at the beginning of the value | - |
fixedCharsSuffix | string | Fixes characters at the end of the value | - |
id | string | Explicit HTML element id | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character length | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character length | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text. | "XXX XXX XXX" |
shouldEnforceUpperCase | boolean | Enforces uppercase on input characters | - |
shouldSkipInitialFormatting | boolean | If true, skip applying mask on the default/initial value | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Unmasked SIN value (9 digits, no spaces) | - |
Events
blurchange
Notes
- onChange stores the unmasked 9-digit SIN string (no spaces). The input automatically formats display as "XXX XXX XXX". Built-in SIN validation rules apply. Standalone — does not register with Form; use FormSin inside a Form instead.
Example props
{
"name": "sin",
"label": "Social Insurance Number",
"placeholder": "XXX XXX XXX",
"value": {
"$bindState": "/form/sin"
}
}
An animated placeholder that mimics the shape of content while it loads, available in text (lines), circle, and box variants.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
animation | "wave" | "pulse" | "none" | Loading animation style. | wave |
borderRadius | "shapeCornerNone" | "shapeCornerXs" | "shapeCornerSm" | "shapeCornerMd" | "shapeCornerLg" | "shapeCornerXl" | "shapeCorner2xl" | "shapeCorner3xl" | ... (10 values) | Border radius token (BOX variant) | - |
gap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | string | number | Gap between lines when lines > 1 (TEXT variant). Spacing token, CSS string, or number. | 4px |
height | number | string | Height in px or CSS string (BOX variant) | - |
initialTimestamp | number | Initial mount timestamp for animation delay calculation. Used to coordinate animations across multiple skeletons.now() | Date |
lineHeight | string | number | Line height of text skeleton for pixel-perfect match (TEXT variant). | 15px |
lines | number | Number of text lines (TEXT variant). | 1 |
show | boolean | Whether the skeleton is loading. true renders the skeleton, false renders nothing. | true |
size | number | string | Diameter in px or CSS string (CIRCLE variant). | 40 |
variant | "text" | "circle" | "box" | Skeleton shape variant. | text |
width | string | number | Width of the skeleton (number in px or CSS string) | - |
Events
No events.
Notes
- Variant determines which size props apply: text uses width/lines/gap/lineHeight, circle uses size, box uses width/height/borderRadius. For the text variant, gap accepts Pebble spacing tokens, numbers, or CSS strings. For text, lineHeight should be provided (e.g. "1.5em", "20px") to ensure proper height - without it the skeleton will have 0 height and be invisible. Skipped: typestyle (complex theme Typestyle object — use gap and lineHeight directly instead).
Example props
{
"animation": "wave",
"lineHeight": "1.5em",
"lines": 3,
"variant": "text",
"width": 200
}
An interactive control for selecting a single numeric value within a defined range by dragging a handle along a horizontal track. Use for numeric ranges like 0–100; do not use for extremely large ranges (e.g. 1–1000) or non-numeric values.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
appearance | "PRIMARY" | "ERROR" | "SUCCESS" | "WARNING" | Sets slider appearance. | PRIMARY |
aria-describedby | string | ID of element that describes this slider | - |
aria-label | string | Accessibility label for screen readers | - |
aria-labelledby | string | ID of element that labels this slider | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | number | Initial value when uncontrolled. | 0 |
hideTooltip | boolean | Hide the value tooltip. | false |
isDisabled | boolean | Disables the slider | - |
isDotsVisible | boolean | If true renders slider with dots. | true |
isReadOnly | boolean | Makes the slider read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the slider | - |
marks | object | Named marks on the slider track. Keys are numeric positions, values are labels | - |
max | number | Maximum value. | 100 |
min | number | Minimum value. | 0 |
name | string | Unique identifier for the input | - |
shouldShowMarker | boolean | Controls visibility of marker. | true |
step | number | null | Step size between values. Set to null to use marks as steps. | 1 |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | number | Current slider value bound to state | - |
Events
afterChangebeforeChangeblurchange
Notes
- onChange stores a number in state. Use min/max to define the range and step to set granularity. Set step to null to use marks as step positions. The marks prop accepts a Record<string, string> where keys are numeric positions and values are display labels. beforeChange fires when user starts dragging, afterChange fires when dragging ends. Standalone — does not register with Form; use FormSlider inside a Form instead.
Example props
{
"name": "volume",
"label": "Volume",
"max": 100,
"min": 0,
"step": 1,
"value": {
"$bindState": "/form/volume"
}
}
A passive notification that appears at the bottom of the screen to provide quick, at-a-glance feedback on the outcome of an action. Use for non-critical, supplementary messages that do not require user action — for critical messages requiring acknowledgment, use a Modal instead.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
text * | string | Message text to display in the snackbar | - |
appearance | "SUCCESS" | "INFO" | "WARNING" | "ERROR" | Snackbar appearance type. | INFO |
canDismiss | boolean | Show dismiss button. | true |
id | string | Unique identifier for the snackbar. Prevents duplicates and resets auto-dismiss timer on update | - |
isVisible | boolean | Controls snackbar visibility. Bind to state to show/hide programmatically | - |
metadata | object | Arbitrary key/value context forwarded to the global SnackBar.onTrigger callback. Useful for analytics/logging (e.g. { source: "ProfilePage" }) | - |
persist | boolean | If true, snackbar will not auto-close | - |
title | string | Custom text for the dismiss button instead of close icon | - |
Events
dismiss
Notes
- SnackBar is imperative — it triggers a toast notification when isVisible becomes true. Bind isVisible to state and set it to true via a setState action to show the snackbar. The snackbar auto-dismisses after 7 seconds unless persist is true.
Example props
{
"elements": {
"btn": {
"children": [],
"on": {
"press": [
{
"action": "setState",
"params": {
"statePath": "/showSnack",
"value": true
}
}
]
},
"props": {
"appearance": "PRIMARY",
"label": "Show Success Snackbar"
},
"type": "Button"
},
"container": {
"children": [
"btn",
"snackbar"
],
"props": {
"gap": "space400"
},
"type": "VStack"
},
"snackbar": {
"children": [],
"props": {
"appearance": "SUCCESS",
"isVisible": {
"$bindState": "/showSnack"
},
"text": "Changes saved successfully!"
},
"type": "SnackBar"
}
},
"root": "container",
"state": {
"showSnack": false
}
}
A progress indicator for communicating that a process or task is currently underway without a known completion time. Use ProgressBar instead when the completion percentage is known.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
alignment | "LEFT" | "CENTER" | "RIGHT" | Horizontal alignment. | CENTER |
appearance | "PRIMARY" | "SECONDARY" | "TERTIARY" | "NEUTRAL" | "INVERSE" | Spinner color variant. | PRIMARY |
description | string | Description text below the spinner | - |
fixedWindowCentered | boolean | Fixed-positioned centered in browser viewport. | false |
showAfter | number | Delay in milliseconds before spinner appears. | 0 |
size | "3XS" | "2XS" | "XS" | "S" | "M" | "L" | "XL" | Spinner size variant. | M |
title | string | Title text above the spinner | - |
windowCentered | boolean | Absolutely centered within parent container. | false |
Events
No events.
Notes
- windowCentered uses absolute positioning (requires relative parent), fixedWindowCentered uses fixed positioning (viewport center). Skipped: stopInfiniteDomMutation (DataDog internal prop).
Example props
{
"appearance": "PRIMARY",
"description": "Loading...",
"size": "M"
}
A compound button that combines a primary action with a secondary trailing button, typically opening a dropdown of alternative actions. Use when the user has a main action with related alternatives (e.g. "Save" with "Save as draft", "Save and publish").
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
label * | string | Text content of the primary button section | - |
appearance | "PRIMARY" | "ACCENT" | "OUTLINE" | "SUCCESS" | "INFO" | "DESTRUCTIVE" | "WARNING" | "ACTIVE" | Visual style variant. Ghost and Solid are not available. | PRIMARY |
dropdownList | object[] | List of items for the trailing dropdown menu | - |
isDisabled | boolean | Disables both primary and trailing sections | - |
isFluid | boolean | Expands button to full container width | - |
size | "L" | "M" | "S" | "XS" | Button size. | M |
startIcon | string | Icon type from Icon.TYPES shown at start of primary section | - |
Events
dropdownChangepress
Notes
- The trailing section opens a dropdown when dropdownList is provided. Events: "press" fires on primary button click, "dropdownChange" fires when a dropdown item is selected with the selected value.
Example props
{
"appearance": "PRIMARY",
"dropdownList": [
{
"label": "Save as draft",
"value": "draft"
},
{
"label": "Save and publish",
"value": "publish"
},
{
"label": "Save and close",
"value": "close"
}
],
"label": "Save"
}
Compose adaptive multi-pane layouts
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
id * | string | Stable identifier for this pane group. | - |
activePaneId | string | null | Controlled active pane id for single reflow. Bind for SDUI controlled use. | - |
adaptation | SplitPaneAdaptation | Container-driven priority collapse, reflow, and overflow behavior. | - |
ariaLabel | string | Accessible name for the pane group. | - |
ariaLabelledBy | string | Space-separated element id list that labels the pane group. | - |
defaultActivePaneId | string | Initial active pane id for uncontrolled single reflow. | - |
disableAnimation | boolean | Disable structural motion. Reduced-motion preferences always take precedence. | - |
divider | SplitPaneDivider | Divider line and resize-grip visibility. | - |
gap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | SDUI spacing-token name resolved to the numeric gutter size expected by React. Used when showGutter is true; | space300 |
orientation | "horizontal" | "vertical" | Main-axis layout direction. | horizontal |
persistence | SplitPanePersistence | Selected uncontrolled pane state persisted by the group. | - |
showGutter | boolean | Enable guttered Pane treatment. | false |
Events
activePaneChange
Notes
- Slots:
default. - SplitPane accepts direct Pane children and requires a stable id. - orientation, showGutter, adaptation, divider, persistence, accessibility, and disableAnimation preserve the React API shape. - React gap is numeric, but SDUI intentionally accepts a strict Pebble spacing-token name and resolves it to a number in the wrapper. - adaptation collapseBelow accepts only SECONDARY and TERTIARY keys with Pebble breakpoint token values. TERTIARY collapses first, then SECONDARY; PRIMARY stays open. - Bind activePaneId for controlled single-reflow selection. The wrapper writes the new string or null before activePaneChange emits. - persistence stores only the selected uncontrolled fields and should use a stable application-global key.
Example props
{
"elements": {
"inspector": {
"children": [
"inspectorText"
],
"props": {
"ariaLabel": "Inspector",
"dismissControl": "header",
"dismissed": {
"$bindState": "/panes/inspector/dismissed"
},
"dismissible": true,
"header": {
"leadingIcon": "INFO_CIRCLE_OUTLINE",
"title": "Inspector"
},
"id": "inspector",
"presentation": {
"$bindState": "/panes/inspector/presentation"
},
"priority": "TERTIARY",
"sizing": {
"growWeight": 0,
"maxSize": 360,
"minSize": 200,
"mode": "resizable",
"preferredSize": 260
}
},
"type": "Pane"
},
"inspectorText": {
"children": [],
"props": {
"text": "Inspector",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"navigation": {
"children": [
"navigationText"
],
"props": {
"ariaLabel": "Navigation",
"collapseControl": "header",
"collapsed": {
"$bindState": "/panes/navigation/collapsed"
},
"collapsible": true,
"committedSize": {
"$bindState": "/panes/navigation/committedSize"
},
"header": {
"leadingIcon": "FOLDER_OUTLINE",
"title": "Navigation"
},
"id": "navigation",
"presentation": {
"$bindState": "/panes/navigation/presentation"
},
"priority": "SECONDARY",
"sizing": {
"growWeight": 0,
"maxSize": 360,
"minSize": 180,
"mode": "resizable",
"preferredSize": 260
}
},
"type": "Pane"
},
"navigationText": {
"children": [],
"props": {
"text": "Navigation",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"splitPane": {
"children": [
"navigation",
"workspace",
"inspector"
],
"on": {
"activePaneChange": [
{
"action": "setState",
"params": {
"statePath": "/activePaneChanged",
"value": true
}
}
]
},
"props": {
"activePaneId": {
"$bindState": "/activePaneId"
},
"adaptation": {
"collapseBelow": {
"SECONDARY": "breakpointSm",
"TERTIARY": "breakpointSm"
},
"reflow": {
"below": "breakpointSm",
"mode": "single"
}
},
"ariaLabel": "Adaptive workspace",
"divider": {
"resizeGrip": "visible",
"visibility": "visible"
},
"gap": "space300",
"id": "adaptive-workspace",
"persistence": {
"fields": [
"committedSize",
"collapsed",
"dismissed",
"activePaneId"
],
"key": "adaptive-workspace"
},
"showGutter": true
},
"type": "SplitPane"
},
"splitPanePreview": {
"children": [
"splitPane"
],
"props": {
"height": 360,
"minWidth": 0,
"width": "100%"
},
"type": "Box"
},
"workspace": {
"children": [
"workspaceText"
],
"props": {
"ariaLabel": "Workspace",
"header": {
"leadingIcon": "FILE_OUTLINE",
"title": "Workspace"
},
"id": "workspace",
"priority": "PRIMARY",
"sizing": {
"minSize": 280,
"mode": "fill",
"preferredSize": 0
}
},
"type": "Pane"
},
"workspaceText": {
"children": [],
"props": {
"text": "Workspace",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
}
},
"root": "splitPanePreview",
"state": {
"activePaneChanged": false,
"activePaneId": "workspace",
"panes": {
"inspector": {
"dismissed": false,
"presentation": "docked"
},
"navigation": {
"collapsed": false,
"committedSize": {
"horizontal": 240
},
"presentation": "docked"
}
}
}
}
A specialized masked input for collecting US Social Security Numbers (SSN). Automatically formats display as XXX-XX-XXXX while storing the raw 9-digit value. Use for any form field that requires an SSN; use Text for general text or Password for secret credentials.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-label | string | Accessible label when no visible label | - |
autoComplete | string | Browser autocomplete hint. | off |
autoFocus | boolean | Auto-focus input on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | Initial unmasked SSN value | - |
fixedCharsPrefix | string | Fixes characters at the beginning of the value | - |
fixedCharsSuffix | string | Fixes characters at the end of the value | - |
id | string | Explicit HTML element id | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character length | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character length | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text. | "XXX-XX-XXXX" |
shouldEnforceUpperCase | boolean | Enforces uppercase on input characters | - |
shouldSkipInitialFormatting | boolean | If true, skip applying mask on the default/initial value | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Unmasked SSN value (9 digits, no hyphens) | - |
Events
blurchange
Notes
- onChange stores the unmasked 9-digit SSN string (no hyphens). The input automatically formats display as XXX-XX-XXXX. Built-in SSN validation rules apply. Standalone — does not register with Form; use FormSsn inside a Form instead.
Example props
{
"name": "ssn",
"label": "Social Security Number",
"placeholder": "XXX-XX-XXXX",
"value": {
"$bindState": "/form/ssn"
}
}
A static indicator of real-time state or condition, such as availability, progress, or publication status. Displays a colored dot alongside a text label. Use Label instead for categorizing or organizing items with keywords.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
appearance * | "PRIMARY" | "SUCCESS" | "ERROR" | "WARNING" | "TERTIARY" | "DISABLED" | Semantic appearance: PRIMARY/TERTIARY for neutral information, SUCCESS for positive outcomes, ERROR for failures or critical issues, WARNING for preemptive alerts, DISABLED for inactive or non-current states. | - |
text * | string | Text label to display in the status indicator. Required. | - |
outlined | boolean | When true, renders status with a border outline. | false |
size | "S" | "M" | "L" | "XL" | Size of the status indicator (S, M, L, XL). | L |
Events
No events.
Notes
- Status displays a colored dot alongside a text label to indicate the real-time state of an item, process, or workflow. Ideal for data table rows or lists where users need to assess status at a glance. Use appearance to convey semantic meaning: SUCCESS for completed/active, ERROR for failed/blocked, WARNING for needs-attention, PRIMARY/TERTIARY for neutral info, DISABLED for inactive. Use outlined to add a border for additional emphasis. Returns null if text is empty.
Example props
{
"appearance": "SUCCESS",
"size": "L",
"text": "Active"
}
A progress indicator that guides users through multi-step sequential workflows by displaying completed steps, current position, and upcoming tasks. Best for linear processes with 3-7 steps such as checkout flows, onboarding sequences, or form wizards. Not suitable for non-linear workflows or processes with fewer than three steps.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
steps * | object[] | Array of step configurations | - |
activeStepIndex | number | Index of the currently active step (0-based) | - |
activeStepType | "NORMAL" | "STANDALONE" | Type of active step. | NORMAL |
aria-describedby | string | ID of element that describes the stepper | - |
aria-label | string | Accessibility label for the stepper | - |
aria-labelledby | string | ID of element that labels the stepper | - |
isCompact | boolean | Renders compact version with reduced spacing | - |
standAloneSteps | object[] | Array of standalone step configurations, displayed separately from main steps | - |
testId | string | Test identifier for the stepper. | stepper |
Events
click
Notes
- Emits "click" event when a step is clicked. Event data written to state: { index: number, type: "NORMAL" | "STANDALONE" } at the bound path before emitting.
Example props
{
"activeStepIndex": 2,
"steps": [
{
"status": "COMPLETE",
"title": "Personal Info"
},
{
"status": "COMPLETE",
"title": "Company Details"
},
{
"title": "Payment Setup"
}
]
}
A prominent card-like action button with title, caption, icon or image, and optional badge for dashboard entry points.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
title * | string | Primary text label displayed on the button | - |
badge | "NEGATIVE" | "WARNING" | "POSITIVE" | "NEUTRAL" | Badge indicator type shown on the avatar (NEGATIVE, WARNING, POSITIVE, NEUTRAL) | - |
caption | string | Secondary descriptive text below the title | - |
icon | string | Icon type from Icon.TYPES. | HEADPHONES_FILLED |
id | string | DOM id selector for the button element | - |
image | string | Image URL displayed instead of an icon in the avatar | - |
imageBackground | "colorPrimary" | "colorSecondary" | "colorTertiary" | "colorPrimaryContainer" | "colorSecondaryContainer" | "colorTertiaryContainer" | "colorError" | "colorErrorContainer" | ... (33 values) | Surface color token for the avatar when using an image | - |
to | string | object | Navigation destination. When provided, button handles navigation automatically | - |
Events
press
Notes
- onClick emits 'press' event. When 'to' prop is provided, button handles navigation automatically. Use 'icon' for Icon.TYPES string or 'image' for an image URL — do not use both simultaneously. Badge types map to BADGE_TYPES enum on the Pebble component.
Example props
{
"caption": "Get answers to your questions",
"title": "Help Center"
}
A button-group input for collecting ratings or opinions on a Likert scale (e.g. 1–5 or 1–10). Renders each option as a clickable button with optional range labels for the endpoints. Supports single or multi-select. Use for satisfaction surveys, NPS scores, or opinion scales. Use Radio for mutually exclusive text choices, SegmentedControl for toggling between named options, or Slider for continuous numeric ranges.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Array of survey option items with label and value | - |
caption | string | Caption text displayed below the survey | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | number | string | number[] | Initial selected value(s) when uncontrolled | - |
isDisabled | boolean | Disables all survey buttons | - |
isInvalid | boolean | Marks the survey as invalid | - |
isMulti | boolean | Allow multiple selections. | false |
isReadOnly | boolean | Makes the survey read-only | - |
isRequired | boolean | Marks the field as required | - |
isVertical | boolean | Stack options vertically. | false |
label | string | Label text above the input | - |
name | string | Unique identifier for the input | - |
rangeLabels | object | Labels for lowest and highest options | - |
theme | "TWO_LINE" | Survey theme. TWO_LINE stacks label below value | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | number | string | number[] | Selected value(s). Single value when isMulti is false, array when true | - |
Events
change
Notes
- onChange stores a single value when isMulti is false, or an array of values when isMulti is true. Use defaultValue for uncontrolled initial selection. The list prop must be an array of objects with value (required) and label (optional) keys; icon and selectionColor are also supported per item. Use rangeLabels to add descriptive labels for the lowest and highest options.
Example props
{
"name": "satisfaction",
"label": "How satisfied are you?",
"list": [
{
"label": 1,
"value": 1
},
{
"label": 2,
"value": 2
},
{
"label": 3,
"value": 3
},
{
"label": 4,
"value": 4
},
{
"label": 5,
"value": 5
}
],
"rangeLabels": {
"lower": "Very Unsatisfied",
"upper": "Very Satisfied"
},
"value": {
"$bindState": "/form/satisfaction"
}
}
A toggle that lets users switch instantly between on and off states. Use for activation settings that take effect immediately; use Checkbox instead for selection or agreement scenarios that require submission.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-label | string | ARIA label for accessibility | - |
aria-labelledby | string | ARIA labelledby reference | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
compact | boolean | Use compact size variant | - |
defaultValue | boolean | Initial toggle state when uncontrolled | - |
isDisabled | boolean | Disables the switch | - |
isReadOnly | boolean | Makes the switch read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the switch | - |
name | string | Unique identifier for the switch | - |
offLabel | string | Label text when switch is off | - |
onLabel | string | Label text when switch is on | - |
rightAlign | boolean | Align switch to the right | - |
tip | string | object | Tooltip text or basic tooltip configuration to display | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | boolean | Toggle state bound to state | - |
Events
blurchange
Notes
- onChange stores a boolean (true/false) in state. Defaults to false when no value is set. Prefer Switch over Checkbox for on/off settings; use Checkbox for agreement/consent scenarios. Standalone — does not register with Form; use FormSwitch inside a Form instead.
Example props
{
"name": "notifications",
"label": "Enable notifications",
"value": {
"$bindState": "/form/notifications"
}
}
Labeled controls for alternating between related views within the same page or context. Use to organize groups of related content at the same hierarchy level; for selection within a single view, use a segmented control instead.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
activeIndex | number | Controlled active tab index | - |
aria-label | string | Accessible label for the tabs | - |
aria-labelledby | string | ID of element that labels the tabs | - |
defaultActiveIndex | number | Tab index to be active by default | - |
isCompact | boolean | Use compact spacing | - |
isLogoRound | boolean | Whether to display logo with rounded corners | - |
isVertical | boolean | Display tabs in vertical orientation (only for LINK type) | - |
items | object[] | JSON-only selection model for state-bound tabs with title, value, and optional icon/badge/tip | - |
list | object[] | React Tabs list branch for LINK tabs, including optional nested links | - |
logoUrl | string | URL of logo image to display with title | - |
stretchH | boolean | Stretch tabs horizontally | - |
stretchV | boolean | Stretch tabs vertically to fill available height | - |
subtitle | string | Subtitle text | - |
supportLink | string | object | Support/help link as a URL string or a serializable object branch | - |
theme | "BOX" | "BOX_HEADER" | "CENTER" | "GREY_OVERFLOW_GRADIENT" | "WHITE_OVERFLOW_GRADIENT" | "NO_PADDING" | Visual theme: BOX, BOX_HEADER, CENTER, GREY_OVERFLOW_GRADIENT, WHITE_OVERFLOW_GRADIENT, NO_PADDING | - |
title | string | Title text to display above tabs | - |
titleContent | string | Subtitle or additional content below the title | - |
type | "BASIC" | "SWITCH" | "LINK" | "SWITCH_WITH_ICON_ONLY" | Visual style: BASIC, SWITCH, LINK, or SWITCH_WITH_ICON_ONLY | - |
value | unknown | JSON-only selected tab value metadata bound to state when using items | - |
width | number | Width of the tab container in pixels | - |
Events
change
Notes
- Use for view switching and entry path selection. Provide
listto mirror the React LINK-tab list branch, oritemsfor the JSON-only selection model that writesvaluemetadata to bound state.activeIndexmirrors the React controlled selection prop; whenitemsare used,valueremains available as JSON-only state metadata. Type options: BASIC (standard tabs), SWITCH (toggle-style), LINK (navigation-style), SWITCH_WITH_ICON_ONLY (icon-only toggles). Item entries use the ReacttitleandisDisabledprop names. onChange stores the selected tab value in state whenitemsare used.
Example props
{
"elements": {
"tabs": {
"children": [],
"props": {
"items": [
{
"title": "Dashboard",
"value": "dashboard"
},
{
"title": "Reports",
"value": "reports"
},
{
"title": "Analytics",
"value": "analytics"
}
],
"type": "LINK",
"value": {
"$bindState": "/ui/currentPage"
}
},
"type": "Tab"
}
},
"root": "tabs",
"state": {
"ui": {
"currentPage": "dashboard"
}
}
}
A read-only data table for displaying moderately large amounts of information in rows and columns. Use for structured, text-based data that benefits from systematic organization and easy scanning. For sorting, filtering, or cell-level interaction, use Grid instead; for simple vertical lists without column headings, use ListItem.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
columns * | object[] | JSON-only table abstraction: column definitions {header, key, align?, width?, wrapText?} | - |
rows * | object[] | JSON-only table abstraction: row objects keyed by column key | - |
rowHeight | number | Custom height in px for all table rows | - |
title | string | Title displayed above the table | - |
width | number | Table container width in px | - |
Events
No events.
Notes
- TableBasic does not mirror the React children API in SDUI. Instead, use the documented JSON-only columns/rows table abstraction: columns define headers and keys, and rows are objects keyed by column key. Cell values are rendered as text. Use align on columns to control text alignment. Set wrapText on columns to wrap long text. Use rowHeight to customize row heights.
Example props
{
"columns": [
{
"header": "Name",
"key": "name"
},
{
"header": "Role",
"key": "role"
},
{
"align": "center",
"header": "Status",
"key": "status"
}
],
"rows": [
{
"name": "Alice",
"role": "Engineer",
"status": "Active"
},
{
"name": "Bob",
"role": "Designer",
"status": "Away"
}
],
"title": "Team Members"
}
A general-purpose text component for rendering body copy, descriptions, captions, and other non-heading text content. Defaults to a paragraph (<p>) with body-medium typestyle. Use Heading instead for section titles (h1–h6), and TitleCaption for a title paired with a subtitle.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
align | "left" | "center" | "right" | Text alignment | - |
as | string | HTML element to render (e.g. "p", "span", "div", "pre"). | p |
color | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Pebble text/icon color token resolved via the current theme. | - |
decoration | string | Text decoration CSS value (e.g. "underline", "line-through") | - |
inline | boolean | Display as inline element instead of block | - |
lineClamp | number | Max visible lines before truncation with ellipsis | - |
maxWidth | string | Maximum width CSS value for the text element (e.g. "200px", "50%") | - |
mono | boolean | Apply monospace font family | - |
text | string | Text content | - |
transform | string | Text transform CSS value (e.g. "uppercase", "capitalize", "lowercase") | - |
typestyle | "typestyleBodyLarge" | "typestyleBodyLarge500" | "typestyleBodyLarge600" | "typestyleBodyLargeEmphasized" | "typestyleBodyMedium" | "typestyleBodyMedium400" | "typestyleBodyMedium500" | "typestyleBodyMedium600" | ... (61 values) | Pebble typestyle token name (e.g. "typestyleBodyMedium"). | typestyleBodyMedium |
Events
No events.
Example props
{
"as": "p",
"text": "This is body text.",
"typestyle": "typestyleBodyMedium"
}
A multi-line text input for entering longer free-form text such as comments, descriptions, or paragraphs. Use TextInput instead for short single-line entries.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this textarea | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this textarea | - |
autoFocus | boolean | Auto-focus on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
hasCharsLimit | boolean | Show character count indicator. Requires maxLength to be set | - |
height | number | Fixed height in pixels | - |
id | string | Unique DOM id for the textarea element | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
maxHeight | number | Maximum height in pixels | - |
maxLength | number | Maximum character count. | 10000 |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
rows | number | Number of visible text rows | - |
theme | "NO_BOX" | Visual theme variant | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Current text value bound to state | - |
Events
blurchangefocuskeydown
Notes
- onChange stores the text content as a plain string in state. onKeyDown emits "keydown" without the DOM event payload. Set hasCharsLimit with maxLength to display a character counter. Use theme="NO_BOX" for a borderless variant. Standalone — does not register with Form; use FormTextarea inside a Form instead.
Example props
{
"name": "bio",
"hasCharsLimit": true,
"label": "Bio",
"maxLength": 500,
"placeholder": "Tell us about yourself",
"rows": 4,
"value": {
"$bindState": "/form/bio"
}
}
An autocomplete input that offers text suggestions in a dropdown menu as the user types. Unlike Select, users can either manually type free-form text or pick from the suggestions list.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this input | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
autoCapitalize | "off" | "none" | "on" | "sentences" | "words" | "characters" | Auto-capitalization: off, none, on, sentences, words, or characters | - |
autoComplete | string | Browser autocomplete hint. | off |
autoCorrect | "off" | "on" | Auto-correct: off or on | - |
autoFocus | boolean | Auto-focus on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | number | Initial value when uncontrolled | - |
fuseOptions | object | Fuse.js search options for customizing suggestion filtering | - |
inputMode | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | Virtual keyboard type hint | - |
isDisabled | boolean | Disables the input | - |
isOriginalInputReadOnly | boolean | Sets readonly mode directly on input HTML element | - |
isPositionFixed | boolean | Use fixed positioning for dropdown menu. Useful in scrollable containers | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
list | object[] | Array of { label, value } suggestion objects matching the React list prop | - |
maxLength | number | Maximum character count | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character count | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text or icon name from Icon.TYPES to show before the input value | - |
readOnlyAffixSpacing | boolean | Controls gap between affixes and value in read-only mode. Set false to remove gap | true |
shouldAllowAutoFill | boolean | Allow browser autofill | - |
shouldPersistCursorPosition | boolean | Persist cursor position for controlled input. | false |
shouldShowMenuOnFocus | boolean | Show dropdown menu on input focus. | false |
shouldShowSearchIcon | boolean | Show search icon prefix. | false |
shouldStopEventPropagation | boolean | Stop automatic input focus when clicking container | - |
shrinkToPlaceholder | boolean | Input spans as much as its placeholder when true. Only applies when placeholder is visible | - |
shrinkToValue | boolean | Input spans as much as its value when true. Only applies when value is present | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
stringPadding | object | Pads input value with character until reaching maxLength | - |
suffix | string | Text or icon name from Icon.TYPES to show after the input value | - |
theme | string | Theme name from Input.Text.THEMES or custom theme | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | number | Current value bound to state | - |
Events
blurchangeclickfocus
Notes
- For dynamic suggestions from an API: bind list to state, then on "change" event fetch results and write to that state path Emits "change" on every keystroke and when a suggestion is selected, allowing you to filter/fetch suggestions as user types When user selects a suggestion from the dropdown, the value is updated to the selected option's value Use prefix/suffix for icons or text - pass Icon.TYPES names like "SEARCH_OUTLINE" or text like "@" Use inputMode to hint the virtual keyboard type on mobile devices Use stringPadding to automatically pad values (e.g., "1" → "001" with {position: "start", maxLength: 3, character: "0"}) ARIA attributes support accessibility - use aria-label, aria-labelledby, or aria-describedby for screen reader labels Use defaultValue for uncontrolled initial content, and fuseOptions to customize Fuse.js matching. Standalone — does not register with Form; use FormTextAutoSuggest inside a Form instead.
Example props
{
"name": "city",
"label": "City",
"list": [
{
"label": "New York",
"value": "new_york"
},
{
"label": "Los Angeles",
"value": "los_angeles"
},
{
"label": "Chicago",
"value": "chicago"
}
],
"placeholder": "Search for a city",
"shouldShowSearchIcon": true,
"value": {
"$bindState": "/form/city"
}
}
Displays extensive text or content in a compact area by clipping it at a specified height, with an expand/collapse toggle for full viewing. Use when space is limited but more information is available. Use ExpansionPanel instead for multiple collapsible sections, or Tooltip for brief hover-only content.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
maxHeight * | number | Max height in px before content is clipped and expand/collapse is shown | - |
buttonLabels | object | Labels for the expand and collapse buttons | - |
theme | "NO_CARD" | Visual theme variant. NO_CARD removes the card styling | - |
Events
No events.
Notes
- Slots:
default. - Wrap long text or content in TextClip to clip it at maxHeight with an expand/collapse toggle. Pass maxHeight as a multiple of the line-height of your content for clean clipping.
Example props
{
"maxHeight": 60
}
A single-line text input for collecting short-form text data such as names, emails, URLs, or search queries. Use TextArea for multi-line content or Number for numeric-only values.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-activedescendant | string | ID of active descendant | - |
aria-autocomplete | "none" | "inline" | "list" | "both" | ARIA autocomplete state | - |
aria-controls | string | ID of controlled element | - |
aria-describedby | string | ID of element that describes this input | - |
aria-details | string | ID of element with additional details | - |
aria-expanded | boolean | ARIA expanded state | - |
aria-haspopup | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog" | ARIA haspopup state | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
aria-required | boolean | ARIA required state | - |
autoCapitalize | "off" | "none" | "on" | "sentences" | "words" | "characters" | Auto-capitalization: off, none, on, sentences, words, or characters | - |
autoComplete | string | Browser autocomplete hint | - |
autoCorrect | "off" | "on" | Auto-correct: off or on | - |
autoFocus | boolean | Auto-focus on mount | - |
canClear | boolean | Show clear button | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
inputMode | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | Virtual keyboard type hint | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isOriginalInputReadOnly | boolean | Sets readonly mode directly on input HTML element | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character count | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text or icon name from Icon.TYPES to show before the input value | - |
readOnlyAffixSpacing | boolean | Controls gap between affixes and value in read-only mode. Set false to remove gap | true |
role | string | ARIA role | - |
shouldAllowAutoFill | boolean | Allow browser autofill | - |
shouldPersistCursorPosition | boolean | Persist cursor position for controlled input. | false |
shouldStopEventPropagation | boolean | Stop automatic input focus when clicking container | - |
shrinkToPlaceholder | boolean | Input spans as much as its placeholder when true. Only applies when placeholder is visible | - |
shrinkToValue | boolean | Input spans as much as its value when true. Only applies when value is present | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
stringPadding | object | Pads input value with character until reaching maxLength | - |
suffix | string | Text or icon name from Icon.TYPES to show after the input value | - |
theme | string | Theme name from Input.Text.THEMES or custom theme | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Current text value bound to state | - |
Events
blurchangeclickfocuskeydownkeyupmouseentermouseleavepaste
Notes
- Slots:
label. - onChange writes value to state path bound to
value, then emits "change" onBlur validates if checks are provided, then emits "blur" Keyboard events (keydown, keyup, paste) and mouse events (click, mouseenter, mouseleave, focus) emit without parameters Use prefix/suffix for units or icons - pass Icon.TYPES names like "SEARCH_OUTLINE" or text like "$" Use inputMode to hint the virtual keyboard type on mobile devices Use stringPadding to automatically pad values (e.g., "1" → "001" with {position: "start", maxLength: 3, character: "0"}) ARIA attributes support accessibility - use aria-label or aria-labelledby for screen reader labels Use the stringlabelprop for plain text. For rich labels, provide element IDs throughslots.label; the named slot takes precedence over the string fallback. Standalone — does not register with Form; use FormText inside a Form instead.
Example props
{
"name": "username",
"canClear": true,
"isRequired": true,
"label": "Username",
"maxLength": 50,
"placeholder": "Enter username",
"value": {
"$bindState": "/form/username"
}
}
A read-only text block with a one-click action to copy its content to the clipboard or download it as a file. Use for command-line instructions, code snippets, API keys, or any text the user needs to grab verbatim. Accepts either a plain "content" string or arbitrary children for rich/formatted content.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
content | string | Plain text content to display in the snippet. Omit and pass children instead when the snippet needs rich content (formatting, inline highlights, etc.) | - |
fileName | string | File name for download type.txt | rippling |
showFullContent | boolean | Show full content without truncation. | false |
type | "Copy" | "Download" | Snippet action type. | Copy |
wordBreak | string | CSS word-break value for content. | break-all |
Events
No events.
Notes
- Slots:
default. - Type "Copy" shows a copy icon; "Download" shows a download icon and uses fileName. Use the "content" prop for plain text; pass children instead when you need rich content (the Download action reads the rendered text from the DOM, so children work for both variants). If both are provided, children take precedence.
Example props
{
"content": "npm install @rippling/pebble",
"type": "Copy"
}
A form input for entering or selecting a specific time of day. Supports typed entry, optional dropdown time selection, timezone display, and locale-aware formatting.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
alwaysShowTimezone | boolean | If true, timezone abbreviation will always be shown. | false |
aria-describedby | string | ARIA describedby reference for accessibility | - |
aria-label | string | ARIA label for accessibility | - |
aria-labelledby | string | ARIA labelledby reference for accessibility | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultSelectionStartTime | string | Time to start the selection scroll from when shouldAllowTimeSelection is true (e.g. "08:00 AM") | - |
defaultValue | string | Initial time value when uncontrolled | - |
id | string | HTML id attribute for the input | - |
inferredTime | string | null | JSON-only inferred time metadata written before inferredTimeChange emits | - |
isDateTimeInline | boolean | Make input inline, removes border, padding and width fits input/placeholder content | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Marks the input as invalid | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
locale | string | Locale string for time formatting (e.g. en-US) | - |
maxWidth | string | Maximum width CSS value | - |
name | string | Unique identifier for the input | - |
pickClosestMeridiem | boolean | When user does not enter AM/PM, pick the closest meridiem to the inputted hour value. | false |
referenceDate | string | ISO date string used as reference for timezone calculations and DST determination. Defaults to current date. | - |
shouldAllowTimeSelection | boolean | object | Show a time selection dropdown for picking times | - |
shouldDisplaySeconds | boolean | Display seconds in the time input | - |
shouldFormatInTimezone | boolean | If true, values will transform according to global timezone when timezone prop is not passed explicitly | - |
shouldLocalize | boolean | If true, display format will be determined from user locale setting | - |
shouldReturnISO | boolean | Always return value in ISO 8601 format | - |
shouldShowTimezoneLabel | boolean | If false, timezone label will not be shown. | true |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
theme | string | Custom theme to apply to the input | - |
timezone | string | object | Show time relative to this timezone or configure the timezone selector | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Time value bound to state (ISO 8601 or HH:mm format) | - |
Events
blurchangeinferredTimeChange
Notes
- onChange stores a time string in state. The format depends on shouldReturnISO — when true, an ISO 8601 string is stored; otherwise the component returns the value as-is. Use defaultValue for uncontrolled initial state. Use timezone to display the time relative to a specific IANA timezone or to configure the built-in timezone selector. inferredTimeChange writes inferredTime metadata before emitting. Standalone — does not register with Form; use FormTime inside a Form instead.
Example props
{
"name": "startTime",
"label": "Start Time",
"shouldAllowTimeSelection": true,
"value": {
"$bindState": "/form/startTime"
}
}
A time range input for selecting a start and end time pair, such as work schedules, shifts, or availability windows. Stores a [startTime, endTime] tuple of ISO 8601 strings. Supports timezone display and next-day span detection.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
alwaysShowTimezone | boolean | If true, timezone abbreviation will always be shown | - |
aria-describedby | string | ARIA describedby reference for accessibility | - |
aria-label | string | ARIA label for accessibility | - |
aria-labelledby | string | ARIA labelledby reference for accessibility | - |
canClear | boolean | Shows a clear icon button to reset both time values to empty | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultSelectionStartTime | string | Time to start the selection scroll from when shouldAllowTimeSelection is true (e.g. "08:00 AM") | - |
defaultValue | array | Initial time range when uncontrolled [startTime, endTime] | - |
hideDayDifference | boolean | Hides the next day indicator when end time is on the next day. | false (indicator is shown) |
hideTimeIcon | boolean | Hides the prefix clock icon in the input. | false |
id | string | HTML id attribute for the input | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Marks the input as invalid | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
locale | string | Locale string for time formatting (e.g. en-US) | - |
name | string | Unique identifier for the input. | TimeRange |
referenceDate | string | ISO date string used as reference for timezone calculations and DST determination. Defaults to current date. | - |
shouldAllowTimeSelection | boolean | object | Show a time selection dropdown for picking times. | true |
shouldDisplaySeconds | boolean | Display seconds in the time inputs | - |
shouldFormatInTimezone | boolean | If true, values will transform according to global timezone when timezone prop is not passed explicitly. | true |
shouldLocalize | boolean | If true, display format will be determined from user locale setting | - |
theme | string | Custom theme to apply to the input | - |
timezone | string | Show times relative to this timezone (IANA identifier, e.g. America/New_York) | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | array | Time range value bound to state [startTime, endTime]. Each time must be an ISO 8601 string with UTC offset | - |
Events
blurchange
Notes
- onChange stores a tuple [startTime, endTime] in state where each time is an ISO 8601 string with UTC offset (e.g. "2022-03-31T14:30:00.000+00:00") or null. Use timezone to display times relative to a specific IANA timezone. When end time is on the next day, a next-day indicator is shown unless hideDayDifference is true. Set canClear to show a clear button that resets both times to null.
Example props
{
"name": "workingHours",
"canClear": true,
"label": "Working Hours",
"timezone": "America/New_York",
"value": {
"$bindState": "/form/workingHours"
}
}
A specialized select component for choosing a timezone. Lists all IANA timezones with search filtering. Use this when the user needs to pick a standalone timezone; use Time with timezone instead when selecting a time together with a timezone.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
canClear | boolean | Shows a clear button to reset selection | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | Initial IANA timezone identifier | - |
displayIANA | boolean | Display IANA timezone name. | true |
displayShortFormat | boolean | Display timezone abbreviation | - |
dropdownHeight | number | Height of the dropdown menu in pixels | - |
emptyListPlaceholder | string | Placeholder text shown when no timezone matches the search | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isMenuDefaultOpen | boolean | If true, the dropdown menu will be open by default on mount | - |
isPositionFixed | boolean | Use fixed positioning for dropdown (useful in scrollable containers) | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
isSearchable | boolean | Enables search filtering. | true |
label | string | Label text above the input | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
placement | "TOP_START" | "TOP" | "TOP_END" | "RIGHT_START" | "RIGHT" | "RIGHT_END" | "BOTTOM_END" | "BOTTOM" | ... (12 values) | Dropdown placement position. | BOTTOM_START |
referenceDate | string | ISO 8601 date string to determine timezone offsets (e.g. 2024-01-15T12:00:00Z) | - |
shouldShowSearchIcon | boolean | If true, shows a search icon in the dropdown | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
theme | "TRANSPARENT_BORDER" | "TOP_NAV" | "INLINE_TRANSPARENT_BORDER" | "INLINE_TOP_NAV" | "NO_PADDING_RIGHT_NO_BOX_TRANSPARENT_BORDER" | "NO_PADDING_RIGHT_NO_BOX_TOP_NAV" | "NO_PADDING_LEFT_NO_BOX_TRANSPARENT_BORDER" | "NO_PADDING_LEFT_NO_BOX_TOP_NAV" | Visual theme variant for the input | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | IANA timezone identifier bound to state (e.g. America/New_York) | - |
Events
blurchangefocus
Notes
- onChange stores an IANA timezone identifier string (e.g. "America/New_York") in state. The component lists all available timezones with search support. Use referenceDate to calculate timezone offsets for a specific point in time (accounts for daylight saving).
Example props
{
"name": "timezone",
"isSearchable": true,
"label": "Timezone",
"placeholder": "Select a timezone",
"value": {
"$bindState": "/form/timezone"
}
}
A supportive floating text box that offers contextual details about an associated element when hovered over or focused. Use for supplementary, non-critical information such as labelling icon buttons or describing ambiguous UI elements.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
appearance | "LIGHT" | "DARK" | Tooltip theme. | LIGHT |
content | string | Plain text tooltip content. Use slots.content for rich content | - |
hideOnDocumentScroll | boolean | Hide tooltip when the document is scrolled. | false |
isDelayed | boolean | Add delay before showing/hiding the tooltip. | false |
isMobileSupported | boolean | Show tooltip on mobile devices. | false |
isPositionFixed | boolean | Use fixed positioning for the tooltip. | false |
isVisible | boolean | Control tooltip visibility from parent. Overrides hover behavior when set | - |
maxHeight | number | string | Max height of tooltip content. Number in px or CSS string | - |
maxWidth | number | string | Max width of tooltip. Number in px or CSS string. | 360 |
onlyIfChildOverflow | boolean | Only show tooltip if a child element overflows. | false |
onlyIfOverflow | boolean | Only show tooltip if the trigger element overflows. | false |
placement | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | ... (12 values) | Tooltip position relative to child. | bottom |
tipHideDelay | number | Custom delay in ms before tooltip hides | - |
tipShowDelay | number | Custom delay in ms before tooltip appears | - |
title | string | Optional bold title above tooltip content | - |
Events
No events.
Notes
- Slots:
default,content. - Wrap any element with Tip to show a tooltip on hover. The child element is the hover target. Use the content prop for plain text or slots.content for rich nested content; the slot takes precedence. Use isVisible to control tooltip programmatically via state binding. Skipped: padding/className/truncateClassName (CSS overrides), shallSkipOverflowY (internal overflow), isMobileDevice/shouldPop (function props), middleware/overwriteMiddleware (Popper internals), primaryAction/secondaryAction (deprecated TipAction objects with onClick callbacks), persist (deprecated, always true).
Example props
{
"elements": {
"details": {
"children": [
"detailsText"
],
"props": {
"padding": 16
},
"type": "Card"
},
"detailsText": {
"children": [],
"props": {
"text": "More information about this item"
},
"type": "Text"
},
"preview": {
"children": [
"triggerBtn"
],
"props": {
"placement": "top"
},
"slots": {
"content": [
"details"
]
},
"type": "Tip"
},
"triggerBtn": {
"children": [],
"props": {
"label": "Hover me"
},
"type": "Button"
}
},
"root": "preview",
"state": {}
}
A compact title-and-caption pair for displaying a primary label with an optional secondary descriptor, such as a person's name with their job title or a heading with a subtitle.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
title * | string | Primary title text displayed in body-large typestyle | - |
caption | string | Secondary caption text displayed below the title in body-small typestyle. Accepts string only. | - |
captionColor | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Pebble text/icon color token for the caption text. | theme colorOnSurfaceVariant |
Events
press
Notes
- TitleCaption renders a title with an optional caption below it. Use captionColor to override the caption text color with a Pebble text/icon color token. When clicked, it emits "press". The component automatically shows a tooltip when text overflows.
Example props
{
"caption": "Software Engineer",
"title": "John Doe"
}
A chevron arrow indicator that toggles between down (collapsed) and up (expanded) directions. Use as a standalone expand/collapse affordance, such as in custom collapsible sections or tree nodes.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-controls | string | ARIA controls attribute linking the arrow to the element it controls | - |
aria-describedby | string | References another element ID to use as the accessible description | - |
aria-label | string | Accessible label for the arrow button | - |
aria-labelledby | string | References another element ID to use as the accessible label | - |
arrowDownColor | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Color of the arrow when pointing down (collapsed state). Defaults to colorOnSurfaceVariant. | - |
arrowUpColor | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Color of the arrow when pointing up (expanded state). Defaults to colorPrimary. | - |
horizontalCollapsedPosition | boolean | When true, the arrow icon is in horizontal position when collapsed. | false |
isArrowDown | boolean | Controls whether the arrow points down (collapsed). | true |
isDisabled | boolean | When true, disables the arrow and prevents interaction | - |
isFocused | boolean | When true, renders the icon in focused state | - |
showCursor | boolean | When true, shows a pointer cursor on hover. | true |
size | "sizeIcon2xl" | "sizeIcon2xs" | "sizeIcon3xl" | "sizeIcon3xs" | "sizeIcon4xl" | "sizeIconLg" | "sizeIconMd" | "sizeIconSm" | ... (10 values) | Icon size token. | 24 |
Events
change
Notes
- ToggleableArrow wraps Atoms.ToggleableArrow from Pebble. It renders a chevron icon that visually toggles between pointing down (collapsed) and up (expanded). Bind isArrowDown to state to observe and control the current direction. onChange writes the toggled boolean to the isArrowDown binding before emitting "change". Supply arrowDownColor and arrowUpColor to customize the icon color per state. Use horizontalCollapsedPosition to show the arrow horizontally when collapsed.
Example props
{
"isArrowDown": true
}
A hierarchical selector for choosing from a tree-structured list of parent-child relationships with expand/collapse navigation. Use for selecting from deeply nested data like org structures, file systems, directories, or classification hierarchies.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Flat array of tree items with parent references. Root items have parent: null, children reference parent value | - |
aria-describedby | string | ID of element that describes this tree | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this tree | - |
canSelectAll | boolean | Show select all toggle in multi mode | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | string[] | Initial selected value(s) when uncontrolled | - |
dropdownWidth | number | Override internal dropdown width in pixels | - |
emptyListPlaceholder | string | Placeholder text when list is empty | - |
footer | object | Fixed footer with clickable action at bottom of tree | - |
fuseOptions | object | Fuse.js search options for customizing search behavior | - |
hasIndependentActions | boolean | In multiSelect, action on an item does not affect selection of parent or child items | - |
hasIndependentChildActions | boolean | Actions on child in multi select do not affect selection of ancestors | - |
hasStaticParentNodes | boolean | Makes parent nodes non-actionable (only manage hierarchy) | - |
id | string | HTML id attribute for accessibility | - |
isDisabled | boolean | Disables the tree input | - |
isMulti | boolean | Allow multiple selection. | false |
isRequired | boolean | Marks the field as required | - |
isSearchable | boolean | Enable search filtering. | true |
label | string | Label text above the input | - |
maxHeight | number | Maximum height of the tree list in pixels | - |
name | string | Unique identifier for the input | - |
selectionCount | boolean | Show count of selected items in multi-select mode | - |
shouldExpandNodeOnSelection | boolean | Auto-expand node when selected. | false |
shouldShowFolderStructure | boolean | Renders folder structure for tree items | - |
size | "XS" | "S" | "M" | "L" | Input size. Options: XS, S, M, L. | M |
theme | "NO_BORDER" | "NO_PADDING" | "REVERSE" | "NO_BOX" | Tree theme for styling variants | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | string[] | Selected value(s). Single string when isMulti is false, array when true | - |
Events
changefooterAction
Notes
- onChange stores a single value string when isMulti is false, or an array of value strings when isMulti is true. Use defaultValue for uncontrolled initial selection. The list prop must be a flat array where each item has a value (unique ID) and parent (parent value or null for root); set isLeaf when a node should be treated as terminal. The tree builds its hierarchy from these parent references. When footer is provided, clicking the footer button emits footerAction event. Use aria-* props for accessibility labeling.
Example props
{
"name": "department",
"isSearchable": true,
"label": "Department",
"list": [
{
"label": "Engineering",
"parent": null,
"value": "eng"
},
{
"label": "Frontend",
"parent": "eng",
"value": "fe"
},
{
"label": "Backend",
"parent": "eng",
"value": "be"
},
{
"label": "Design",
"parent": null,
"value": "design"
}
],
"value": {
"$bindState": "/form/department"
}
}
A dropdown select component with a hierarchical tree structure for choosing from nested parent-child options. Use when users need to pick from deeply nested data like org structures, file systems, or classification hierarchies, but the tree should stay collapsed behind a dropdown trigger. Use Tree instead when the hierarchy should be visible at all times.
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
list * | object[] | Flat array of tree items with parent references. Root items have parent: null, children reference parent value | - |
aria-describedby | string | ID of element that describes the input | - |
aria-label | string | Accessible label for the input | - |
aria-labelledby | string | ID of element that labels the input | - |
canSelectAll | boolean | Show select all toggle in multi mode | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultSearchQuery | string | Default search input value | - |
defaultValue | string | string[] | null | Initial value set. Single string when isMulti is false, array when true | - |
dropdownWidth | number | Custom dropdown width in pixels | - |
emptyListPlaceholder | string | Placeholder shown when list is empty | - |
fuseOptions | object | Fuse.js search configuration. | { keys: ["label", "name"] } |
hasIndependentActions | boolean | In multiSelect, action on an item does not affect selection of parent or child items | - |
hasIndependentChildActions | boolean | Actions on child in multi select do not affect selection of ancestors | - |
hasStaticParentNodes | boolean | Makes parent nodes non-actionable (only manage hierarchy) | - |
id | string | HTML id attribute | - |
isDisabled | boolean | Disables the tree select | - |
isMenuDefaultOpen | boolean | If true, dropdown menu will be open by default | - |
isMulti | boolean | Allow multiple selection. | false |
isPositionFixed | boolean | Sets dropdown position as fixed (relative to viewport) | - |
isReadOnly | boolean | Makes the tree select read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
maxHeight | string | number | Max height of tags container (CSS value) | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when no selection | - |
placement | "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | ... (12 values) | Dropdown position. | bottom-end |
selectedOptionsModalClassName | string | Class name for selected options modal (multi-select only) | - |
shouldExpandNodeOnSelection | boolean | Auto expands a node to show its children once selected. | false |
shouldShowFolderStructure | boolean | Renders folder structure view | - |
shouldShowSelectionPath | boolean | Show parent-to-child path in selected chips. | false |
size | "XS" | "S" | "M" | "L" | Input size. | M |
theme | "NO_BOX" | Custom theme styling | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | string[] | null | Selected value(s). Single string when isMulti is false, array when true | - |
Events
change
Notes
- onChange stores a single value string when isMulti is false, or an array of value strings when isMulti is true. The list prop must be a flat array where each item has a value (unique ID) and parent (parent value or null for root); set isLeaf when a node should be treated as terminal. Unlike Tree, TreeSelect renders as a dropdown trigger with search built in.
Example props
{
"name": "department",
"label": "Department",
"list": [
{
"label": "Engineering",
"parent": null,
"value": "eng"
},
{
"label": "Frontend",
"parent": "eng",
"value": "fe"
},
{
"label": "Backend",
"parent": "eng",
"value": "be"
},
{
"label": "Design",
"parent": null,
"value": "design"
}
],
"placeholder": "Select department",
"value": {
"$bindState": "/form/department"
}
}
Embedded video player with 16:9 aspect ratio
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
src * | string | Video URL or embed URL (e.g. YouTube, Vimeo) | - |
allowFullScreen | boolean | Allow fullscreen mode. | true |
loading | "eager" | "lazy" | Iframe loading strategy. | eager |
name | string | Name attribute for the iframe element | - |
width | number | Width of the video player in pixels. | 912 |
Events
No events.
Notes
- Video embeds an iframe in a 16:9 aspect ratio. Use embed URLs for YouTube/Vimeo (not regular watch URLs).
Example props
{
"src": "https://www.youtube.com/embed/dQw4w9WgXcQ",
"width": 600
}
Vertical stack layout that arranges children top-to-bottom in a column with token-based spacing. Use for stacking elements vertically — e.g. form field groups, page sections, or lists of content blocks. Prefer HStack for horizontal side-by-side arrangement and Box for complex layouts needing custom dimensions, borders, or backgrounds.
Accepts children: Yes
Props
| Prop | Type | Description | Default |
|---|---|---|---|
align | "flex-start" | "center" | "flex-end" | "stretch" | "baseline" | Cross-axis alignment | - |
alignSelf | "auto" | "flex-start" | "center" | "flex-end" | "stretch" | "baseline" | Align self override when inside a flex parent | - |
backgroundColor | "colorPrimary" | "colorSecondary" | "colorTertiary" | "colorPrimaryContainer" | "colorSecondaryContainer" | "colorTertiaryContainer" | "colorError" | "colorErrorContainer" | ... (33 values) | Background surface color token | - |
basis | number | string | Flex basis value | - |
boxSizing | "content-box" | "border-box" | Box sizing model | - |
color | "colorOnPrimary" | "colorOnSecondary" | "colorOnTertiary" | "colorOnPrimaryContainer" | "colorOnSecondaryContainer" | "colorOnTertiaryContainer" | "colorError" | "colorOnError" | ... (28 values) | Text/icon color token | - |
gap | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | Spacing token for gap between children | - |
grow | number | Flex grow factor | - |
height | number | string | Height in pixels (number) or CSS string | - |
justify | "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly" | Main-axis alignment | - |
margin | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Margin as a spacing token or directional spacing-token object {top, right, bottom, left} | - |
maxHeight | number | string | Max height in pixels or CSS string | - |
maxWidth | number | string | Max width in pixels or CSS string | - |
minHeight | number | string | Min height in pixels or CSS string | - |
minWidth | number | string | Min width in pixels or CSS string | - |
overflow | "visible" | "hidden" | "scroll" | "auto" | Overflow behavior | - |
padding | "space0" | "space25" | "space50" | "space75" | "space100" | "space125" | "space150" | "space175" | ... (41 values) | object | Padding as a spacing token or directional spacing-token object {top, right, bottom, left} | - |
radius | "shapeCornerNone" | "shapeCornerXs" | "shapeCornerSm" | "shapeCornerMd" | "shapeCornerLg" | "shapeCornerXl" | "shapeCorner2xl" | "shapeCorner3xl" | ... (10 values) | Border radius token | - |
shrink | number | Flex shrink factor | - |
width | number | string | Width in pixels (number) or CSS string | - |
wrap | "nowrap" | "wrap" | "wrap-reverse" | Flex wrap behavior | - |
Events
No events.
Notes
- Slots:
default.
Example props
{
"elements": {
"vstack": {
"children": [
"vstackSec1",
"vstackSec2",
"vstackSec3"
],
"props": {
"align": "stretch",
"gap": "space300",
"justify": "flex-start"
},
"type": "VStack"
},
"vstackSec1": {
"children": [
"vstackText1"
],
"props": {
"backgroundColor": "colorPrimaryContainer",
"border": "1px solid var(--color-outline)",
"padding": "space300",
"radius": "shapeCornerMd"
},
"type": "Box"
},
"vstackSec2": {
"children": [
"vstackText2"
],
"props": {
"backgroundColor": "colorSurface",
"border": "1px solid var(--color-outline)",
"padding": "space300",
"radius": "shapeCornerMd"
},
"type": "Box"
},
"vstackSec3": {
"children": [
"vstackText3"
],
"props": {
"backgroundColor": "colorWarningContainer",
"border": "1px solid var(--color-outline)",
"padding": "space300",
"radius": "shapeCornerMd"
},
"type": "Box"
},
"vstackText1": {
"children": [],
"props": {
"text": "Section A",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"vstackText2": {
"children": [],
"props": {
"text": "Section B",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
},
"vstackText3": {
"children": [],
"props": {
"text": "Section C",
"typestyle": "typestyleBodyMedium"
},
"type": "Text"
}
},
"root": "vstack",
"state": {}
}
A specialized email input for entering work email addresses, featuring a domain suffix dropdown selector so users type only the username while choosing from a predefined list of company domains
Accepts children: No
Props
| Prop | Type | Description | Default |
|---|---|---|---|
aria-describedby | string | ID of element that describes this input | - |
aria-label | string | Accessible label for screen readers | - |
aria-labelledby | string | ID of element that labels this input | - |
autoCapitalize | "off" | "none" | "on" | "sentences" | "words" | "characters" | Auto-capitalization: off, none, on, sentences, words, or characters | - |
autoComplete | string | Browser autocomplete hint | - |
autoCorrect | "off" | "on" | Auto-correct: off or on | - |
autoFocus | boolean | Auto-focus on mount | - |
checks | object[] | Array of {type, message, args?} validation rule objects. Requires validateOn to be set | - |
defaultValue | string | Initial default value for uncontrolled usage | - |
domainList | string | string[] | object[] | object[] | Email domain list for selection. Can be: single string, array of strings ["acme.com"], array of {label, value, tag?} objects (FlatList), or array of {label, list} objects (NestedList) for grouped domains | - |
inputMode | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | Virtual keyboard type hint | - |
isDisabled | boolean | Disables the input | - |
isInvalid | boolean | Shows invalid styling (in addition to validation) | - |
isOriginalInputReadOnly | boolean | Sets readonly mode directly on input HTML element | - |
isReadOnly | boolean | Makes the input read-only | - |
isRequired | boolean | Marks the field as required | - |
label | string | Label text above the input | - |
maxLength | number | Maximum character count | - |
maxWidth | string | Maximum width CSS value | - |
minLength | number | Minimum character count | - |
name | string | Unique identifier for the input | - |
placeholder | string | Placeholder text when empty | - |
prefix | string | Text or icon name from Icon.TYPES to show before the input value | - |
readOnlyAffixSpacing | boolean | Controls gap between affixes and value in read-only mode. Set false to remove gap | true |
shouldAllowAutoFill | boolean | Allow browser autofill | - |
shouldPersistCursorPosition | boolean | Persist cursor position for controlled input. | false |
shouldStopEventPropagation | boolean | Stop automatic input focus when clicking container | - |
shrinkToPlaceholder | boolean | Input spans as much as its placeholder when true. Only applies when placeholder is visible | - |
shrinkToValue | boolean | Input spans as much as its value when true. Only applies when value is present | - |
size | "XS" | "S" | "M" | "L" | Input size variant. | M |
spellCheck | boolean | Enable spell checking | - |
suffix | string | Text or icon name from Icon.TYPES to show after the input value | - |
theme | string | Theme name from Input.WorkEmail.THEMES or custom theme | - |
validateOn | "change" | "blur" | "submit" | When to run validation checks. Requires checks to be set | - |
value | string | Current work email value bound to state | - |
Events
blurchangeclickfocuskeydownkeyupmouseentermouseleavepaste
Notes
- onChange stores the full email string including the domain (e.g. "john@acme.com"), then emits "change" onBlur validates if checks are provided, then emits "blur" Keyboard events (keydown, keyup, paste) and mouse events (click, mouseenter, mouseleave, focus) emit without parameters The component prevents users from typing "@" in the username field - it will be automatically added between username and domain domainList can be: single string, array of strings ["acme.com"], array of {label, value, tag?} objects (FlatList), or array of {label, list} objects (NestedList) for grouped domains When domainList is provided and not empty, renders as text input + domain dropdown. When empty/omitted or isReadOnly is true, renders as plain text input Use prefix/suffix for icons - pass Icon.TYPES names like "EMAIL_OUTLINE" or text Supports basic ARIA attributes (aria-label, aria-labelledby, aria-describedby) for accessibility Standalone — does not register with Form; use FormWorkEmail inside a Form instead.
Example props
{
"name": "workEmail",
"domainList": [
"acme.com",
"acme.org"
],
"isRequired": true,
"label": "Work Email",
"placeholder": "Enter username",
"value": {
"$bindState": "/form/workEmail"
}
}