Actions and inputs in apps
How each action and input component of the family is built in a native app: what stays the same as on the web, what changes, and which platform control each stack starts from.
This page is part of the app layer of OAIT Design System 2.1.0. The component index for apps lists all 60 components and where each mapping lives; containers, overlays, and feedback and navigation, brand, and product hold the other two groups. The rules for apps are in Mobile apps and canonical §18, cited here by their decision IDs (D-APP-…). Installed web apps and hybrid shells use the web components unchanged (hybrid guide); this page is for the five native stacks.
- How to read this page
- Actions: Button · Icon button · Link · Segmented button · Chip
- Inputs and selection: Text field · Select · Search field · Checkbox, radio, and switch · Choice card · Sign in with Global ID
- Sources
How to read this page
- The web page is the source. Each section links its component page and never repeats its tables. Anatomy, sizes, tokens, states, and words come from there; this page says only what an app does differently.
- Verdicts. "Used as is" means the component page applies in full, with the shared app rules below. "Used, adapted" names what changes. "Not used in apps" names what an app uses instead. "Product art" means the component is drawn by hand from its page.
- Tokens. Tokens are written by their OAIT names, as the token reference gives them: colors by role (
primary-ink), every other family with its family word (size-button-md,radius-field,space-6,opacity-state-pressed,duration-short-3), and type styles by name (label-lg). Each stack spells the same name in its own case:primaryInk,sizeButtonMd,oait_color_primary_ink(D-APP-07). One token unit is 1dp, 1pt, or one logical pixel (D-APP-05). - Kits. Reference kits exist for Jetpack Compose and React Native in this release, in
reference/native/compose/andreference/native/react-native/(D-APP-62, D-APP-63). Where a kit component exists (OaitButton,OaitIconButton,OaitTextField,OaitCheckbox,OaitRadio,OaitSwitch,OaitChip), it is the first choice in the Compose and React Native rows, and the platform control after it is what the kit wraps. SwiftUI, Android Views, and Flutter teams start from the platform control and the generated theme files (native tokens). - Colors on Material components. Compose and Flutter themes fill the toolkit's Material color scheme through the bridge of D-APP-10: Material
primaryisprimary-inkandonPrimaryissurface, so stock components draw legible text, outlines, checkboxes, and switches. The rows below still set every color by its OAIT role, and set the orangeprimaryfill by hand where the family uses it (the filled button), because the bridge never puts orange where Material putsprimary. - Shared app rules apply to every section and are not repeated:
- Pressed is the 12% layer (
opacity-state-pressed) of the content color inside the control's shape: a bounded ripple with that alpha on Android, a fade on iOS. Hover (opacity-state-hover) exists only while a pointer is attached: iPadOS with a trackpad, ChromeOS, desktop builds (D-APP-32). - Keyboard, switch, and D-pad focus draws the OAIT ring (3dp
focus-ring, 2dp outside the edge,size-focus-ringandsize-focus-offset) where the kit or the app draws the control; the system indicator stands where the system draws focus (iOS and iPadOS). A tap never shows a ring (D-APP-33). - Targets are at least 48dp (
size-touch-target) on every platform, iOS included, with 8dp between smaller ones (D-APP-49). Every text style scales with the user's setting and fixed heights become minimum heights (D-APP-17). Every control exposes its name, role, and state, and a row with a label and a control is one element (D-APP-50). Status messages are announced (D-APP-52). Mirroring follows the OAIT icon registry, never the platform's own flags (D-APP-25).
- Pressed is the 12% layer (
- Large text. Capped text scaling applies only to the navigation chrome that D-APP-18 names. On this page that is the segmented button, capped at 1.3×. Every other component here scales its text fully.
- Platform names. Every control and property in the tables links to the vendor page where its name was confirmed: Apple's SwiftUI, UIKit, Foundation, PhotosUI, AuthenticationServices, and Accessibility documentation; Android Developers for Compose and the platform; Material Components for Android for Views; the
material_uipackage and the Flutter API reference; the React Native and Expo docs. The Compose reference documents the Material 3 1.5 line; the stable release is 1.4.0 (D-APP-03). "Experimental" marks a Compose API that the reference annotates@ExperimentalMaterial3Api. - What is not verified here. Names were confirmed on the vendor pages, not run on a device. The rows that need a device check say "check on a device".
Button
Button · In apps: used as is. The six variants, three sizes, wide form, and loading recipe carry over. Two web parts have no app screen to live on: the web header carries no call to action (D-CSN-53), and a call to action that the web writes as <a href> is a button that opens a screen.
What stays identical
- Anatomy, variants and their colors, sizes and padding, the 8dp icon gap, and the token of each part (Button: Anatomy, Variants, Sizes, Tokens).
- States: no selected or error state; disabled is rare and never signals missing input; loading keeps colors and focus, shows the progress words and the spinner, locks the width, and ignores presses (Button: States).
- One filled button per screen,
lgon key screens and in sheets, full width below 640dp (breakpoint-sm), and the pair orders of pages, dialogs, and sheets (Button: Behavior, D-APP-43). - Labels, progress forms ("Sending…"), arrows, and the glossary in three languages (Button: Content).
What changes in an app
- Touch. The pressed layer replaces the platform's default feedback: Material's ripple at its own 10% alpha and the iOS highlight are both overridden (D-APP-32). Haptics: none on a press (D-APP-31).
- Where it goes. A button that opens another screen of the app has the button role and may carry
arrow_forward. A button that opens web content outside the app is a link: the link role,north_east, and the words say where it opens (Link, D-APP-50). - The small size. The 40dp
smbutton keeps a 48dp target through the platform's hit-area extension (the rows below), never by drawing a bigger button. - Large text. The label scales; heights are minimums. When a pair no longer fits its row, both buttons take the wide form and stack, Cancel first, as the page already does for long labels. A wide button keeps its label to two lines; a longer label is a copy problem, not a layout one.
- Loading. The button stays enabled and focusable while busy, so focus never drops; the progress words are its name, and the result is announced (D-APP-52) or focus moves to the first error.
- Safe areas and the keyboard. A main button pinned at the bottom of a screen adds the bottom inset to its own padding (D-APP-35); in a one-step form it stays reachable above the keyboard (D-APP-36).
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | Button with a custom ButtonStyle that reads isPressed |
shape Capsule (radius-full); fill and label per variant (primary with on-primary, secondary-container with on-secondary-container, error with on-error, primary-ink text with a 1dp outline edge through strokeBorder(_:lineWidth:antialiased:) for outlined); label label-lg (sm: label-md) through custom(_:size:relativeTo:); frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:) with the minimum height size-button-md (size-button-sm, size-button-lg) as a ScaledMetric; padding space-6 (space-5, space-7); pressed: an overlay of the label color at opacity-state-pressed while isPressed; sm target: pad to size-touch-target and set contentShape(_:eoFill:); loading: ProgressView in the label color |
the button trait comes with Button; the name is the visible label, or accessibilityLabel(_:) when the label repeats down a list ("Approve the photo of …"); disabled(_:) only for a real disabled state, never while loading |
| Jetpack Compose | OaitButton, which wraps Button, FilledTonalButton, OutlinedButton, and TextButton |
ButtonDefaults buttonColors with containerColor primary and contentColor on-primary (tonal secondary-container, danger error), disabledContainerColor on-surface at opacity-state-disabled-container, disabledContentColor on-surface at opacity-state-disabled-content; shape radius-full; elevation null; border 1dp outline for outlined; contentPadding space-6; heightIn with the minimum size-button-md; label label-lg; pressed: the kit's indication at opacity-state-pressed (LocalRippleConfiguration for a stock button); sm target: minimumInteractiveComponentSize |
the button role comes with Button; keep enabled true while loading and ignore onClick; the progress words are the name; announce the result through a live region (liveRegion) |
| Android Views | MaterialButton with Widget.Material3.Button, Widget.Material3.Button.TonalButton, Widget.Material3.Button.OutlinedButton, or Widget.Material3.Button.TextButton |
app:backgroundTint and android:textColor per variant; app:strokeColor outline and app:strokeWidth 1dp for outlined; app:shapeAppearance radius-full; app:rippleColor the label color at opacity-state-pressed; android:textAppearance label-lg; app:icon with app:iconSize size-icon-md and app:iconPadding space-2; minimum height size-button-md; loading: an IndeterminateDrawable as the icon through setIcon |
the button class is exposed by the view; the name is the text; the result goes to a status view marked with setAccessibilityLiveRegion |
| Flutter | FilledButton and FilledButton.tonal, OutlinedButton, TextButton, each with a ButtonStyle |
shape StadiumBorder; backgroundColor and foregroundColor per variant; side 1dp outline for outlined; minimumSize height size-button-md; padding space-6; textStyle label-lg; elevation 0; overlayColor the label color at opacity-state-pressed (pressed) and opacity-state-hover (hovered), transparent when focused because the ring shows focus; tapTargetSize MaterialTapTargetSize.padded for sm; on iOS splashFactory NoSplash, so the press is a fade (check on a device) |
the button semantics come with the widget; announce the result with a Semantics liveRegion on the status text |
| React Native | OaitButton, which wraps Pressable |
borderRadius radius-full; backgroundColor and the label color per variant; borderWidth 1 and borderColor outline for outlined; minHeight size-button-md; paddingHorizontal space-6; label label-lg; pressed: the style function on pressed (iOS) and android_ripple with the label color and alpha opacity-state-pressed (Android); sm target: hitSlop up to size-touch-target |
accessibilityRole button (link for web content); accessibilityState busy while loading; announce the result with announceForAccessibility on iOS and accessibilityLiveRegion on Android (D-APP-52) |
Do and do not in apps
| Do | Do not |
|---|---|
| Keep a loading button enabled, ignore presses, and let its progress words be its name. | Disable it while it works: focus drops and screen readers call it dimmed. |
Override Material's 40dp height, labelLarge 14 text, and 10% press alpha in every stock button. |
Ship Material's default button with only the colors changed. |
Give a button that opens a web page the link role and north_east. |
Give a button that opens an app screen the link role. |
Icon button
Icon button · In apps: used, adapted. The tooltip that the web shows on pointer rest and keyboard focus becomes the platform's long-press tooltip on Android and Flutter, a pointer tooltip on iPadOS, and nothing on touch-only iOS. The name lives in the accessibility label on every stack.
What stays identical
- Anatomy, the four variants, the one 48dp size with a 24dp icon, toggles with the filled glyph, and the tokens (Icon button: Anatomy, Variants, Sizes, Tokens).
- States, the toggle whose name never changes, and the Pause control that changes words instead of pressing (Icon button: States, Behavior).
- Names in the screen's language and names that say what they act on (Icon button: Content).
What changes in an app
- No hover tooltip on touch. An icon button never depends on its tooltip, so only universally known icons stand alone; anything else is a labeled button, as the page already rules.
- Size. The 48dp circle is the visible size. Material's stock icon buttons can draw a smaller circle inside their 48dp target, so the rows below set the visible size to 48dp.
- Toggles. "Save job" exposes a toggled or selected state with a name that stays "Save job" (D-APP-50).
- Large text. No text to scale; the circle and the icon keep their size. The accessibility label carries the name at every text size.
- Right to left.
arrow_back,chevron_right, andnorth_eastmirror through the registry'smirroredflag (D-APP-25). - Back. The back control of a top app bar is this component with
arrow_back; an iOS system bar draws its own back symbol (D-APP-42).
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | Button with a Label and labelStyle(_:) iconOnly; toggles: Toggle with the button toggle style or a custom ButtonStyle |
shape Circle at size-button-md; icon size-icon-lg in on-surface-variant (filled on-primary on primary; tonal on-secondary-container on secondary-container; outlined edge outline-variant); toggled on: primary-container with on-primary-container and the FILL 1 glyph; pressed overlay at opacity-state-pressed; pointer tooltip: help(_:) |
the label's title is the name; toggled: accessibilityAddTraits(_:) isSelected with the name unchanged |
| Jetpack Compose | OaitIconButton, which wraps IconButton, FilledIconButton, FilledTonalIconButton, OutlinedIconButton, IconToggleButton, and OutlinedIconToggleButton |
IconButtonDefaults iconButtonColors with contentColor on-surface-variant; iconToggleButtonColors with checkedContainerColor primary-container and checkedContentColor on-primary-container; outlinedIconButtonBorder 1dp outline-variant; size size-button-md; icon size-icon-lg; long-press tooltip: TooltipBox (Experimental) with a PlainTooltip |
the Icon contentDescription is the name; IconToggleButton exposes the checked state |
| Android Views | MaterialButton with Widget.Material3.Button.IconButton, Widget.Material3.Button.IconButton.Filled, Widget.Material3.Button.IconButton.Filled.Tonal, or Widget.Material3.Button.IconButton.Outlined |
app:icon with app:iconTint per variant; minimum width and height size-button-md; app:rippleColor the icon color at opacity-state-pressed; toggles: android:checkable with a checked color state list (primary-container, on-primary-container); long-press tooltip: setTooltipText |
android:contentDescription is the name; a checkable button exposes its checked state |
| Flutter | IconButton, IconButton.filled, IconButton.filledTonal, IconButton.outlined |
style ButtonStyle with minimumSize size-button-md square, foregroundColor per variant, side outline-variant for outlined, overlayColor at opacity-state-pressed; toggles: isSelected and selectedIcon (the FILL 1 glyph) |
tooltip gives the long-press tooltip and the name; check on a device that the toggled state is announced |
| React Native | OaitIconButton, which wraps Pressable |
width and height size-button-md; borderRadius radius-full; icon size-icon-lg in on-surface-variant; pressed as in the button row |
accessibilityLabel is the name; accessibilityRole button, or togglebutton with accessibilityState checked for toggles; no tooltip |
Do and do not in apps
| Do | Do not |
|---|---|
| Set the visible circle to 48dp. | Keep a smaller stock circle inside a 48dp target. |
| Give every icon button an accessibility label in the app's language. | Rely on a long-press tooltip as the only name. |
Link
Link · In apps: used, adapted. In an app, the link role is for web content only (D-APP-50). Moving between screens of the app is a button, a list row, or a card. Inline links in text and standalone links to web pages keep the family's look. The skip link is not used in apps: screen readers move by headings, and every screen title is one (D-APP-50).
What stays identical
- The look of inline and standalone links:
primary-ink, weight 600, always underlined, no visited color, and the 48dp standalone box (Link: Variants, Sizes, Tokens). - Contact links show their value left to right; files name their type and size (Link: Behavior).
- Link text names the destination, never "here" or "more" (Link: Content).
What changes in an app
- Leaving the app. A link to web content opens the platform's in-app browser view (Custom Tabs on Android,
SFSafariViewControlleron iOS) or the system browser, never an embedded web view without an address bar. It keepsnorth_east, and its accessible name says where it opens in place of "(opens in a new tab)". "Sign in with Global ID" has its own flow (Sign in with Global ID, D-APP-46). - Contact links.
tel:andmailto:open the dialer and the mail app through the platform's URL opener. - Title links. A card or row that opens a screen is one target with merged semantics and the button role, named by its title; its other controls stay separate elements (Card).
- Touch. Hover thickening needs a pointer; there is no pressed layer on text links (the page already says so).
- Large text. Scales fully; inline links reflow with their sentence and stay exempt from the 48dp target, as on the web (WCAG 2.5.8).
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | Link for a standalone link; Text with a Markdown or AttributedString link for an inline one, opened through openURL; web content in SFSafariViewController |
foregroundStyle(_:) primary-ink; weight 600; underline(_:pattern:color:); standalone minimum height size-touch-target with padding space-2 |
Link carries the link trait; the name is the link text plus where it opens |
| Jetpack Compose | Text with an annotated string built with withLink and a LinkAnnotation Url; web content in CustomTabsIntent |
TextLinkStyles with primary-ink, weight 600, and an underline; a standalone link is a Text whose whole string is one link, inside heightIn with the minimum size-touch-target |
check with TalkBack on a device that the link is offered as a link action; a control that opens an app screen is a button, never a link |
| Android Views | TextView with a URLSpan or ClickableSpan and LinkMovementMethod; web content in CustomTabsIntent |
android:textColorLink primary-ink; weight 600 through the text appearance; standalone minimum height size-touch-target |
the span is reachable as a link; check the link actions with TalkBack on a device |
| Flutter | Text.rich with a TextSpan whose recognizer is a TapGestureRecognizer; web content through launchUrl with LaunchMode inAppBrowserView |
span style primary-ink, weight 600, underlined; standalone minimum height size-touch-target |
Semantics link true on a standalone link; check inline spans with a screen reader on a device |
| React Native | a Text with onPress nested in the sentence's Text; Linking openURL; web content with Expo's openBrowserAsync |
color primary-ink; weight 600; textDecorationLine underline; standalone minHeight size-touch-target |
accessibilityRole link; the text is the name |
Do and do not in apps
| Do | Do not |
|---|---|
Open web content in Custom Tabs or SFSafariViewController, with north_east and words that say so. |
Open it in an embedded web view that hides the address. |
| Make a row that opens an app screen a button. | Give in-app navigation the link role. |
Segmented button
Segmented button · In apps: used, adapted. It is navigation chrome under D-APP-18, so its labels are capped at 1.3× text scale. Its state is exposed as the selected segment of a single choice, not as pressed buttons. SwiftUI draws it from buttons, because the system segmented picker has its own look and offers no check on the selected segment, which the family's state depends on (D-CAI-14).
What stays identical
- Anatomy: the pill group with a 1dp
outlineedge onsurface, two to four segments 48dp tall, dividers, the check that replaces the icon on the selected segment; the default, wide, and stacked variants (Segmented button: Anatomy, Variants, Tokens). - States: one segment is always selected, pressing it again does nothing, the mode applies at once (Segmented button: States, Behavior).
- Words: the group's name and one to three parallel words per segment, no verbs (Segmented button: Content).
What changes in an app
- Large text. Labels scale to 1.3× and stop there (D-APP-18). On iOS a capped label adds the Large Content Viewer, so a long press shows it large.
- Stacking. Labels never wrap or truncate. When the labels do not fit side by side at the cap, in any language the app ships, the group takes the stacked form below 640dp, as on the web.
- Semantics. A platform segmented control keeps the single-choice semantics it exposes. A drawn segment is a button with the selected state, named by its label; the group is named by its visible label or its own name (D-APP-50).
- Haptics. A selection tick when the selection changes, optional (D-APP-31).
- Right to left. The first segment sits at the inline start;
loginandlogoutmirror through the registry.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no direct equivalent: compose from Buttons in an HStack (VStack when stacked) with a custom ButtonStyle, clipped with clipShape(_:style:) to a Capsule (stacked: a RoundedRectangle at radius-box) |
group edge 1dp outline and fill surface; segment minimum height size-button-md, padding space-6, label label-lg in on-surface; selected primary-container with on-primary-container and the check glyph at size-icon-md; cap: dynamicTypeSize(_:) up to DynamicTypeSize xxxLarge, about 1.35× for body text on Apple's Dynamic Type table (typography); haptic: sensoryFeedback(_:trigger:) selection |
the selected segment adds accessibilityAddTraits(_:) isSelected; the group is accessibilityElement(children:) contain with an accessibilityLabel(_:); accessibilityShowsLargeContentViewer() on each segment |
| Jetpack Compose | SingleChoiceSegmentedButtonRow with SegmentedButton items; stacked: no direct equivalent, compose a Column of selectable Surfaces in a selectableGroup |
shape SegmentedButtonDefaults itemShape; colors with activeContainerColor primary-container, activeContentColor on-primary-container, inactiveContainerColor surface, inactiveContentColor on-surface, activeBorderColor and inactiveBorderColor outline; icon with the check (SegmentedButtonDefaults.Icon); label label-lg; heightIn size-button-md; cap: provide a Density whose fontScale is at most 1.3 through LocalDensity; haptic: HapticFeedbackType SegmentTick |
keep the semantics SegmentedButton exposes; the row is named by the visible label above it |
| Android Views | MaterialButtonToggleGroup with app:singleSelection and app:selectionRequired, holding MaterialButtons with Widget.Material3.Button.OutlinedButton |
checked color state lists on app:backgroundTint (primary-container) and android:textColor (on-primary-container); app:strokeColor outline; app:icon the check while checked; minimum height size-button-md; stacked: the group is a LinearLayout, so set its orientation to vertical; cap: compute the text size from fontScale, at most 1.3, and set it with setTextSize; haptic: HapticFeedbackConstants SEGMENT_TICK |
the buttons expose their checked state; name the group with the visible label |
| Flutter | SegmentedButton with ButtonSegments, single choice |
showSelectedIcon true (the check); style ButtonStyle with the selected backgroundColor primary-container and foregroundColor on-primary-container, side outline, minimumSize height size-button-md, textStyle label-lg; stacked: direction vertical; cap: withClampedTextScaling with maxScaleFactor 1.3; haptic: HapticFeedback selectionClick |
keep the semantics SegmentedButton exposes; check the selected state with TalkBack and VoiceOver on a device |
| React Native | no core control: compose from Pressable segments in a row View (a column when stacked) |
borderRadius radius-full (stacked radius-box); borderWidth 1 and borderColor outline; selected backgroundColor primary-container; segment minHeight size-button-md; label label-lg with maxFontSizeMultiplier 1.3; haptic: Expo's selectionAsync |
accessibilityRole button and accessibilityState selected on each segment; accessibilityShowsLargeContentViewer on iOS |
Do and do not in apps
| Do | Do not |
|---|---|
| Cap segment labels at 1.3× and add the Large Content Viewer on iOS. | Let segment labels grow until they truncate, or switch scaling off. |
| Use the stacked form when a translated label does not fit at the cap. | Use the iOS segmented picker, which has no check. |
Chip
Chip · In apps: used, adapted. Every kind carries over: filter, input, suggestion, and assist chips, status chips, dot pills, inline status, and code tags. Two app facts change: Material's stock chip is 32dp tall, so the family's 48dp default is set by hand; and at the largest text sizes a chip wider than its row lets its label wrap rather than clip (D-APP-17).
What stays identical
- Anatomy, the kinds and their elements, the status tones, person types, and Global ID statuses (Chip: Anatomy, Variants).
- Sizes (interactive 48dp default and 32dp
sm, status 32dp and 24dp),radius-chipon every chip, the 8dp and 16dp group gaps, and the tokens (Chip: Sizes, Tokens). - States: the check on a selected filter chip, the assist chip's confirmation for
duration-dwell-confirm, no states on status chips (Chip: States, Behavior). - Words: one to three words in every language (Chip: Content).
What changes in an app
- Groups wrap. Chip groups wrap onto more rows, as on the web. A sideways-scrolling chip row, a common platform habit, is not used.
- Large text. Labels scale. A chip keeps its label on one line while it fits its row; only a chip wider than the row wraps its label. The one-to-three-word rule keeps this rare.
- Semantics. A filter chip that may combine with others is a toggle with its on state; a single-choice chip group is a radio group. An input chip's name says what pressing does ("Remove filter: Full-time"). Status chips, dot pills, and code tags are text, out of the focus order (D-APP-50).
- The assist confirmation ("Address copied") is announced (D-APP-52).
- Right to left.
close,check, and status glyphs never mirror; code tags stay left to right.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no stock chip: compose from Button (input, suggestion, assist) or Toggle (filter) with a custom style; wrap a group with a custom Layout |
shape Capsule (radius-chip); edge 1dp outline-variant through strokeBorder(_:lineWidth:antialiased:), none when selected; minimum height size-button-md (sm: size-chip-sm with a 48dp contentShape(_:eoFill:)); padding space-4; label label-md in on-surface-variant (filter) or on-surface; icon size-icon-sm in primary-ink; selected primary-container with on-primary-container and check; status chips: Text on the tone's container |
selected filter chips add accessibilityAddTraits(_:) isSelected; input chips take an accessibilityLabel(_:) such as "Remove filter: Full-time"; post the assist confirmation as an Announcement |
| Jetpack Compose | OaitChip, which wraps FilterChip, InputChip, AssistChip, and SuggestionChip; groups in a FlowRow |
FilterChipDefaults filterChipColors with labelColor on-surface-variant, selectedContainerColor primary-container, selectedLabelColor and selectedLeadingIconColor on-primary-container; filterChipBorder 1dp outline-variant; shape radius-chip (Material's default is 8dp); heightIn size-button-md (Material's default is 32dp); label label-md; FlowRow gaps space-2 (sm rows space-4) |
FilterChip exposes its selected state; a single-choice group adds selectableGroup and Role RadioButton; announce the assist confirmation through liveRegion |
| Android Views | Chip with Widget.Material3.Chip.Filter, Widget.Material3.Chip.Input, Widget.Material3.Chip.Assist, or Widget.Material3.Chip.Suggestion, in a ChipGroup |
app:chipMinHeight size-button-md; app:shapeAppearance radius-chip; app:chipBackgroundColor with a checked state (primary-container); app:chipStrokeColor outline-variant and app:chipStrokeWidth 1dp; app:checkedIcon the check; app:chipIcon with app:chipIconTint primary-ink; app:ensureMinTouchTargetSize for sm; group app:singleLine false (wraps), app:singleSelection for one at a time, app:chipSpacingHorizontal space-2 |
the chip's checked state is exposed; an input chip removes its value on a press of the whole chip (setOnCloseIconClickListener does the same) and gets setCloseIconContentDescription "Remove filter: Full-time" |
| Flutter | FilterChip, InputChip, ActionChip (assist and suggestion), ChoiceChip (single choice), in a Wrap |
shape StadiumBorder (radius-chip); side outline-variant; selectedColor primary-container; showCheckmark true with checkmarkColor on-primary-container; labelStyle label-md; padding to reach the size-button-md height; materialTapTargetSize padded for sm; Wrap spacing space-2 and runSpacing space-2 (sm rows space-4) |
the chips expose their selected state; InputChip with onDeleted takes deleteButtonTooltipMessage "Remove filter: Full-time"; announce the assist confirmation with Semantics liveRegion |
| React Native | OaitChip, which wraps Pressable; groups in a View with flexWrap wrap and gap space-2 |
borderRadius radius-chip; borderWidth 1 and borderColor outline-variant; minHeight size-button-md (sm: size-chip-sm with hitSlop); selected backgroundColor primary-container; label label-md |
filter chips: accessibilityRole togglebutton with accessibilityState checked; single choice: radio with checked in a radiogroup; input chips: accessibilityLabel "Remove filter: Full-time"; status chips are plain Text |
Do and do not in apps
| Do | Do not |
|---|---|
| Wrap chip groups onto more rows. | Scroll a chip row sideways. |
Set the 48dp height and radius-chip on stock Material chips. |
Ship Material's 32dp chip with 8dp corners. |
Text field
Text field · In apps: used, adapted. The label sits above the box and the app draws it, never Material's floating label in a notch. The web's type, inputmode, and autocomplete become each platform's keyboard type, content type, and action key. Date and photo members open system pickers, which keep the platform's look (D-APP-41).
What stays identical
- Anatomy: label above, the 56dp box, one message row; leading icon and trailing icon button; the members and variants (Text field: Anatomy, Variants, Sizes, Tokens).
- States: no hover; focus
primary-inkedge; error edge and message with the filled icon; read-only with the lock line; disabled rare (Text field: States). - Validation on submit, then live; focus on the first invalid field; the error summary for long forms; messages that are not live regions (Text field: Behavior).
- Labels, "(optional)", placeholders that start "For example:", and error messages in three languages (Text field: Content).
What changes in an app
- Focus on touch. A tapped field shows the 1dp
primary-inkedge only; the ring appears for keyboard focus (D-APP-33). - Keyboard and autofill. Each value sets its keyboard and autofill type from the table below, and the action key reads "Next" between fields and "Done" or "Search" on the last one. Paste stays allowed everywhere; the one-time code stays one field.
- The keyboard covers nothing. The focused field scrolls into view or the sheet lifts with the keyboard inset; the main action stays reachable (D-APP-36).
- Errors. On a failed submit, focus moves to the first invalid field and its error is read with it: the error is part of the field's accessible description, never a separate live region.
- System pickers. Date: the platform's date picker (
DatePicker,DatePickerDialog,MaterialDatePicker,showDatePicker), with the formatter locale on Latin digits (D-APP-23). Photo: the platform's photo picker, asked for at the moment of use (D-APP-45). Both keep the system's look and icons (D-APP-41). - Large text. Scales fully. The label wraps; the box grows from its 56dp minimum; the value stays
body-lg, 16 at the default size. - Right to left. Latin-only values (email, phone, password, codes, Global ID numbers) set left to right on the box only; the label and the message follow the screen's direction.
Keyboard and autofill, by value:
| Value | SwiftUI (keyboard, content) | Jetpack Compose (keyboard, content) | Android Views (input, hint) | Flutter (keyboard, hints, field) | React Native (props) |
|---|---|---|---|---|---|
| Email address | emailAddress; emailAddress (username on sign-in) |
Email; EmailAddress (Username) |
textEmailAddress; AUTOFILL_HINT_EMAIL_ADDRESS |
emailAddress; email (username) |
email-address; emailAddress; email |
| Password | SecureField; password or newPassword |
Password; Password or NewPassword |
textPassword; AUTOFILL_HINT_PASSWORD or AUTOFILL_HINT_NEW_PASSWORD |
obscureText; password or newPassword |
secureTextEntry; password or newPassword; current-password or new-password |
| Phone number | phonePad; telephoneNumber |
Phone; PhoneNumber |
phone; AUTOFILL_HINT_PHONE_NUMBER |
phone; telephoneNumber |
phone-pad; telephoneNumber; tel |
| One-time code | numberPad; oneTimeCode |
Number; SmsOtpCode |
number; AUTOFILL_HINT_SMS_OTP |
number; oneTimeCode |
number-pad; oneTimeCode; one-time-code (iOS) or sms-otp (Android) |
| Given or family name | default; givenName or familyName |
default; PersonFirstName or PersonLastName |
textPersonName; AUTOFILL_HINT_PERSON_NAME_GIVEN or AUTOFILL_HINT_PERSON_NAME_FAMILY |
default; givenName or familyName |
default; givenName or familyName; given-name or family-name |
| Global ID number | asciiCapable; textInputAutocapitalization(_:) characters |
KeyboardCapitalization Characters |
textCapCharacters |
TextCapitalization characters |
autoCapitalize characters |
| Action key | submitLabel(_:) next, done, search |
ImeAction Next, Done, Search |
android:imeOptions (IME_ACTION_NEXT, IME_ACTION_DONE, IME_ACTION_SEARCH) |
TextInputAction next, done, search |
enterKeyHint next, done, search |
React Native cells read: keyboardType; textContentType (iOS); autoComplete.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | TextField (or SecureField, TextEditor) with textFieldStyle(_:) plain inside a drawn box; the label a Text above it; dates: DatePicker; photos: PhotosPicker |
box: RoundedRectangle at radius-field, fill surface-container-lowest, 1dp edge through strokeBorder(_:lineWidth:antialiased:) in outline (focused primary-ink, error error); minimum height size-field; padding space-4; value body-lg; label label-md with space-1-5 below it; message body-md with space-1 above it; the placeholder is the field's prompt; tint(_:) primary-ink for the cursor |
accessibilityLabel(_:) is the visible label (the label Text is accessibilityHidden(_:)); helper or error as accessibilityHint(_:); move focus to the first invalid field with FocusState and focused(_:equals:) |
| Jetpack Compose | OaitTextField, which wraps OutlinedTextField with no label and the label Text above it; dates: DatePickerDialog; photos: PickVisualMedia |
shape radius-field; OutlinedTextFieldDefaults colors with unfocusedBorderColor outline, focusedBorderColor primary-ink, errorBorderColor error, focusedContainerColor and unfocusedContainerColor surface-container-lowest, cursorColor primary-ink; textStyle body-lg; supportingText in body-md; isError; heightIn size-field; keyboardOptions from KeyboardOptions; password: PasswordVisualTransformation |
merge the label and the field with semantics mergeDescendants (check on a device that TalkBack reads the label, the value, and the message once); set error with the message on an invalid field; move focus with FocusRequester; autofill through contentType |
| Android Views | TextInputLayout with Widget.Material3.TextInputLayout.OutlinedBox around a TextInputEditText, with no hint, and the label in a TextView above it; dates: MaterialDatePicker; photos: PickVisualMedia |
app:boxStrokeColor with a focused state (outline, primary-ink); app:boxStrokeErrorColor error; app:boxStrokeWidth and app:boxStrokeWidthFocused 1dp; app:boxBackgroundColor surface-container-lowest; app:shapeAppearance radius-field; app:helperText; app:startIconDrawable; app:endIconMode password_toggle or clear_text; minimum height size-field |
tie the label with setLabelFor; show errors with setError on the layout and check on a device that TalkBack reads the error with the field; autofill with android:autofillHints |
| Flutter | TextField or TextFormField with an InputDecoration and no labelText, the label a Text above it; dates: showDatePicker; photos: the image_picker package |
filled true with fillColor surface-container-lowest; enabledBorder, focusedBorder, errorBorder, and focusedErrorBorder as OutlineInputBorder with radius-field and the sides outline, primary-ink, error, and 2dp error; contentPadding space-4; hintText the placeholder; helperText and errorText in body-md; field style body-lg; cursorColor primary-ink; textDirection left to right for Latin-only values |
wrap the label and the field in MergeSemantics (check on a device); errorText carries the error; move focus with FocusNode requestFocus |
| React Native | OaitTextField, which wraps TextInput with the label Text above it; photos: Expo's launchImageLibraryAsync; dates: no core picker, so present the platform's picker through a native module |
minHeight size-field; borderRadius radius-field; borderWidth 1 and borderColor outline (focused primary-ink, error error); backgroundColor surface-container-lowest; paddingHorizontal space-4; value body-lg; placeholderTextColor on-surface-variant; selectionColor and cursorColor primary-ink; Latin-only values on iOS: writingDirection ltr |
accessibilityLabel is the visible label; accessibilityHint holds the helper or the error; focus the first invalid field through its ref; KeyboardAvoidingView keeps it in view |
Do and do not in apps
| Do | Do not |
|---|---|
| Draw the label above the box and pass no label to Material's field. | Use Material's floating label or the notch. |
| Set the keyboard, the autofill type, and the action key on every field. | Leave the default keyboard on an email or code field. |
| Open the platform's date and photo pickers. | Draw a date wheel or a photo grid of your own. |
Select
Select · In apps: used, adapted. The closed field is identical. What opens depends on the list, because an app has no native <select>: a short familiar list opens the platform's menu, a medium list opens the OAIT bottom sheet with radio rows below 768dp (Bottom sheet, D-APP-43), and a long list (countries, calling codes) opens a full-screen list with a search field.
What stays identical
- The closed field: label above, the 56dp box,
arrow_drop_downat the inline end, one message row; the default, leading-icon, and country-code variants (Select: Anatomy, Variants, Tokens). - States: no hover, focus edge, error, disabled; no read-only select (Select: States).
- A sensible default or "Choose one" with an empty value; calling codes first ("+961 Lebanon"); a filter select applies at once (Select: Behavior).
- Labels, options, and errors in three languages (Select: Content).
What changes in an app
- The open list. The three forms above replace the browser's list. Every option row shows the chosen one with a check or a radio, never by color alone. On iOS a menu or a pushed list keeps the system's look.
- Country names and order. Names come from the platform's locale data in the app's language and sort with its collator:
localizedString(forRegionCode:)on iOS,getDisplayCountryandCollatoron Android. No core API was confirmed for Flutter or React Native: ship the names from the same source as the native apps, or call the platform. Digits stay Latin (D-APP-23). - Semantics. The closed field is a control that opens a list, named by its label, with the chosen value as its value (D-APP-50).
- Back. Back closes the open menu, sheet, or list first (D-APP-42).
- Large text. Scales fully; a closed field cuts a long value with an ellipsis and keeps its start visible, as on the web.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | short list: a Menu whose label is the drawn closed field, holding a Picker with the inline style; long list: the navigationLink picker style inside a NavigationStack, or a pushed List with searchable(text:placement:prompt:) |
the closed field as in the text field row, with arrow_drop_down at size-icon-lg in on-surface-variant and the value cut with lineLimit(_:) 1 |
accessibilityLabel(_:) the label and accessibilityValue(_:) the chosen option; selected rows add isSelected |
| Jetpack Compose | ExposedDropdownMenuBox with ExposedDropdownMenu and DropdownMenuItem, the OaitTextField (read-only, trailing arrow) as its menuAnchor; medium and long lists: ModalBottomSheet (Experimental) or a full screen of selectable rows |
the closed field as in the text field row; menu items body-lg; the selected item shows check |
the anchor field takes Role DropdownList; rows use selectable with Role RadioButton in a selectableGroup |
| Android Views | TextInputLayout with Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu around a MaterialAutoCompleteTextView (app:simpleItems); medium and long lists: a BottomSheetDialog with radio rows |
the box attributes of the text field row; the style sets the end icon to the arrow (END_ICON_DROPDOWN_MENU) |
the label tied with setLabelFor; radio rows in a RadioGroup |
| Flutter | DropdownMenu (dropdownMenuEntries; enableFilter for a long list) or DropdownButtonFormField; medium and long lists: showModalBottomSheet with RadioListTiles in a RadioGroup |
the decoration of the text field row; trailing arrow_drop_down; entries body-lg |
the label and value are read from the decoration; check on a device that the field is announced as a list |
| React Native | no core select: a Pressable drawn as the closed field opens a Modal with radio rows, or on iOS showActionSheetWithOptions for a short list |
the closed field as in the OaitTextField row; arrow_drop_down at size-icon-lg |
accessibilityRole combobox with accessibilityValue the chosen option; rows radio with checked; onRequestClose on the Modal handles Android back |
Do and do not in apps
| Do | Do not |
|---|---|
| Open a full-screen list with a search field for countries. | Put 200 countries in a menu or a wheel. |
| Show the chosen option with a check or a radio. | Show it by color alone. |
Search field
Search field · In apps: used, adapted. A search field in a screen's content keeps its visible label, its leading search icon, and "Clear search". Two app facts change: the query lives in the screen's saved state instead of the address, and an iOS app that uses the system navigation bar (D-APP-40) may use the system search field there, whose prompt then repeats the label.
What stays identical
- Anatomy: the search region, the visible label, the leading icon, the 56dp field, "Clear search" only while the field holds text, the helper; the search panel (Search field: Anatomy, Variants, Sizes, Tokens).
- States, including "Searching…" on the results (Search field: States).
- The empty state that names the query and offers one way out, and the words (Search field: Behavior, Content).
What changes in an app
- The system search field. Material's
SearchBarandDockedSearchBarput the label inside the field as a placeholder, so they are not used. Where a SwiftUI screen keeps a system navigation bar (system-owned screens only, D-APP-66),searchablemay stand in for the in-content field; its prompt repeats the label ("Search guests", never "Search" alone) and the screen title names what is searched. - State in place of the address. The query and its results survive back navigation and the app being closed by the system (
SceneStorage,rememberSaveable,RestorationMixin, or the app's own store). - The action key reads "Search"; Enter submits.
- Announcements. A list that filters while the person types announces the new count (D-APP-52); focus never moves while they type.
- The keyboard. Scrolling the results may dismiss the keyboard; the field never hides behind it (D-APP-36).
- Right to left.
searchat the inline start and "Clear search" at the inline end, neither mirrored.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | in content: the text field row with the leading search icon and a trailing "Clear search" icon button; in a system navigation bar: searchable(text:placement:prompt:) |
submitLabel(_:) search; onSubmit(of:_:); scrollDismissesKeyboard(_:) on the results; the query in SceneStorage |
the field adds accessibilityAddTraits(_:) isSearchField; "Clear search" is a button with that name; post the count as an Announcement |
| Jetpack Compose | OaitTextField with the leading search icon and a trailing OaitIconButton "Clear search" |
KeyboardOptions imeAction Search; singleLine true; the query in rememberSaveable |
the field's name is its label; "Clear search" is the icon button's contentDescription; the count through liveRegion |
| Android Views | TextInputLayout as in the text field row, with app:startIconDrawable search and app:endIconMode clear_text |
android:imeOptions actionSearch (IME_ACTION_SEARCH); android:inputType text |
the count goes to a status view marked with setAccessibilityLiveRegion; set app:endIconContentDescription "Clear search" |
| Flutter | TextField as in the text field row, with prefixIcon search and a suffixIcon IconButton "Clear search" |
textInputAction TextInputAction search; the query restored through RestorationMixin |
the count through Semantics liveRegion; the clear button's tooltip names it |
| React Native | OaitTextField with the leading search icon and a trailing OaitIconButton "Clear search" |
enterKeyHint search; onSubmitEditing runs the query |
the field takes accessibilityRole search; announce the count with announceForAccessibility (iOS) and accessibilityLiveRegion (Android) |
Do and do not in apps
| Do | Do not |
|---|---|
| Keep the visible label on an in-content search field. | Use Material's search bar with the label as its placeholder. |
| Restore the query and the results when the person comes back. | Clear the search on back navigation. |
Checkbox, radio, and switch
Checkbox, radio, and switch · In apps: used as is. The family draws its own boxes, radios, and switch on every stack. Compose, Views, and Flutter reach the family's look by tinting their Material controls; Compose's Material switch has the same 52 × 32 track with a 2dp outline and the 16 and 24dp thumb (Material 3 switch tokens), and takes an icon in its thumb. SwiftUI draws all three, because iOS has no checkbox or radio control (the checkbox toggle style is macOS only) and the system switch has its own look.
What stays identical
- Anatomy: the 48dp label row with a 20dp box at the inline start, hints and counts; the group with its legend; the switch row with the 64 × 48 hit area, the 52 × 32 track, the 16 and 24dp thumb, and the check when on (Checkbox, radio, and switch: Anatomy, Variants, Sizes, Tokens).
- States: checked
primary-inkfill with asurfacetick, indeterminate bar, error under the legend, disabled mixes (Checkbox, radio, and switch: States). - A switch applies at once and confirms with a snackbar and Undo; a form that is submitted later uses checkboxes (Checkbox, radio, and switch: Behavior).
- Words in three languages (Checkbox, radio, and switch: Content).
What changes in an app
- The whole row is one element. A press anywhere on the row toggles it, and screen readers read the label, the state, and the hint once (D-APP-50).
- Haptics. A selection tick when a switch changes, optional (D-APP-31). The iOS system switch plays its own; the drawn OAIT switch adds it.
- Motion. The thumb slides over
duration-short-4withease-standardand jumps under reduced motion (D-APP-30). - Hardware keyboards. Space toggles; arrow keys inside a radio group follow the platform's own focus movement.
- Large text. Rows scale and wrap; the box and the switch keep their size and center on the first line.
- Right to left. The box sits at the inline start; the switch's on position is the inline end, so the thumb slides left in Arabic.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | checkbox and switch: Toggle with a custom ToggleStyle that draws the box or the track from isOn; radio: no stock control, compose from Button rows |
box radius-4px, 2dp outline edge, checked primary-ink with the surface tick; radio ring outline, checked primary-ink with the dot; track 52 × 32 (surface-container-highest with a 2dp outline border off, primary-ink on); thumb outline 16 off, surface-container-lowest 24 on with the check at size-icon-xs in primary-ink; row minimum height size-touch-target, padding space-3, label body-lg, setting name title-sm; haptic: sensoryFeedback(_:trigger:) selection |
the Toggle keeps its toggle semantics and its label names it; radio rows: accessibilityAddTraits(_:) isSelected on the chosen one, the group accessibilityElement(children:) contain named by its legend |
| Jetpack Compose | OaitCheckbox, OaitRadio, and OaitSwitch, which wrap Checkbox and TriStateCheckbox, RadioButton, and Switch |
CheckboxDefaults colors with checkedColor primary-ink, uncheckedColor outline, checkmarkColor surface; RadioButtonDefaults colors with selectedColor primary-ink, unselectedColor outline; SwitchDefaults colors with checkedTrackColor primary-ink, checkedThumbColor surface-container-lowest, checkedIconColor primary-ink, checkedBorderColor transparent, uncheckedTrackColor surface-container-highest, uncheckedThumbColor outline, uncheckedBorderColor outline; thumbContent the check when on; haptic: HapticFeedbackType ToggleOn and ToggleOff |
the row carries toggleable (Role Checkbox or Switch) or selectable (Role RadioButton) and the control's own callback is null; radio groups add selectableGroup |
| Android Views | MaterialCheckBox, MaterialRadioButton in a RadioGroup, and MaterialSwitch |
checkbox app:buttonTint state list (outline, primary-ink) and app:buttonIconTint surface; radio app:buttonTint; switch app:trackTint (surface-container-highest, primary-ink), app:thumbTint (outline, surface-container-lowest), app:trackDecorationTint outline, app:thumbIcon the check with app:thumbIconTint primary-ink; minimum height size-touch-target; haptic: HapticFeedbackConstants TOGGLE_ON and TOGGLE_OFF |
the label is the control's own text, so the row is one view with its checked state |
| Flutter | CheckboxListTile, RadioListTile in a RadioGroup, and SwitchListTile; or Checkbox, Radio, and Switch in a MergeSemantics row |
checkbox fillColor (primary-ink when selected), checkColor surface, side 2dp outline; switch trackColor (surface-container-highest, primary-ink), thumbColor (outline, surface-container-lowest), trackOutlineColor outline, thumbIcon the check; tiles controlAffinity ListTileControlAffinity leading for boxes and radios; haptic: HapticFeedback selectionClick |
each list tile is read as one element with its checked or toggled state (check on a device); Radio groupValue is deprecated, so groups use RadioGroup |
| React Native | OaitCheckbox, OaitRadio, and OaitSwitch, drawn on Pressable rows (React Native has no core checkbox or radio, and the core Switch takes colors only (trackColor, thumbColor), with no icon in its thumb) |
the drawn parts and colors of the SwiftUI row; row minHeight size-touch-target; haptic: Expo's selectionAsync |
accessibilityRole checkbox, radio, or switch; accessibilityState checked (mixed for indeterminate); radio groups in a radiogroup; the row's text is the name |
Do and do not in apps
| Do | Do not |
|---|---|
| Draw the OAIT switch, with its check, on iOS. | Tint the iOS system switch and call it the family's switch. |
| Make the label row the target and the accessibility element. | Leave the 20dp box as the only target, or read the label and the box as two elements. |
Choice card
Choice card · In apps: used as is. The card-shaped option with its visible radio or checkbox carries over; it is built from the same parts as the checkbox, radio, and switch row inside a card surface.
What stays identical
- Anatomy: the card at least 56dp tall, the indicator at the inline start, the optional icon, title, and description; groups 8dp apart; radio cards, checkbox cards, the grid, the Likert scale, and consent (Choice card: Anatomy, Variants, Sizes, Tokens).
- States: the selected fill with a 2dp
primary-inkedge that does not shift the content, the description kept inon-surface-variant(Choice card: States). - Words: legends as questions, short parallel titles, Likert labels, consent sentences (Choice card: Content).
What changes in an app
- One element per card. The card is the target and the accessibility element, with the radio or checkbox role and its checked state; its title and description are read once.
- The 2dp edge. The second 1dp line is drawn inside the card, so the content never moves when the card is selected.
- Window width. The grid goes to three columns from 640dp and the Likert scale to five from 1024dp of window width (D-APP-34), only where the group spans the content column; inside a narrow form the cards stay stacked.
- Focus. The ring draws on the whole card for keyboard focus only (D-APP-33).
- Large text. Cards grow; titles wrap.
- Right to left. The indicator and icon sit at the inline start; grids and scales fill from it.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no direct equivalent: compose from a Button (radio) or a Toggle (checkbox) with a custom style around an HStack |
shape RoundedRectangle at radius-box; fill surface-container-lowest (selected primary-container); edge through strokeBorder(_:lineWidth:antialiased:), 1dp outline-variant or 2dp primary-ink when selected, drawn inside the shape; padding space-3 and space-4; gap space-4; title title-sm (selected on-primary-container); description body-md in on-surface-variant; icon size-icon-lg |
accessibilityElement(children:) combine; accessibilityAddTraits(_:) isSelected on the chosen card; the group named by its legend |
| Jetpack Compose | a Surface holding OaitRadio or OaitCheckbox with a null callback |
shape radius-box; color surface-container-lowest (selected primary-container); border BorderStroke 1dp outline-variant, or 2dp primary-ink when selected, with the padding reduced by the extra 1dp so nothing shifts; padding space-3 and space-4; title title-sm; description body-md |
the card carries selectable with Role RadioButton, or toggleable with Role Checkbox; the group selectableGroup |
| Android Views | MaterialCardView with android:checkable, holding a MaterialRadioButton or MaterialCheckBox as the indicator |
app:strokeColor checked state list (outline-variant, primary-ink) and app:strokeWidth; app:cardBackgroundColor checked state list (surface-container-lowest, primary-container); app:shapeAppearance radius-box; check on a device that the 2dp edge does not shift the content |
the card reports the indicator's class and checked state through setAccessibilityDelegate with setClassName, setCheckable, and setChecked; the inner indicator is not important for accessibility |
| Flutter | RadioListTile in a RadioGroup, or CheckboxListTile |
shape RoundedRectangleBorder at radius-box with the side outline-variant, 2dp primary-ink when selected; tileColor surface-container-lowest and selectedTileColor primary-container; controlAffinity leading; title title-sm, subtitle body-md |
each tile is read as one element with its checked state (check on a device) |
| React Native | a Pressable card holding the drawn indicator of OaitRadio or OaitCheckbox |
borderRadius radius-box; borderWidth 1 and borderColor outline-variant (selected primary-ink) plus an absolutely positioned inner 1dp line when selected, so nothing shifts; backgroundColor surface-container-lowest (selected primary-container); padding space-3 and space-4 |
accessibilityRole radio or checkbox with accessibilityState checked; the group a radiogroup |
Do and do not in apps
| Do | Do not |
|---|---|
| Draw the selected edge inside the card. | Thicken the border so the title moves. |
| Read the card as one radio or checkbox. | Expose the card, the indicator, and the title as three elements. |
Sign in with Global ID
Sign in with Global ID · In apps: used, adapted. Global ID releases the kit as HTML and CSS files; an app cannot load them. Until Global ID releases a native kit, an app draws the pill from the kit's fixed values exactly as the component page lists them, never from the product's tokens, with the platform's system font, and a press opens the system browser's sign-in session (D-APP-46). Global ID's own app does not show it: its sign-in screens are where the kit leads.
What stays identical
- The full pill: at least 56dp tall, full width, the 28dp logo, the visible label "Global ID" in Latin, the light and dark variants, the fixed colors that read no token (Sign in with Global ID: Anatomy, Variants, Tokens).
- States: the fixed hover tone with a pointer, the ring in the kit's fixed inks, no pressed look, disabled while sign-in starts (Sign in with Global ID: States).
- Placement first on the sign-in card, then "or", then the product's own fields; the localized accessible name; the retry words (Sign in with Global ID: Behavior, Content).
What changes in an app
- The flow. A press starts the product's own sign-in start and opens it in the system browser session:
ASWebAuthenticationSession(or SwiftUI'sWebAuthenticationSession) on iOS, Custom Tabs on Android, never an embedded web view. The session returns to the app through its registered redirect. While it is open, the pill is disabled; when the person cancels or it fails, the pill is enabled again and the error banner says so. - The circle. Not used in apps: app top bars carry no sign-in control, and the sign-in screen uses the full pill.
- The font. The kit's
system-uiis the platform's system font, 16 at weight 600, scaled with the user's text size; the pill grows from 56dp (D-APP-17). - Theme. The dark pill in the dark theme and on dark grounds; the light pill otherwise.
- Direction. The pill is left to right in every language; only the accessible name changes. The Arabic name keeps its U+2066 and U+2069 isolates as a plain string.
- No state layer. The kit has no pressed look, so the platform's ripple and highlight are switched off on it.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | Button with a custom ButtonStyle; the flow through webAuthenticationSession (WebAuthenticationSession, iOS 16.4) or ASWebAuthenticationSession |
no tokens: fill, border, label, and logo inks from the kit's fixed values; shape Capsule; label system(size:weight:design:) at 16 and semibold, the size a ScaledMetric; padding 12 and 24, logo 28, as the kit lists them; no pressed overlay; left to right through environment(_:_:) with layoutDirection |
accessibilityLabel(_:) "Sign in with Global ID", localized; the logo accessibilityHidden(_:) |
| Jetpack Compose | Surface with onClick, or Button with fixed colors; the flow through CustomTabsIntent |
no tokens: the kit's fixed colors as Color values, not theme roles; shape CircleShape; ripple off with LocalRippleConfiguration provides null; LocalLayoutDirection provides LayoutDirection Ltr |
semantics contentDescription "Sign in with Global ID", localized, on the merged button; the logo's contentDescription null |
| Android Views | MaterialButton with fixed colors; the flow through CustomTabsIntent |
app:backgroundTint, app:strokeColor, and android:textColor from the kit's fixed values; app:icon the two-color logo, untinted; app:rippleColor transparent; layout direction left to right |
android:contentDescription "Sign in with Global ID", localized |
| Flutter | OutlinedButton with a fixed ButtonStyle; the flow through the flutter_web_auth_2 package, which uses ASWebAuthenticationSession on iOS |
the kit's fixed colors; overlayColor transparent and splashFactory NoSplash; shape StadiumBorder; Directionality left to right |
Semantics label "Sign in with Global ID", localized, button true, excludeSemantics true |
| React Native | Pressable with fixed colors; the flow through Expo's openAuthSessionAsync |
the kit's fixed colors; no android_ripple and no pressed style; direction ltr |
accessibilityRole button; accessibilityLabel "Sign in with Global ID", localized |
Do and do not in apps
| Do | Do not |
|---|---|
Open the sign-in in ASWebAuthenticationSession or Custom Tabs. |
Load Global ID's sign-in page in an embedded web view. |
| Draw the pill from the kit's fixed values. | Rebuild it with the product's tokens, radius, or font. |
Sources
Every name in the tables was confirmed on these pages, opened on 2026-11-21. Apple pages were read through their documentation data, which holds the same declarations and availability as the page.