Containers, overlays, and feedback in apps
How each container, overlay, and feedback 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; actions and inputs 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
- Containers: Card · Panel · List · Divider · Data table · Accordion · Avatar · Badge
- Overlays: Dialog · Bottom sheet · Side sheet · Menu and popover · Tooltip
- Feedback: Snackbar · Banner · Progress · Skeleton · Empty state · Status indicator
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. "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 (
outline-variant), every other family with its family word (radius-card,space-card,size-list-row,opacity-state-pressed,shadow-elevation-3,duration-short-3,ease-emphasized,container-dialog), and type styles by name (title-md). Each stack spells the same name in its own case:outlineVariant,radiusCard,oait_color_outline_variant(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, its name (the component's name with theOaitprefix) is the first choice in the Compose and React Native rows; no other row names a kit component. The Compose kit draws its components on Compose foundation layouts, so the Material control after a Compose kit name is where a team without the kit starts; the React Native rows name what the kit is drawn on. The kit's source is the reference for how each one is built. 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-ink, so stock components draw legible text and outlines. The rows below still set every color by its OAIT role, because a Material default can change between releases. - Shared app rules apply to every section and are not repeated: pressed is the 12% layer of the content color, a bounded ripple on Android and a fade on iOS, and hover exists only with a pointer (D-APP-32); keyboard and switch focus draws the OAIT ring where the kit draws the control, and the system indicator where the system draws focus (D-APP-33); targets are at least 48dp on every platform (D-APP-49); every text style scales with the user's setting, and fixed heights become minimum heights (D-APP-17); back closes the topmost overlay first (D-APP-42); reduced motion turns OAIT motion off (D-APP-30); status messages are announced (D-APP-52).
- What is not verified here. Names were confirmed on the vendor pages, not run on a device; a row that needs a device check says so. The kits' own components are described by D-APP-62 and checked in the kits, not on this page.
- Large text. Capped text scaling applies only to the navigation chrome that D-APP-18 names (navigation bar labels, top app bar titles, tabs, segmented buttons). Every component on this page scales its text fully unless its section says it holds fixed-geometry art.
- Platform names. Every control and property in the tables links to the vendor page where its name was confirmed: Apple's SwiftUI and Accessibility documentation, Android Developers for Compose and Views, the
material_uipackage and the Flutter API reference, and the React Native docs, at the versions of D-APP-03. React Native style names in the tables (backgroundColor,borderRadius,borderWidth,borderColor,boxShadow,minHeight,maxWidth,maxHeight,paddingHorizontal,alignItems,height) are those ofViewstyle props and layout props. "Experimental" marks a Compose API that needs@OptIn(ExperimentalMaterial3Api::class)in Material 3 1.4.
Card
Card · In apps: used, adapted. The whole card is one pressable target, because a native view has no stretched link; the hover shadow and edge never show on touch.
What stays identical
- Anatomy, the six variants and their roles, padding by window width, one corner (
radius-card,radius-sheetfor the floating card), and the tokens of each part (Card: Variants, Sizes, Tokens). - States: pressed is the 12% layer; no disabled or selected card; loading draws skeleton blocks in the card's layout (Card: States).
- Words: title, body, meta, and placeholder rules, and the Arabic sample (Card: Content).
What changes in an app
- Touch. The pressed layer is the only feedback; the hover state (
shadow-elevation-3,outlineedge) applies only while a pointer hovers (D-APP-32). - One target, raised controls apart. The card's press opens its place; save, more, and other raised controls are their own elements above it with their own names, so they never sit inside the card's button (canonical §10.10). Long press adds nothing unless the product gives the card a context menu, and then the same actions are in the card's "More" button (D-APP-44).
- Shadow. The elevated and floating cards draw
shadow-elevation-1by the layer mapping of D-APP-15; dark depth comes fromcard-elevated-container, never from tonal elevation (D-APP-24). - Width. Padding switches from
space-cardtospace-card-mediumat 640dp of window width, and grids go to two columns at 640dp and three at 1024dp (D-APP-34). - Large text. Scales fully; the card grows and cards in a row share the tallest height.
- Right to left. The header's actions sit at the end and
chevron_rightorarrow_forwardmirror through the icon registry (D-APP-25). - Kit scope. The kits build outlined, elevated, and filled cards, pressable or not (D-APP-62). Tonal, dashed, and floating cards are the same component with the colors and edge of their row on the card page.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no stock card: compose from a Button whose label is a VStack with background(_:in:fillStyle:) in a RoundedRectangle, and raised controls placed over it in a ZStack |
corner radius-card; fill card-outlined-container (filled surface-container-low, elevated card-elevated-container); edge 1dp outline-variant through strokeBorder(_:lineWidth:antialiased:); padding space-card; pressed opacity-state-pressed of on-surface from isPressed in a custom ButtonStyle; title title-md, body body-lg |
the button's name is the title (accessibilityLabel(_:)); raised controls stay separate elements named for their item ("Save job: Frontend Developer (React)") |
| Jetpack Compose | OaitCard; without the kit, OutlinedCard, ElevatedCard, and Card (their onClick overloads) |
shape radius-card; CardDefaults colors with containerColor card-outlined-container (elevated card-elevated-container, filled surface-container-low); border 1dp outline-variant; elevation 0 and shadow-elevation-1 through dropShadow for the elevated card (D-APP-15); padding space-card; pressed through the theme ripple (D-APP-32) |
the onClick card merges its children into one button; raised controls sit outside its content, or are customActions (CustomAccessibilityAction) when they cannot |
| Android Views | MaterialCardView |
setRadius radius-card; setCardBackgroundColor card-outlined-container; setStrokeColor outline-variant with setStrokeWidth 1dp; setCardElevation 0, or 1dp for the elevated card (D-APP-15); setRippleColor on-surface at opacity-state-pressed; type title-md from the generated text appearances |
a clickable card is one focusable view whose name is the title; raised controls are separate views, or actions through addAccessibilityAction |
| Flutter | Card with its Card.outlined and Card.filled constructors, holding an InkWell |
shape with radius-card and a 1dp outline-variant side; color card-outlined-container; elevation 0 and a shadow-elevation-1 box shadow for the elevated card; padding space-card; overlayColor pressed opacity-state-pressed; on iOS splashFactory NoSplash so the press is a fade (D-APP-32) |
semanticContainer true; the InkWell gives the tap; wrap the content in MergeSemantics so the card is read once |
| React Native | OaitCard, drawn on Pressable and a View |
borderRadius radius-card; backgroundColor card-outlined-container; borderWidth 1 and borderColor outline-variant; boxShadow from shadow-elevation-1 for the elevated card (boxShadow); padding space-card; pressed layer from the style function, android_ripple at opacity-state-pressed |
role button; accessibilityLabel the title; raised controls as separate Pressables, or accessibilityActions with onAccessibilityAction |
Do and do not in apps
| Do | Do not |
|---|---|
| Make the card one button and keep its raised controls outside that button. | Nest a button inside the card's button, or make the card and its title two targets. |
| Repeat a long-press action in the card's "More" button. | Hide an action behind long press alone. |
Show depth in dark with card-elevated-container. |
Turn on Material tonal elevation or surface tint. |
Panel
Panel · In apps: used, adapted. App screens use the tonal panel (the sign-in frame, a wide screen's highlight) and, rarely, the primary panel. The hero and the inverse band are landing-page blocks: an app screen does not use them, and an app shows marketing through its own screens instead (canonical §10.11).
What stays identical
- The 32dp corner (
radius-hero), the transparent edge, no shadow, and the tones' fills and text roles (Panel: Variants, Tokens). - Padding steps by window width:
space-5,space-10from 640dp,space-16from 1024dp (Panel: Sizes). - One primary panel per screen; panels sit inside the gutter and never bleed (Panel: Behavior).
What changes in an app
- Inside the gutter and the safe area. The panel sits inside the 16dp or 24dp gutter, plus the side insets (D-APP-35).
- Decoration. Kit shapes are drawn as vector shapes clipped by the panel, hidden from assistive technology; anything that moves for more than 5 seconds needs the Pause control (Pause control).
- No inverse band in apps. Because the inverse band is not used, nothing re-points the ring or link colors on a subtree.
- Large text. Scales fully; the panel grows.
- Right to left. Shapes are placed by start and end, so they mirror.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no direct equivalent: compose from a VStack with background(_:in:fillStyle:) in a RoundedRectangle |
corner radius-hero; fill surface-container-low (primary primary-container); text on-surface (on-primary-container); padding space-5 to space-16 by width |
the panel's heading takes isHeader through accessibilityAddTraits(_:); decoration accessibilityHidden(_:) |
| Jetpack Compose | Surface (no kit component) |
shape radius-hero; color surface-container-low; contentColor on-surface; tonalElevation and shadowElevation 0 |
the heading gets heading() in semantics; decoration has contentDescription null |
| Android Views | a LinearLayout with a GradientDrawable background |
setCornerRadius radius-hero; setColor surface-container-low; padding from oait_space_* |
the heading view takes setAccessibilityHeading; decoration setImportantForAccessibility no |
| Flutter | Container with a BoxDecoration |
borderRadius radius-hero; color surface-container-low; padding by width |
the heading in Semantics with headingLevel; decoration in ExcludeSemantics |
| React Native | a View (no kit component) |
borderRadius radius-hero; backgroundColor surface-container-low; padding by width |
the heading takes role heading; decoration aria-hidden |
Do and do not in apps
| Do | Do not |
|---|---|
| Use the tonal panel for the sign-in frame. | Put a landing hero or the dark band on an app screen. |
| Clip decoration inside the panel and hide it from screen readers. | Let a shape animate without a Pause control. |
List
List · In apps: used, adapted. Rows grow with the text, pull to refresh and swipe actions are allowed with visible tap alternatives, and the pressable row draws the OAIT chevron_right, not a system disclosure glyph.
What stays identical
- Anatomy, the three row heights as minimums (
size-list-row,size-list-row-two-line,size-list-row-three-line), padding, hairlines inoutline-variant, and the key–value rows (List: Anatomy, Sizes, Tokens). - A row is pressable as a whole or holds controls, never both; locked values say why (List: Behavior).
- Member lists show five rows, then "Show {count} more"; no numbered pages and no endless loading (D-CSN-18). A lazy list container that draws only the visible rows is a rendering detail and does not change this rule.
- Words: headlines, supporting text, and the three-language strings (List: Content).
What changes in an app
- Large text. Rows grow past their minimum height with the text and the Arabic line heights; nothing truncates. Supporting text stays at two lines by writing less.
- Width rule. Key–value rows stack below 640dp of container width and sit on one row from 640dp, measured on the list's container, not the window (D-LAY-02).
- Gestures. Pull to refresh is allowed with the platform's control tinted
primary-ink, and the screen keeps a visible Refresh action. Swipe actions on a row repeat in the row's menu or its detail screen (D-APP-44). - Disclosure glyph. The pressable row ends in the mirrored
chevron_rightfrom the OAIT icon font (D-APP-25), drawn by the row itself on every stack. On iOS, build the row as a button that pushes the next screen, so the row draws only that chevron. - One element per row. A row with a label and a switch is one accessibility element that reads the headline, the supporting text, and the switch state (D-APP-50).
- Haptics. None on the row; a switch in a row keeps its own selection tick (actions and inputs).
- Right to left. The start inset is on the right; IDs, phone numbers, and emails stay left to right inside the row (canonical §14.2).
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | List with listStyle(_:) PlainListStyle; pressable rows are Button rows that push through the NavigationStack path; key–value rows from LabeledContent |
listRowInsets(_:) space-row-inset (start space-row-inset-medium from 640dp); listRowSeparatorTint(_:edges:) outline-variant; listRowBackground(_:) card-outlined-container; defaultMinListRowHeight size-list-row; headline title-sm, supporting body-md in on-surface-variant; swipe through swipeActions(edge:allowsFullSwipe:content:), refresh through refreshable(action:) |
a row with controls reads as one element through accessibilityElement(children:) .combine; the list card's heading takes isHeader |
| Jetpack Compose | OaitList, OaitListRow, and OaitDivider in a LazyColumn or Column; without the kit, ListItem and HorizontalDivider |
ListItemDefaults colors with containerColor card-outlined-container; headline title-sm, supporting body-md in on-surface-variant; HorizontalDivider thickness 1dp, color outline-variant; refresh through PullToRefreshBox, swipe through SwipeToDismissBox; key–value layout by width in BoxWithConstraints |
pressable row: clickable with onClickLabel; row with a switch: toggleable on the row with role Role Switch, and the switch itself without its own handler |
| Android Views | RecyclerView with MaterialDividerItemDecoration; refresh through SwipeRefreshLayout |
divider color outline-variant and thickness 1dp; row minimum height size-list-row; padding oait_space_row_inset; headline and supporting text appearances title-sm, body-md; setColorSchemeColors primary-ink |
a row with a switch is one focusable view whose name joins the headline and the supporting text, with the switch's state in setStateDescription |
| Flutter | ListTile in ListView.separated with Divider; refresh through RefreshIndicator, swipe through Dismissible; key–value layout in LayoutBuilder |
minTileHeight size-list-row; contentPadding space-row-inset; titleTextStyle title-sm, subtitleTextStyle body-md; tileColor card-outlined-container; Divider thickness 1, color outline-variant |
a row with a switch: MergeSemantics around the tile; locked rows carry their reason in the subtitle |
| React Native | OaitList, OaitListRow, and OaitDivider in a FlatList or SectionList; refresh through RefreshControl |
minHeight size-list-row; padding space-row-inset; ItemSeparatorComponent a 1dp outline-variant view; headline title-sm, supporting body-md; refresh colors and tintColor primary-ink |
pressable row: role button and accessibilityLabel headline then supporting text; row with a switch: one element with accessibilityState checked |
Do and do not in apps
| Do | Do not |
|---|---|
| Let rows grow with the text. | Fix row heights or truncate a headline. |
| Repeat every swipe action in the row's menu, and keep a Refresh action beside pull to refresh. | Make a swipe or a pull the only way to an action. |
Draw the OAIT chevron_right, mirrored in Arabic. |
Take a chevron from another icon set. |
| Keep "Show {count} more" on member lists. | Load more rows by themselves as the person scrolls. |
Divider
Divider · In apps: used as is. The hairline is 1dp (1pt, one logical pixel), not one physical pixel.
What stays identical
- One color,
outline-variantat full strength; the inset start of 72dp, 80dp from 640dp; the "or" divider between two ways to do the same thing (not on the sign-in screen, D-BCP-43) (Divider: Variants, Sizes, Tokens). - Dividers add no margins of their own; the parent's gap places them (Divider: Behavior).
What changes in an app
- Width. 1dp in every stack. A platform "hairline" constant, whose size varies with the platform and the screen density, is not the OAIT hairline.
- The "or" divider is plain text between two drawn lines, so a screen reader reads "or"; the lines are hidden.
- Increased contrast. When the system asks for more contrast, the kits draw hairlines in
outlineinstead ofoutline-variant(D-APP-28). - Right to left. The inset starts at the start edge, the right in Arabic.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | compose from a Rectangle with frame(width:height:alignment:) height 1, rather than Divider, so the height and the color are the tokens' |
fill outline-variant; inset through leading padding (leading follows the direction) |
the line is accessibilityHidden(_:); "or" is a Text |
| Jetpack Compose | OaitDivider and OaitOrDivider; without the kit, HorizontalDivider |
thickness 1dp; color outline-variant; inset through start padding |
none needed: the divider is not focusable |
| Android Views | MaterialDivider |
setDividerColor outline-variant; setDividerThickness 1dp; setDividerInsetStart 72dp (80dp from 640dp) |
not focusable |
| Flutter | Divider |
thickness 1; height 1 (the parent spaces it); color outline-variant; indent for the inset |
the "or" word is a Text; the two lines sit in ExcludeSemantics |
| React Native | OaitDivider and OaitOrDivider, drawn on a View |
height 1 (not hairlineWidth, whose size varies with the platform and the density); backgroundColor outline-variant |
lines aria-hidden; the "or" word is a Text |
Do and do not in apps
| Do | Do not |
|---|---|
Draw 1dp lines in outline-variant. |
Use a platform hairline constant or the system separator color. |
Table
Data table · In apps: used, adapted. Member screens never show a table: their data is list rows or key–value cards, as on the web. A console screen in an app keeps the table: from 768dp it sits in its region; below 768dp the region scrolls sideways and keeps every column. The pager becomes previous and next buttons that load the next page of results in place.
What stays identical
- Anatomy, the row heights (
size-table-header,size-table-row, compactsize-menu-itemfrom 768dp only), cell padding, the selection column, the ticked-row tint, the bulk bar, and the tokens (Data table: Anatomy, Sizes, Tokens). - One record link per row, in the row header; rows are not pressable; sort and row-action rules (Data table: Behavior).
- Words: headers, empty values, the bulk bar's count and actions (Data table: Content).
What changes in an app
- Which screens. Consoles (the drawer pattern, D-APP-39) only. Whether a product ships its console as a native app is the product's decision (D-APP-04).
- Phones. No stock table keeps every column on a narrow window: SwiftUI's table shows only its first column in a compact width, and Material 3 for Compose has no data table. Compose the region from rows inside a sideways scroll, at the width the columns need.
- Paging. "Showing {from}–{to} of {total}" stays; previous and next are 48dp buttons that replace the rows in place and move focus to the first new row.
- Live count. The bulk bar's count is announced when it changes (D-APP-52).
- Large text. Cells scale; headers and IDs never wrap, so the region scrolls further.
- Right to left. The selection column is at the right in Arabic; sort arrows never mirror; IDs stay left to right.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | Table from 768dp; below 768dp compose from a ScrollView (horizontal) holding a Grid of GridRows, because Table shows one column in a compact width |
header label-md in on-surface-variant; cells body-md; row rules outline-variant; region fill card-outlined-container, corner radius-box; ticked rows primary-container at 30% |
the record link is the row's only button; the count line is announced with AccessibilityNotification.Announcement |
| Jetpack Compose | no Material 3 table: compose from rows in a Column (or a LazyColumn of a fixed width) inside horizontalScroll |
as SwiftUI; header height size-table-header, rows size-table-row |
collectionInfo on the region and collectionItemInfo on cells; the count in a liveRegion of LiveRegionMode Polite |
| Android Views | a RecyclerView of rows inside a HorizontalScrollView |
as SwiftUI | the bulk bar's count view takes setAccessibilityLiveRegion polite |
| Flutter | DataTable inside a SingleChildScrollView (horizontal) |
headingRowHeight size-table-header; dataRowMinHeight size-table-row; headingTextStyle label-md; dataTextStyle body-md; dividerThickness 1 |
the count in Semantics with liveRegion |
| React Native | no core table: compose from rows in a FlatList inside a ScrollView with horizontal |
as SwiftUI | record link role button; the count with accessibilityLiveRegion on Android and announceForAccessibility on iOS |
Do and do not in apps
| Do | Do not |
|---|---|
| Turn member data into list rows or key–value cards. | Show a table on a member screen. |
| Let a console table scroll sideways on a phone. | Use a stock table that drops columns on narrow windows. |
Accordion
Accordion · In apps: used, adapted. An expandable row with expanded and collapsed state for assistive technology. The panel appears in place, as on the web: platform expansion widgets that animate the height are set not to.
What stays identical
- Anatomy, the 64dp default row and the 48dp compact row as minimums,
title-smlabels, theexpand_morechevron at the end turning 180° overduration-short-4, the panel's padding and type (Accordion: Anatomy, Sizes, Tokens). - Several rows may be open; the panel's height never animates; questions are not headings (Accordion: Behavior).
- Words: questions in the person's words, direct answers (Accordion: Content).
What changes in an app
- The control. One tap toggles; the row reports "expanded" or "collapsed" through the platform's state, not through words in its name.
- Large text. Scales fully; rows grow.
- Reduced motion. The chevron turns at once.
- Right to left. The chevron sits at the end (the left in Arabic) and does not mirror.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | DisclosureGroup with a custom DisclosureGroupStyle that draws the OAIT row and chevron |
row minimum 64dp; padding space-5 block, space-row-inset inline; label title-sm; chevron on-surface-variant; panel body-md in on-surface-variant; hairlines outline-variant; the content appears without a height animation |
the style's label is a button that toggles isExpanded, and says the state with accessibilityValue(_:) ("Expanded", "Collapsed" in the screen's language); the chevron is accessibilityHidden(_:) |
| Jetpack Compose | no stock accordion: compose from a Row with clickable and the panel shown or removed in place |
as SwiftUI; pressed through the theme ripple | expand and collapse actions with stateDescription ("Expanded", "Collapsed" in the screen's language); role Role Button |
| Android Views | no direct equivalent: compose from a clickable row view and a panel view shown or gone | as SwiftUI | replaceAccessibilityAction with ACTION_EXPAND or ACTION_COLLAPSE, and setStateDescription |
| Flutter | ExpansionTile |
expansionAnimationStyle AnimationStyle.noAnimation (the chevron then turns at once too); minTileHeight 64; tilePadding space-row-inset; trailing the OAIT expand_more, turned by the app from onExpansionChanged; shape and collapsedShape with no border |
the tile announces "expanded" and "collapsed" itself (a live region on Android); the trailing icon has no semantic label |
| React Native | no core accordion: compose from a Pressable row and a panel View |
as SwiftUI | role button with aria-expanded |
Do and do not in apps
| Do | Do not |
|---|---|
| Show the panel in place. | Keep a platform widget's height animation. |
| Expose the expanded state through the platform. | Write "expanded" into the row's label. |
Avatar
Avatar · In apps: used, adapted. Photos come through the app's image loader with the same fallbacks, and the avatar is fixed-geometry art: its initials keep their size while the name beside it scales.
What stays identical
- The circle for people and the rounded square for organizations, the three person sizes (
size-avatar-sm,size-avatar-md,size-avatar-lg), the initials rule, the fills, and the stack's overlap and ring (Avatar: Variants, Sizes, Tokens). - Fallback order: photo, then initials, then the
personicon; never stock or generated people (Avatar: Behavior).
What changes in an app
- Photos. Photos are short-lived URLs: load them with the app's image loader, keep them out of shared caches when the session ends, and show the initials while loading and after a failure.
- Large text. The avatar keeps its size, and its initials keep
round(size × 0.36), as fixed-geometry art does (D-APP-18). The person's name beside it is real text and scales; an avatar on its own carries the name in its accessibility label. - Right to left. Avatars sit at the start of their row; a stack overlaps toward the end; initials are never reordered.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | AsyncImage (its AsyncImagePhase gives the fallback) clipped by clipShape(_:style:) to a Circle |
size size-avatar-sm; fill primary-container; initials on-primary-container, bold; organizations surface-container-high with radius-box |
beside the name: accessibilityHidden(_:); alone: isImage with the name as accessibilityLabel(_:) |
| Jetpack Compose | OaitAvatar; for a photo, an Image from the app's loader, clipped to CircleShape |
as SwiftUI | beside the name: contentDescription null; alone: contentDescription the name and role Role Image |
| Android Views | ShapeableImageView with a circular shape appearance |
as SwiftUI; initials as a text view over the fill when there is no photo | beside the name: setImportantForAccessibility no; alone: setContentDescription the name |
| Flutter | CircleAvatar |
radius half of size-avatar-sm; backgroundColor primary-container; foregroundColor on-primary-container; backgroundImage with onBackgroundImageError falling back to the initials |
beside the name: ExcludeSemantics; alone: Semantics with image and label |
| React Native | OaitAvatar; for a photo, an Image (its onError falls back to the initials) |
width and height size-avatar-sm; borderRadius radius-full; fill primary-container |
beside the name: aria-hidden; alone: role img with accessibilityLabel the name |
Do and do not in apps
| Do | Do not |
|---|---|
| Show the initials while the photo loads. | Show an empty circle or a broken image. |
| Keep the name beside the avatar as scalable text. | Rely on the avatar's initials to say who it is. |
Badge
Badge · In apps: used, adapted. The count, icon badge, and dot are the same; the navigation bar is drawn by the app on iOS as on Android, so its badge is the family's (D-APP-66), and the badge on the app's launcher icon belongs to the system and the product's notification setup, not to this component (D-APP-01).
What stays identical
- The three variants and their sizes (24dp count, 16dp icon badge, 6dp dot as component constants),
primarywithon-primaryfor counts,primary-inkfor the dot,label-smwith tabular figures, "99+" above 99 (Badge: Variants, Sizes, Tokens). - The count lives in the host's name; the badge is hidden; zero removes it (Badge: Accessibility).
What changes in an app
- Navigation items. A navigation bar or rail item takes the icon badge (16dp) on its 24dp icon, never the 24dp count badge (Navigation bar).
- Large text. The count's text scales and the pill grows from its minimum height and width.
- Announcements. A count that changes while the person waits is announced by the screen's status message, not by the badge (D-APP-52).
- Right to left. Icon badges and dots sit on the top end corner, the top left in Arabic; "99+" stays left to right.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | compose from a Text in a Capsule placed with overlay(alignment:content:) |
count: height 24dp minimum, fill primary, text on-primary in label-sm, padding space-1-5; dot primary-ink |
the host's accessibilityLabel(_:) carries the words ("Photos waiting: 4"); the badge accessibilityHidden(_:) |
| Jetpack Compose | OaitBadge; without the kit, on icons BadgedBox with Badge |
containerColor primary; contentColor on-primary; text label-sm; dot primary-ink |
the host's contentDescription carries the words; the badge is cleared with clearAndSetSemantics |
| Android Views | BadgeDrawable, attached through BadgeUtils or a navigation bar item |
setBackgroundColor primary; setBadgeTextColor on-primary; setMaxNumber 99 |
the host's setContentDescription carries the words |
| Flutter | Badge and Badge.count |
backgroundColor primary; textColor on-primary; largeSize 16 on icons; smallSize 6 with primary-ink for the dot; isLabelVisible false at zero |
the host's Semantics label carries the words; the badge in ExcludeSemantics |
| React Native | OaitBadge, drawn on a View and a Text |
minHeight 24; borderRadius radius-full; fill primary; text on-primary in label-sm; paddingHorizontal space-1-5 |
the host's accessibilityLabel carries the words; the badge aria-hidden |
Do and do not in apps
| Do | Do not |
|---|---|
| Put the count in the host's name. | Leave a screen reader with a bare number. |
| Use the 16dp icon badge on navigation items. | Put the 24dp count badge on a navigation icon. |
Dialog
Dialog · In apps: used, adapted. From 768dp of window width the OAIT dialog asks the app's own questions; below 768dp the same content opens as the bottom sheet (D-APP-43). System alerts stay only for what the operating system raises (D-APP-41): a destructive confirm in the app is the OAIT dialog or sheet, with Cancel first and the main button at the end, not a system alert.
What stays identical
- Anatomy, one width (
container-dialog, 560dp at most),surface-raisedon thescrim,radius-sheet,shadow-elevation-3, 24dp padding,headline-smtitles, the close button (Dialog: Anatomy, Sizes, Tokens). - The three content types, initial focus by type, the busy state, errors in a banner above the actions, and the confirmation in a snackbar after it closes (Dialog: Variants, Behavior).
- Words: titles that name the thing; "Cancel" and a verb, never "OK", "Yes", or "Are you sure?" (Dialog: Content). The family's order and words override the platform's alert conventions.
What changes in an app
- Ways out. The close button, Cancel, a tap on the scrim, the system back gesture on Android, the Escape key with a hardware keyboard, and the screen reader's escape gesture on iOS. All of them close without acting (D-APP-42).
- Focus. Accessibility focus moves into the dialog, stays there, and returns to the opener on close (D-APP-51). Initial focus follows the type: the first field, Cancel for a destructive confirm, the main button otherwise.
- The keyboard. The dialog shrinks to the space the keyboard leaves; only the body scrolls (D-APP-36).
- Motion. The fade and scale of the web page; under reduced motion it appears at once (D-APP-30).
- Large text. Scales fully; the body scrolls between the fixed header and action row; buttons stack when two labels no longer fit side by side.
- Haptics. None.
- Right to left. The close button at the top left, the action row running right to left.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no restyleable system dialog (alert and confirmationDialog are system UI): compose from an overlay in a ZStack holding the scrim and the container |
scrim scrim; fill surface-raised; corner radius-sheet; shadow-elevation-3 by D-APP-15; width container-dialog; title headline-sm, description body-md in on-surface-variant; Escape through onKeyPress(_:action:) |
the container takes isModal; the title isHeader; accessibilityAction(_:_:) with escape closes; initial focus with accessibilityFocused(_:) and AccessibilityFocusState |
| Jetpack Compose | OaitDialog; without the kit, BasicAlertDialog (forms and long content) and AlertDialog (basic and destructive) |
shape radius-sheet; containerColor surface-raised; tonalElevation 0; title headline-sm, text body-md; DialogProperties usePlatformDefaultWidth false with a width of container-dialog, and dismissOnBackPress and dismissOnClickOutside true |
initial focus through FocusRequester; the title takes heading(); a destructive confirm sets paneTitle to its title |
| Android Views | MaterialAlertDialogBuilder |
setView for form content; setNegativeButton for Cancel and setPositiveButton for the verb (check on a device that Cancel comes first and the verb sits at the end); setBackground surface-raised with corner radius-sheet |
the title view takes setAccessibilityHeading; setCancelable and setCanceledOnTouchOutside true, so back and a scrim tap close it |
| Flutter | showDialog with an AlertDialog, or a Dialog for a form |
barrierColor scrim; backgroundColor surface-raised; shape radius-sheet; elevation 0 with the shadow-elevation-3 box shadow; actions Cancel then the verb, actionsAlignment end; constraints up to container-dialog |
semanticLabel the title; barrierDismissible true; the dialog is a route, so system back pops it (Navigator); initial focus through a FocusNode |
| React Native | OaitDialog, drawn in a Modal with transparent |
scrim scrim; fill surface-raised; borderRadius radius-sheet; maxWidth container-dialog; boxShadow shadow-elevation-3 |
onRequestClose closes on Android back; aria-modal and accessibilityViewIsModal on the container; initial focus with sendAccessibilityEvent with focus |
Do and do not in apps
| Do | Do not |
|---|---|
| Ask the app's own question in the OAIT dialog or sheet. | Use a system alert for an in-app confirm, with its own order and words. |
| Close on back, the scrim, Cancel, and the close button alike. | Block system back while a dialog is open. |
| Show the dialog from 768dp and the sheet below. | Center a dialog on a phone. |
Bottom sheet
Bottom sheet · In apps: used, adapted. Native sheets dismiss by dragging and by system back; that is allowed as an extra way out, and Cancel and the close button always stay (D-APP-43, D-APP-44). A SwiftUI app may show the OAIT content in a system sheet with detents, whose grabber the system draws.
What stays identical
- Anatomy,
surface-raisedwith the top corners atradius-sheet,shadow-elevation-3, the 32 × 4dp handle inoutlineat 40%, at most 90% of the window high andcontainer-dialogwide, the 56dp buttons sharing the row with Cancel outlined (Bottom sheet: Anatomy, Sizes, Tokens). - The dialog's content types, initial focus, busy state, and words (Bottom sheet: Variants, Content).
What changes in an app
- Gesture and its tap alternative. Drag down, tap on the scrim, or system back closes the sheet; Cancel and the close button do the same with one tap (WCAG 2.5.7).
- The handle. Where the platform draws a drag handle that screen readers can use (the iOS grabber, the Compose drag handle), it replaces the decorative OAIT handle; a kit that draws the OAIT handle keeps it hidden from assistive technology.
- Detents. One height: the content's, up to 90% of the window. A sheet that holds tall content (filters) may open at that height directly; the system's medium detent is optional and never hides the actions.
- The keyboard. The sheet lifts with the keyboard so the focused field and the actions stay visible (D-APP-36).
- Safe areas. The bottom padding is 24dp plus the bottom inset, so the buttons clear the home indicator and the gesture bar (D-APP-35).
- Motion. The platform's sheet travel may stand in for the OAIT slide; under reduced motion the sheet appears without travel (D-APP-30).
- Large text. Scales fully; the body scrolls; the two buttons stack when their labels no longer fit.
- Haptics. None.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | sheet(isPresented:onDismiss:content:) holding the OAIT content |
presentationDetents(_:) to the content's height, up to large; presentationDragIndicator(_:) visible; presentationCornerRadius(_:) radius-sheet; presentationBackground(_:) surface-raised |
the system grabber lets VoiceOver users resize the sheet; the title takes isHeader; initial focus with accessibilityFocused(_:) |
| Jetpack Compose | OaitBottomSheet; without the kit, ModalBottomSheet (experimental) |
shape top corners radius-sheet; containerColor surface-raised; scrimColor scrim; tonalElevation 0; dragHandle from BottomSheetDefaults in outline at 40%; rememberModalBottomSheetState with skipPartiallyExpanded true (the 1.5 release candidate deprecates it for rememberBottomSheetState) |
ModalBottomSheetProperties shouldDismissOnBackPress and shouldDismissOnClickOutside true; the title takes heading() and the sheet a paneTitle |
| Android Views | BottomSheetDialog with a BottomSheetDragHandleView |
the sheet's shape appearance with top corners radius-sheet, fill surface-raised; setSkipCollapsed true on its BottomSheetBehavior |
setCancelable true, so back closes it; the sheet takes setAccessibilityPaneTitle |
| Flutter | showModalBottomSheet |
backgroundColor surface-raised; barrierColor scrim; shape top corners radius-sheet; showDragHandle true, with dragHandleColor and dragHandleSize in BottomSheetThemeData; isScrollControlled true; useSafeArea true; constraints up to container-dialog wide |
the sheet is a route, so system back pops it (Navigator); the title in Semantics with headingLevel |
| React Native | OaitBottomSheet, drawn in a Modal with transparent, inside a KeyboardAvoidingView |
top corners radius-sheet; fill surface-raised; scrim scrim; maxHeight 90% of the window; bottom padding 24dp plus the bottom inset |
onRequestClose for Android back; accessibilityViewIsModal on iOS; the title role heading |
Do and do not in apps
| Do | Do not |
|---|---|
| Keep Cancel and the close button in every sheet. | Make dragging the only way to close. |
| Let the sheet lift with the keyboard. | Let the keyboard cover the focused field or the actions. |
| Use the platform's accessible drag handle where it draws one. | Show two handles. |
Side sheet
Side sheet · In apps: used, adapted. Only the console drawer below 768dp remains: a modal drawer from the start edge, opened by the visible "Menu" control under the top app bar. The site header's phone menu is web only; member apps use the navigation bar and rail (D-APP-39).
What stays identical
surface-raised,shadow-elevation-3, the free corners atradius-sheet, 85% of the window up tocontainer-side-sheet, 24dp padding, the "Menu" title intitle-lg, 56dp items (Side sheet: Anatomy, Sizes, Tokens).- Ways out: the close button, a tap on the scrim, choosing an item; focus returns to the "Menu" control (Side sheet: Behavior).
What changes in an app
- Gesture and its tap alternative. A swipe from the start edge may open the drawer and a swipe back may close it, where the toolkit offers it; the "Menu" control and the close button always do the same with one tap (D-APP-44). On iOS the edge swipe is the system's back gesture, so the drawer does not take it (D-APP-42).
- Back. System back closes the drawer before it leaves the screen (D-APP-42).
- Safe areas. The sheet pads the side it touches and the top and bottom insets, including a display cutout in landscape (D-APP-35).
- Width. At 768dp the drawer becomes a column and an open sheet closes (Navigation drawer).
- Large text. Scales fully; items grow.
- Right to left. The start sheet attaches to the right edge in Arabic.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | from 768dp the sidebar of NavigationSplitView; below 768dp no direct equivalent: compose from the dialog's overlay, attached to the leading edge |
fill surface-raised; trailing corners radius-sheet; width 85% up to container-side-sheet; items 56dp |
isModal on the sheet; the title isHeader; escape closes |
| Jetpack Compose | ModalNavigationDrawer with a ModalDrawerSheet (no kit component) |
drawerShape end corners radius-sheet; drawerContainerColor surface-raised; drawerTonalElevation 0; scrimColor scrim; width 85% up to container-side-sheet |
system back closes it through BackHandler calling DrawerState close; the "Menu" control reports its state with stateDescription; the sheet takes a paneTitle |
| Android Views | SideSheetDialog with setSheetEdge at the start, holding a NavigationView |
fill surface-raised; free corners radius-sheet; width up to container-side-sheet |
setCancelable true, so back closes it; setAccessibilityPaneTitle "Menu" |
| Flutter | Drawer or NavigationDrawer in Scaffold drawer |
backgroundColor surface-raised; shape end corners radius-sheet; width 85% up to container-side-sheet; drawerScrimColor scrim on the Scaffold |
the title in Semantics with headingLevel; check that system back closes the drawer (D-APP-42) |
| React Native | no core drawer: compose from a Modal with transparent, the sheet attached to the start edge |
as Compose | onRequestClose; accessibilityViewIsModal; the "Menu" control aria-expanded |
Do and do not in apps
| Do | Do not |
|---|---|
| Keep the visible "Menu" control for the console drawer. | Rely on an edge swipe to open navigation. |
| Use the navigation bar and rail in member apps. | Put a member app's destinations in a side sheet. |
Menu
Menu and popover · In apps: used, adapted. Action menus ("More actions for {name}") open from their trigger as the platform's anchored menu; a popover opens as a bottom sheet below 640dp and anchored from 640dp. The language disclosure list stays where a product keeps its in-app switcher (D-APP-47).
What stays identical
surface-raised,radius-box,shadow-elevation-3, 48dp items (size-menu-item) inbody-lg, 20dp icons, theprimary-inkcheck on the current item,outline-variantdividers, the width range (Menu and popover: Anatomy, Sizes, Tokens).- Placement at the trigger's end, flipping above near the bottom; the popover's anatomy and its bottom sheet below 640dp (Menu and popover: Behavior).
- Words: verb-first items; destructive items look like the others and the confirm that follows carries the red button (Menu and popover: Content).
What changes in an app
- One menu. The web's two semantics (a disclosure list and an action menu) are keyboard and ARIA distinctions; in an app both are the platform's menu, which brings its own focus handling. Arrow keys and type-ahead come from the platform where a hardware keyboard is attached.
- Long press. A row's context menu on long press is allowed only when the same actions are in its visible "More" button (D-APP-44).
- Ways out. A tap outside, system back, and choosing an item close the menu; focus returns to the trigger (D-APP-42, D-APP-51).
- iOS. The system menu draws itself and keeps its look: OAIT words and order, no destructive role on items (the confirm carries the red), and no leading icons unless they come from the OAIT icon font (D-APP-25).
- Large text. Scales fully; items wrap and grow.
- Right to left. The menu aligns to the trigger's end, the left edge in Arabic; the check sits at the end.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | Menu (system-drawn); a popover from 640dp with popover(isPresented:attachmentAnchor:arrowEdge:content:), which becomes a sheet on iPhone by default (presentationCompactAdaptation(_:) changes that); a row's long-press menu with contextMenu(menuItems:) |
the system menu takes no colors; the popover content takes surface-raised through presentationBackground(_:), label-md title, body-md body |
the trigger's accessibilityLabel(_:) "More actions for {name}"; the system menu handles focus |
| Jetpack Compose | DropdownMenu with DropdownMenuItem (no kit component); a popover from 640dp in a Popup, below 640dp in OaitBottomSheet |
shape radius-box; containerColor surface-raised; tonalElevation 0, shadowElevation with shadow-elevation-3; item text body-lg, contentPadding space-row-inset; the check in primary-ink as trailingIcon |
the trigger names what it opens; the current item's check is described by stateDescription; onDismissRequest closes the menu |
| Android Views | PopupMenu; a popover from 640dp in a PopupWindow, below 640dp in a BottomSheetDialog |
the popup's background surface-raised with corner radius-box; item text appearance body-lg |
the trigger's setContentDescription names what it opens |
| Flutter | MenuAnchor with MenuItemButton; a popover from 640dp in an OverlayPortal placed by a CompositedTransformFollower, below 640dp in showModalBottomSheet |
MenuStyle backgroundColor surface-raised, shape radius-box, elevation 0 with the shadow-elevation-3 box shadow; item textStyle body-lg, minimum height size-menu-item |
the trigger in Semantics with expanded and a label naming what it opens |
| React Native | no core menu: below 640dp OaitBottomSheet holds the items; from 640dp compose from a Modal with transparent, the menu placed at the trigger's frame from measureInWindow |
as Compose | the trigger role button with aria-expanded; onRequestClose closes on Android back |
Do and do not in apps
| Do | Do not |
|---|---|
| Repeat a long-press menu in a visible "More" button. | Hide row actions behind long press. |
| Keep the check as the sign of the current item. | Color a system menu's destructive item red. |
Tooltip
Tooltip · In apps: used, adapted. The tooltip shows when a pointer rests on a control (an iPad trackpad, a mouse on Android or ChromeOS) and on keyboard focus where the toolkit shows it there. On touch, nothing appears on iOS; with Android Views and Flutter a long press on an icon-only control may show the same words, because that is the platform's own behavior and the control has no long-press action. It always repeats the control's name and is never the only copy.
What stays identical
inverse-surfacewithinverse-on-surface,body-sm,radius-4px,container-tooltipwide at most, the 500ms rest delay (duration-delay-tooltip) (Tooltip: Anatomy, Tokens).- The words are the control's name; no instructions, no essential facts (Tooltip: Content).
What changes in an app
- Touch. No hover. Every icon button keeps its accessible name, so nothing depends on the tooltip.
- Not read twice. The tooltip's words are the control's name; the tooltip itself is kept out of the accessibility tree when the control already carries that name.
- System look. Where the system draws the tooltip (Android Views), its look is the platform's. iOS and iPadOS have no system tooltip for app controls: SwiftUI's help text shows as a help tag only on macOS and visionOS and is read as the accessibility hint elsewhere.
- Large text. Scales fully; it wraps at
container-tooltip. - Right to left. Centered tooltips need no mirroring; end-aligned ones align to the trigger's end.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no direct equivalent on iOS and iPadOS (help(_:) draws a help tag only on macOS and visionOS and sets the accessibility hint, which would read the name twice): with a pointer, compose from onHover(perform:) and an overlay shown after duration-delay-tooltip; nothing on touch |
fill inverse-surface; text body-sm in inverse-on-surface; corner radius-4px |
the control keeps its accessibilityLabel(_:) in the same words; the overlay accessibilityHidden(_:) |
| Jetpack Compose | TooltipBox (experimental) with a PlainTooltip and the position provider of TooltipDefaults (no kit component) |
containerColor inverse-surface; contentColor inverse-on-surface; shape radius-4px; text body-sm |
the icon button's contentDescription is the name; the tooltip repeats it |
| Android Views | setTooltipText (the system draws it, on hover and long press) |
none: system look | setContentDescription in the same words |
| Flutter | Tooltip, or the tooltip of an IconButton |
decoration inverse-surface with radius-4px; textStyle body-sm in inverse-on-surface; waitDuration duration-delay-tooltip |
excludeFromSemantics true when the child already has its label, or the IconButton's tooltip as its only label |
| React Native | no core tooltip: with a pointer, compose from Pressable onHoverIn and onHoverOut, showing a View after duration-delay-tooltip; nothing on touch |
fill inverse-surface; text inverse-on-surface in body-sm; borderRadius radius-4px |
the control's accessibilityLabel is the name; the tooltip view aria-hidden |
Do and do not in apps
| Do | Do not |
|---|---|
| Name every icon button, tooltip or not. | Rely on a tooltip to explain an icon on touch. |
| Let the platform show its long-press tooltip on an icon-only control. | Put a long-press action and a tooltip on the same control. |
Snackbar
Snackbar · In apps: used, adapted. The same bar and words, announced through the platform and timed by the dwell tokens with the user's accessibility timeout. iOS has no system snackbar, so it is a custom view with an announcement.
What stays identical
- Anatomy: the message, one optional action, the close button "Close message";
inverse-surfacewith a 1dpoutlineedge,radius-12px,shadow-elevation-3,body-mdmessage,inverse-primaryaction, the ring re-pointed toinverse-primary(Snackbar: Anatomy, Tokens). - One at a time: a new one replaces the one on screen; the action closes the bar first, then acts (Snackbar: Behavior).
- Words: past-tense confirmations, failures with "Try again", one-verb actions (Snackbar: Content).
What changes in an app
- Timing.
duration-dwell-snackbar(6s) andduration-dwell-snackbar-action(10s), passed through the system's recommended timeout on Android. When a screen reader or switch access is on, a snackbar with an action stays until it is dismissed (D-APP-48). Touch has no hover, so the pause-on-hover rule applies only with a pointer. - Announcement. The message is announced politely when it appears (D-APP-52).
- Placement. 16dp from the gutters and above the bottom inset; above the navigation bar when one shows; above the keyboard when it is open (D-APP-35, D-APP-36). From 768dp, 24dp from the start edge, up to
container-snackbarwide. - Layering. The snackbar that confirms a dialog's change shows after the dialog closes, so a native host that draws under a dialog never hides it.
- Swipe. A swipe may dismiss the bar where the toolkit offers it; the close button always does (D-APP-44).
- Motion. It fades; nothing slides. Under reduced motion it appears at once.
- Large text. Scales fully; the message wraps to two lines and the bar grows.
- Haptics. None.
- Right to left. The bar aligns to the start (bottom right in Arabic); the action and close sit at the end.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no stock snackbar: compose from a view placed with safeAreaInset(edge:alignment:spacing:content:) at the bottom |
fill inverse-surface; edge 1dp outline; corner radius-12px; message body-md in inverse-on-surface; action label-md in inverse-primary; minimum height space-14; dwell from the tokens; an action snackbar stays while accessibilityVoiceOverEnabled or accessibilitySwitchControlEnabled is true |
announce the message with AccessibilityNotification.Announcement; the close button's accessibilityLabel(_:) "Close message" |
| Jetpack Compose | OaitSnackbar in OaitSnackbarHost; without the kit, Snackbar in a SnackbarHost driven by SnackbarHostState |
shape radius-12px; containerColor inverse-surface; contentColor inverse-on-surface; actionContentColor inverse-primary; a 1dp outline border; duration Indefinite, dismissed by the app after the dwell passed through calculateRecommendedTimeoutMillis; replace by dismissing currentSnackbarData first |
the host announces the message; the close button's contentDescription "Close message" |
| Android Views | Snackbar |
setDuration the dwell passed through getRecommendedTimeoutMillis; setAnchorView the navigation bar; the bar's background inverse-surface with corner radius-12px and a 1dp outline edge; setActionTextColor inverse-primary |
the snackbar announces itself; the close button's setContentDescription "Close message" |
| Flutter | ScaffoldMessenger showSnackBar with a SnackBar |
behavior SnackBarBehavior floating; backgroundColor inverse-surface; shape radius-12px with a 1dp outline side; duration the dwell token; persist true for an action snackbar while accessibleNavigation is true; showCloseIcon true; SnackBarAction textColor inverse-primary; replace with hideCurrentSnackBar first |
the message in Semantics with liveRegion |
| React Native | OaitSnackbar, drawn on a View placed at the bottom of the screen |
fill inverse-surface; borderWidth 1 in outline; borderRadius radius-12px; message body-md; action inverse-primary; dwell through getRecommendedTimeoutMillis on Android, and no timeout for an action snackbar while isScreenReaderEnabled |
accessibilityLiveRegion polite on Android; announceForAccessibility on iOS; close button accessibilityLabel "Close message" |
Do and do not in apps
| Do | Do not |
|---|---|
| Keep an action snackbar until it is dismissed while a screen reader is on. | Let "Undo" vanish before a screen-reader user reaches it. |
| Show the confirmation after the dialog closes. | Queue several snackbars, as some hosts do by default. |
| Lift the bar above the navigation bar and the keyboard. | Let the bar cover the main action or the focused field. |
Banner
Banner · In apps: used, adapted. The same inline notice in five tones, the form error summary, and the page strip; live roles become platform announcements, and a dismissal lasts for the app's session.
What stays identical
- Anatomy, the five tones with their icons and on-colors,
radius-box, padding,label-mdtitles andbody-mdmessages, links in the on-color with an underline, the page strip with its "DEMO" chip (Banner: Anatomy, Variants, Tokens). - Placement in the flow: above the main button for a failed action, at the top of the content for a screen notice, at the top of a form for the summary (Banner: Behavior).
- Words: what happened, then what to do, and who helps (Banner: Content).
What changes in an app
- Announcements. A banner that appears after an action is announced: assertively for an error, politely for the other tones; a banner present when the screen opens is not (D-APP-52).
- Error summary. It takes accessibility focus when the form is submitted; each link scrolls its field into view and moves focus into it.
- Session. "Dismissed for the session" means until the app's process ends or the person signs out.
- Page strip. Directly under the top app bar, full width, inside the side insets; it scrolls with the content in a short window (D-APP-37).
- Haptics. An error banner after a rejected action may play the platform's error haptic; a success banner where the screen shows a success state may play the success haptic; nothing else (D-APP-31).
- Large text. Scales fully; the icon stays centered on the first line; actions wrap under the message.
- Right to left. The icon at the start (the right in Arabic), the close button at the end.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no stock banner: compose from an HStack aligned on firstTextBaseline with background(_:in:fillStyle:) in a RoundedRectangle |
corner radius-box; fill the tone's container (error-container, neutral surface-container-high); text the tone's on-color; padding space-3 and space-4; icon 20dp, FILL 1 |
announce with AccessibilityNotification.Announcement; focus the summary with accessibilityFocused(_:); scroll to a field with ScrollViewReader; the icon accessibilityHidden(_:) |
| Jetpack Compose | OaitBanner; without the kit, a Row on a Surface |
shape radius-box; color the tone's container; contentColor the on-color; tonalElevation 0; padding space-3 block and space-4 inline |
liveRegion LiveRegionMode Assertive for an error and Polite otherwise, only when it appears after an action; the summary takes focus through FocusRequester, and each link brings its field into view with BringIntoViewRequester |
| Android Views | no direct equivalent: compose from a LinearLayout with a GradientDrawable background |
setCornerRadius radius-box; setColor the tone's container; text appearance body-md in the on-color |
setAccessibilityLiveRegion assertive for an error, polite otherwise |
| Flutter | no direct equivalent: compose from a Container holding a Row (not MaterialBanner, which needs actions and sits at the top of the Scaffold) |
BoxDecoration with radius-box and the tone's container; text style body-md in the on-color; padding space-3 and space-4 |
Semantics with liveRegion when it appears after an action; the summary takes focus through a FocusNode; links scroll with ensureVisible |
| React Native | OaitBanner, drawn on a View |
borderRadius radius-box; fill the tone's container; padding space-3 and space-4; text body-md in the on-color |
accessibilityLiveRegion on Android and announceForAccessibility on iOS; sendAccessibilityEvent with focus on the summary; the icon aria-hidden |
Do and do not in apps
| Do | Do not |
|---|---|
| Announce a banner that appears after an action. | Announce banners that were there when the screen opened. |
| Move focus to the error summary on submit. | Leave a screen-reader user at the submit button with no news. |
Progress
Progress · In apps: used, adapted. The linear bar maps to the platform's determinate bar with the OAIT colors and no gap or stop mark. The spinner is the OAIT quarter arc on its track, which stands still under reduced motion: platform spinners look different and keep turning, so the kits draw their own.
What stays identical
- The 8dp and 4dp bars,
primary-inkonsurface-container-highest, the 20dp and 48dp spinners with anoutline-varianttrack and aprimary-inkarc (the label color with no track inside a button), the waiting table by duration (Progress: Variants, Sizes, Tokens). - Every spinner comes with words; the value is always in words too (Progress: Accessibility).
- Words: "Saving…", "Profile 80% complete" (Progress: Content).
What changes in an app
- Reduced motion. The bar jumps to its value; the spinner stands still as a quarter arc beside its words (D-APP-30).
- Announcing. Words that must be heard as they change go in a status message present before the work starts (D-APP-52); the bar itself is not announced on every step.
- Pull to refresh. Its indicator is the platform's own control, tinted
primary-ink(D-APP-44); it is not this component. - Large text. The words scale; the bar's thickness and the spinner's size stay.
- Right to left. The bar fills from the start edge, the right in Arabic; the spinner turns the same way in every language.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | ProgressView with a custom ProgressViewStyle that draws the bar from fractionCompleted; the spinner: no direct equivalent, compose from a Circle trim(from:to:) to a quarter, turned with rotationEffect(_:anchor:) |
track surface-container-highest, indicator primary-ink, height 8dp, corners radius-full; spinner arc primary-ink on outline-variant; one turn per duration-loop-spinner, stopped while accessibilityReduceMotion is true |
the bar keeps its value through accessibilityValue(_:) and its words; the spinner accessibilityHidden(_:) |
| Jetpack Compose | OaitLinearProgress and OaitSpinner; without the kit, LinearProgressIndicator, and for the spinner a determinate CircularProgressIndicator at 25%, turned by rememberInfiniteTransition |
color primary-ink; trackColor surface-container-highest; gapSize 0; drawStopIndicator empty; height 8dp; spinner trackColor outline-variant; the turn stops when the system animator scale is 0 |
the bar's progressBarRangeInfo comes with it; name it by its words with contentDescription; the spinner is cleared with clearAndSetSemantics |
| Android Views | LinearProgressIndicator; for the spinner a CircularProgressIndicator, determinate at 25% while areAnimatorsEnabled is false |
setIndicatorColor primary-ink; setTrackColor surface-container-highest; setTrackThickness 8dp; setIndicatorTrackGapSize 0; setTrackStopIndicatorSize 0 |
the indicator exposes its progress; name it with setContentDescription; the spinner setImportantForAccessibility no |
| Flutter | LinearProgressIndicator; for the spinner a CircularProgressIndicator with value 0.25 inside a RotationTransition |
color primary-ink; backgroundColor surface-container-highest; minHeight 8; borderRadius radius-full; trackGap 0; spinner strokeWidth 2 (4 at 48dp); the rotation stops while disableAnimations or reduceMotion is true |
semanticsLabel the words and semanticsValue the figure; the spinner in ExcludeSemantics |
| React Native | OaitLinearProgress and OaitSpinner, drawn on Views for the bar and an Animated quarter arc for the spinner, not ActivityIndicator, which takes one color and no track and, on Android, hides when animating is false |
track surface-container-highest; indicator primary-ink; height 8; borderRadius radius-full; the loop stops while isReduceMotionEnabled |
the bar role progressbar with aria-valuenow; the spinner aria-hidden |
Do and do not in apps
| Do | Do not |
|---|---|
| Stop the spinner under reduced motion and keep its words. | Use a system spinner that keeps turning. |
| Remove the Material gap and stop mark from the bar. | Fill the bar with orange primary. |
Skeleton
Skeleton · In apps: used, adapted. The blocks and the sweep are drawn with the toolkit's animation; the busy region is one accessibility element that says "Loading {thing}…".
What stays identical
- The four block shapes and sizes,
skeletonswept towardskeleton-highlightoverduration-loop-skeleton,radius-4pxlines,radius-cardblocks, circles at the avatar's size (Skeleton: Variants, Sizes, Tokens). - Show blocks only after a second, in the final layout, about one screen's worth; replace in place; focus does not move (Skeleton: Behavior).
- Words: one hidden "Loading {thing}…" (Skeleton: Content).
What changes in an app
- Reduced motion. A flat
skeletonfill with no sweep (D-APP-30). - One element. The blocks are hidden; the region reads its one line, and the content's arrival replaces it.
- Large text. The final layout grows with the text; block lines keep their 16dp and 24dp heights as placeholders.
- Right to left. Short lines hang from the start edge, the right in Arabic.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no direct equivalent (redacted(reason:) draws the system placeholder, not the OAIT blocks): compose from RoundedRectangle fills with a moving LinearGradient |
fill skeleton, highlight skeleton-highlight; lines radius-4px; one sweep per duration-loop-skeleton; flat while accessibilityReduceMotion is true |
the region: accessibilityElement(children:) .ignore with accessibilityLabel(_:) "Loading people…" |
| Jetpack Compose | OaitSkeleton in OaitSkeletonRegion; without the kit, Box blocks with a moving Brush from rememberInfiniteTransition |
as SwiftUI; the flat fill when the system animator scale is 0 | the region: clearAndSetSemantics with contentDescription "Loading people…" |
| Android Views | no direct equivalent: compose from views with a GradientDrawable moved by a ValueAnimator |
as SwiftUI; flat while areAnimatorsEnabled is false |
the region's setContentDescription "Loading people…"; the blocks hidden with setImportantForAccessibility |
| Flutter | no stock skeleton: compose from Container blocks under a ShaderMask with a moving LinearGradient driven by an AnimationController |
as SwiftUI; flat while disableAnimations or reduceMotion is true |
Semantics label "Loading people…" around blocks in ExcludeSemantics |
| React Native | OaitSkeleton in OaitSkeletonGroup, drawn on View blocks with an Animated highlight |
fill skeleton; highlight skeleton-highlight; borderRadius radius-4px on lines; flat while isReduceMotionEnabled |
the region accessibilityLabel "Loading people…" with accessibilityState busy; the blocks aria-hidden |
Do and do not in apps
| Do | Do not |
|---|---|
| Read one line for the whole region. | Let a screen reader step through empty blocks. |
| Draw the OAIT blocks in the final layout. | Use a system placeholder that ignores the skeleton role. |
Empty state
Empty state · In apps: used, adapted. The in-content empty state is unchanged. The full-page states keep their anatomy and words, and are named by what happened in the app instead of by HTTP status: an unknown link inside the app (the 404 page), a load that failed (the error page), no connection (the offline page), a device not set up, an expired link, and a permission that was denied (D-APP-45).
What stays identical
- Anatomy: the 64dp disc on
secondary-containerwith a 32dp icon,title-lg,body-md, one action; the full-page column up tocontainer-form, the 64dpprimary-inkicon or the 80dp warning disc,headline-md,body-lg, one filled large button, the code last (Empty state: Anatomy, Sizes, Tokens). - The binding copy of each full-page state (Empty state: Full-page copy).
What changes in an app
- Names. A deep link to something that does not exist shows the 404 copy; a request that failed shows the error copy; there is no HTTP status or document title, and the state's title is the screen's title (a heading).
- Offline. A screen that holds cached content keeps it and says it is offline; a screen with nothing cached shows the offline state.
- Try again. Retries the request that failed, not the whole app. Pull to refresh may also retry, with "Try again" still visible (D-APP-44).
- Permission denied. The blocked state of D-APP-45 uses this layout: the reason, a way forward that does not need the permission, and a link to Settings.
- Safe areas. The full-page column sits inside the safe area, centered in the space left; below 640dp the main button spans the column.
- Large text. Scales fully; the column scrolls.
- Right to left. None of the state glyphs mirror; actions follow the reading direction.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | ContentUnavailableView through init(label:description:actions:) with the OAIT disc, type, and button as its views, not system symbols |
disc size-tile-xl on secondary-container, icon in on-secondary-container; title title-lg (full page headline-md); body body-md in on-surface-variant |
the full-page title takes isHeader; the disc and icon accessibilityHidden(_:) |
| Jetpack Compose | OaitEmptyState; without the kit, a centered Column |
as SwiftUI; gap space-3; padding space-12 block and space-6 inline |
the title takes heading() when it is the screen's title; the disc's contentDescription null |
| Android Views | no direct equivalent: compose from a LinearLayout |
as SwiftUI | the title takes setAccessibilityHeading; the disc setImportantForAccessibility no |
| Flutter | no stock empty state: compose from a Column |
as SwiftUI | the title in Semantics with headingLevel; the disc in ExcludeSemantics |
| React Native | OaitEmptyState, drawn on a View; in a list it is the FlatList ListEmptyComponent |
as SwiftUI | the title role heading; the disc aria-hidden |
Do and do not in apps
| Do | Do not |
|---|---|
| Keep cached content on screen when the app goes offline. | Replace a screen of cached content with the offline state. |
| Offer a way forward that does not need a denied permission. | Leave a "Settings" link as the only way on. |
Status indicator
Status indicator · In apps: used as is. A dot and words; only real-time live states pulse; the dot centers on the first line of its words.
What stays identical
- The large 12dp dot with its 5dp halo and the small 8dp dot, the six tones and their colors, the gaps, the 2s pulse of a live state (
duration-loop-status) (Status indicator: Variants, Sizes, Tokens). - Words carry the status; dots are hidden (Status indicator: Accessibility).
What changes in an app
- First-line alignment. Align the dot to the center of the first line of its words: top-align the row and offset the dot by half of the scaled line height minus the dot.
- Reduced motion. No pulse; the static halo stays (D-APP-30).
- Announcing. A change is announced only when it matters to the task, through the screen's status message (D-APP-52).
- Large text. The words scale; the dot keeps its size and stays on the first line.
- Right to left. The dot sits at the start.
| Stack | Start from | Defaults to override (token) | Accessibility |
|---|---|---|---|
| SwiftUI | no direct equivalent: compose from an HStack of a Circle and a Text, the dot offset by a ScaledMetric |
dot success with halo success-container (each tone's pair); gap space-2 (large space-3) |
the row reads as one element through accessibilityElement(children:) .combine; the dot accessibilityHidden(_:) |
| Jetpack Compose | no kit component: compose from a Row of a Box dot and a Text; the pulse from rememberInfiniteTransition |
as SwiftUI | the dot carries no semantics; a change goes to the screen's liveRegion when it matters |
| Android Views | no direct equivalent: compose from a LinearLayout of a dot view and a text view |
as SwiftUI | the dot setImportantForAccessibility no |
| Flutter | no direct equivalent: compose from a Row with crossAxisAlignment start; the pulse from an AnimationController |
as SwiftUI | the dot in ExcludeSemantics |
| React Native | no core component: compose from a View row with alignItems flex-start; the pulse from Animated |
as SwiftUI | the dot aria-hidden |
Do and do not in apps
| Do | Do not |
|---|---|
| Stop the pulse under the system's reduced-motion setting. | Keep a live dot pulsing when the system asks for less motion. |