Skip to content

SAPUI5

Imitates: SAPUI5 / OpenUI5 · SAP Fiori Horizon theme (sap_horizon, sap_horizon_dark) 1.136 · Pack id: sapui5 · Selected by: pack="sapui5", import SAPUI5, import OpenUI5, import UI5, import Fiori, import sap.m, import sap.f, import sap.uxap, import sap.tnt · Default device: desktop (browser chrome)

128 own elements, plus 114 core elements in this pack's style. Each entry shows the element rendered with sample arguments (and, for the pack's own elements, each of its variants), the role it maps onto, its positional arguments, its defaults and variants.

Pack elements

ActionListItem

sap.m.ActionListItem: centered action text

role listitem · arguments title

Title
Source
ActionListItem("Title")

ActionSheet

sap.m.ActionSheet: a menu of buttons

role menu

Source
ActionSheet() { Button("Open"); Button("Save"); Divider(); Button("Close") }

AnchorBar

sap.uxap.AnchorBar(items: [section titles], selection:)

role tabs · arguments items

OneTwo
First tab
Source
AnchorBar(["One", "Two", "Three"]) { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }

App

sap.m.App: the root container

role vstack · defaults alignment: "stretch", spacing: 0

ContentAction
Source
App() { Text("Content"); Button("Action") }

Avatar

sap.m.Avatar(initials, src:); .displayShape(.Square), .displaySize(.L), .backgroundColor(.Accent6)

role avatar · arguments initials · variants Circle, Square

ALCircle
ALSquare
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { Avatar("AL").variant("Circle"); Text("Circle").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Avatar("AL").variant("Square"); Text("Square").font(.caption).foregroundStyle(.secondary) }
}

AvatarGroup

sap.f.AvatarGroup

role hstack

ContentAction
Source
AvatarGroup() { Text("Content"); Button("Action") }

Bar

sap.m.Bar: left/middle/right content; use ToolbarSpacer between

role toolbar

Source
Bar() { Button("Save"); Button("Share") }

sap.m.Breadcrumbs(items: [..., current])

role breadcrumb · arguments items

Source
Breadcrumbs(["One", "Two", "Three"])

BusyIndicator

sap.m.BusyIndicator: three pulsing dots

role progress · arguments label · defaults variant: "circular"

Label
Source
BusyIndicator("Label")

Button

sap.m.Button; .type(.Emphasized) etc.; icon: "sap-icon://add"

role button · arguments text · variants Default, Emphasized, Transparent, Ghost, Accept, Reject, Attention, Negative, Critical, Success, Neutral, Back, Up, Unstyled

TextDefault
TextEmphasized
TextTransparent
TextGhost
TextAccept
TextReject
TextAttention
TextNegative
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { Button("Text").variant("Default"); Text("Default").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Text").variant("Emphasized"); Text("Emphasized").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Text").variant("Transparent"); Text("Transparent").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Text").variant("Ghost"); Text("Ghost").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Text").variant("Accept"); Text("Accept").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Text").variant("Reject"); Text("Reject").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Text").variant("Attention"); Text("Attention").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Text").variant("Negative"); Text("Negative").font(.caption).foregroundStyle(.secondary) }
}

Calendar

sap.ui.unified.Calendar(selection: "2026-11-24")

role calendar

November 2026
SuMoTuWeThFrSa12345678910111213141516171819202122232425262728293012345
Source
Calendar()

Card

sap.f.Card(title, subtitle, icon:, status:) { content }

role card · arguments title, subtitle

TitleSubtitle
ContentAction
Source
Card("Title", "Subtitle") { Text("Content"); Button("Action") }

sap.m.Carousel { Image(…) … }: first page + page indicator

role scroll · defaults axes: "horizontal"

ContentAction
Source
Carousel() { Text("Content"); Button("Action") }

CheckBox

sap.m.CheckBox("text", selected: true)

role checkbox · arguments label

Label
Source
CheckBox("Label")

Column

sap.m.Column(header text, alignment: .End)

role tablecolumn · arguments title

Source
Column("Title")

ColumnListItem

sap.m.ColumnListItem { cells }

role tablerow

Source
ColumnListItem()

ComboBox

sap.m.ComboBox: typeable select

role select · arguments label

Source
ComboBox("Label")

CustomListItem

sap.m.CustomListItem { any content }

role listitem

Source
CustomListItem()

DatePicker

sap.m.DatePicker(value: "2026-11-24")

role datepicker · arguments label

Source
DatePicker("Label")

DateRangeSelection

sap.m.DateRangeSelection(value: "Nov 1 – Nov 30, 2026")

role datepicker · arguments label

Source
DateRangeSelection("Label")

DateTimePicker

sap.m.DateTimePicker

role datepicker · arguments label · defaults kind: "datetime"

Source
DateTimePicker("Label")

Dialog

sap.m.Dialog(title, state:, buttons: [...]) { content } actions: { buttons }

role dialog · arguments title

Source
Dialog("Title") { Text("Content"); Button("Action") }

DisplayListItem

sap.m.DisplayListItem(label, value)

role listitem · arguments label, detail

LabelDetail
Source
DisplayListItem("Label", "Detail")

DynamicPage

sap.f.DynamicPage { DynamicPageTitle; DynamicPageHeader; content }

role vstack · defaults alignment: "stretch", spacing: 0

ContentAction
Source
DynamicPage() { Text("Content"); Button("Action") }

DynamicPageHeader

sap.f.DynamicPageHeader: collapsible header content (filter bar, key facts)

role vstack · defaults alignment: "stretch"

ContentAction
Source
DynamicPageHeader() { Text("Content"); Button("Action") }

DynamicPageTitle

sap.f.DynamicPageTitle(heading, subtitle) { key info } actions: { buttons }

role card · arguments title, subtitle

TitleSubtitle
ContentAction
Source
DynamicPageTitle("Title", "Subtitle") { Text("Content"); Button("Action") }

ExpandableText

sap.m.ExpandableText

role text · arguments content

Content
Source
ExpandableText("Content")

FeedListItem

sap.m.FeedListItem(sender, text, avatar:, detail: timestamp)

role listitem · arguments title, subtitle

TitleSubtitle
Source
FeedListItem("Title", "Subtitle")

FileUploader

sap.ui.unified.FileUploader

role textfield · arguments placeholder · defaults trailingIcon: "sap-icon://upload"

Placeholder
Source
FileUploader("Placeholder")

FilterBar

sap.ui.comp FilterBar: labelled filter fields + Go

role toolbar

Source
FilterBar() { Button("Save"); Button("Share") }

FlexBox

sap.m.FlexBox; wrap: true wraps

role hstack

ContentAction
Source
FlexBox() { Text("Content"); Button("Action") }

FlexibleColumnLayout

sap.f.FlexibleColumnLayout { begin } { mid } { end } as children; .layout(.TwoColumnsBeginExpanded)

role split · defaults variant: "TwoColumnsMidExpanded" · variants OneColumn, TwoColumnsBeginExpanded, TwoColumnsMidExpanded, ThreeColumnsMidExpanded, ThreeColumnsEndExpanded

Content
Action
OneColumn
Content
Action
TwoColumnsBeginExpanded
Content
Action
TwoColumnsMidExpanded
Content
Action
ThreeColumnsMidExpanded
Content
Action
ThreeColumnsEndExpanded
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { FlexibleColumnLayout() { Text("Content"); Button("Action") }.variant("OneColumn"); Text("OneColumn").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { FlexibleColumnLayout() { Text("Content"); Button("Action") }.variant("TwoColumnsBeginExpanded"); Text("TwoColumnsBeginExpanded").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { FlexibleColumnLayout() { Text("Content"); Button("Action") }.variant("TwoColumnsMidExpanded"); Text("TwoColumnsMidExpanded").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { FlexibleColumnLayout() { Text("Content"); Button("Action") }.variant("ThreeColumnsMidExpanded"); Text("ThreeColumnsMidExpanded").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { FlexibleColumnLayout() { Text("Content"); Button("Action") }.variant("ThreeColumnsEndExpanded"); Text("ThreeColumnsEndExpanded").font(.caption).foregroundStyle(.secondary) }
}

Form

sap.ui.layout.form.Form { FormContainer { FormElement } }

role form · arguments title

Title
Name
Notifications
Source
Form("Title") { TextField("Name"); Toggle("Notifications", isOn: true) }

FormContainer

sap.ui.layout.form.FormContainer

role section · arguments title

Title
First itemSecond item
Source
FormContainer("Title") { Text("First item"); Text("Second item") }

FormElement

sap.ui.layout.form.FormElement(label) { fields }

role labeled · arguments label

LabelContentAction
Source
FormElement("Label") { Text("Content"); Button("Action") }

FormattedText

sap.m.FormattedText (inline bold, italic, code, link)

role text · arguments content

Content
Source
FormattedText("Content")

GenericTag

sap.m.GenericTag

role chip · arguments label

Label
Source
GenericTag("Label")

GenericTile

sap.m.GenericTile(header, subheader, icon:) { TileContent(footer:) { NumericContent } }; .frameType(.TwoByOne)

role card · arguments title, subtitle · variants TileContent, ActionMode, ArticleMode

TitleSubtitle
ContentAction
TileContent
TitleSubtitle
ContentAction
ActionMode
TitleSubtitle
ContentAction
ArticleMode
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { GenericTile("Title", "Subtitle") { Text("Content"); Button("Action") }.variant("TileContent"); Text("TileContent").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { GenericTile("Title", "Subtitle") { Text("Content"); Button("Action") }.variant("ActionMode"); Text("ActionMode").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { GenericTile("Title", "Subtitle") { Text("Content"); Button("Action") }.variant("ArticleMode"); Text("ArticleMode").font(.caption).foregroundStyle(.secondary) }
}

GroupHeaderListItem

sap.m.GroupHeaderListItem

role listitem · arguments title

Title
Source
GroupHeaderListItem("Title")

HBox

sap.m.HBox (FlexBox, row)

role hstack

ContentAction
Source
HBox() { Text("Content"); Button("Action") }

Icon

sap.ui.core.Icon("sap-icon://home")

role icon · arguments name

Source
Icon("star")

IconTabBar

sap.m.IconTabBar(selection:) { IconTabFilter(…) }

role tabs · arguments items

OneTwo
First tab
Source
IconTabBar(["One", "Two", "Three"]) { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }

IconTabFilter

sap.m.IconTabFilter(text, icon:) { content }; .count(12)

role tab · arguments text

Source
IconTabFilter("Text")

IllustratedMessage

sap.m.IllustratedMessage(title, description:, icon:) { additional buttons }

role dropzone · arguments title · defaults icon: "sap-icon://search"

Title
Source
IllustratedMessage("Title")

Image

sap.m.Image(src)

role image · arguments src

Source
Image().frame(width: 160, height: 96)

InfoLabel

sap.tnt.InfoLabel; .colorScheme(.c7) or color: 1…10

role badge · arguments text

Text
Source
InfoLabel("Text")

Input

sap.m.Input(placeholder, value:, label:); .valueState(.Error), error: "text" for the value state message

role textfield · arguments placeholder

Placeholder
Source
Input("Placeholder")

InputListItem

sap.m.InputListItem(label) { control }

role listitem · arguments label

Label
Source
InputListItem("Label")

Item

sap.ui.core.Item: an option of Select / ComboBox / SegmentedButton

role text · arguments text

Text
Source
Item("Text")

Label

sap.m.Label: field caption in sapContent_LabelColor

role text · arguments content

Content
Source
Label("Content")

sap.m.Link

role link · arguments text, href

Text
Source
Link("Text", "#")

List

sap.m.List(header:) { StandardListItem … }

role list

First item
Second item
Source
List() { Text("First item"); Text("Second item") }

MaskInput

sap.m.MaskInput

role textfield · arguments placeholder

Placeholder
Source
MaskInput("Placeholder")

sap.m.Menu (standalone without a label)

role menu · arguments label

Label
Source
Menu("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }

sap.m.MenuButton { MenuItem(…) }; open: true shows the menu

role menu · arguments label · variants Default, Emphasized, Transparent, Ghost

Label
Default
Label
Emphasized
Label
Transparent
Label
Ghost
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { MenuButton("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }.variant("Default"); Text("Default").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { MenuButton("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }.variant("Emphasized"); Text("Emphasized").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { MenuButton("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }.variant("Transparent"); Text("Transparent").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { MenuButton("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }.variant("Ghost"); Text("Ghost").font(.caption).foregroundStyle(.secondary) }
}

sap.m.MenuItem(text, icon:)

role menuitem · arguments text

Source
MenuItem("Text")

MessageBox

sap.m.MessageBox(title, message:, state: .Error|.Warning|.Success|.Information, icon:, buttons:)

role dialog · arguments title

Source
MessageBox("Title") { Text("Content"); Button("Action") }

MessageItem

sap.m.MessageItem(title, subtitle:, icon:, status:)

role listitem · arguments title

Title
Source
MessageItem("Title")

MessagePopover

sap.m.MessagePopover { MessageItem … }

role dialog · arguments title · defaults variant: "popover"

Source
MessagePopover("Title") { Text("Content"); Button("Action") }

MessageStrip

sap.m.MessageStrip(text, type: .Information|.Success|.Warning|.Error, showCloseButton:)

role alert · arguments text

Source
MessageStrip("Text")

MessageToast

sap.m.MessageToast("Saved")

role toast · arguments message

Message
Source
MessageToast("Message")

MultiComboBox

sap.m.MultiComboBox(selection: ["A", "B"]): tokens in the field

role select · arguments label

Source
MultiComboBox("Label")

MultiInput

sap.m.MultiInput(selection: [tokens]) with value help

role select · arguments label · defaults trailingIcon: "sap-icon://value-help"

Source
MultiInput("Label")

sap.tnt.NavigationList

role group

ContentAction
Source
NavigationList() { Text("Content"); Button("Action") }

sap.tnt.NavigationListItem(text, icon:) with nested items

role navitem · arguments label

Label
Source
NavigationListItem("Label")

NotificationListItem

sap.m.NotificationListItem(title, description:, avatar:, detail: time, status: .Error)

role listitem · arguments title

Title
Source
NotificationListItem("Title")

NumericContent

sap.m.NumericContent(value, scale, color: .Good|.Critical|.Error); .indicator(.Up)

role labeled · arguments value, label

LabelContentAction
Source
NumericContent("Value", "Label") { Text("Content"); Button("Action") }

ObjectAttribute

sap.m.ObjectAttribute(title, text) → “Title: text”

role labeled · arguments title, text

TitleContentAction
Source
ObjectAttribute("Title", "Text") { Text("Content"); Button("Action") }

ObjectHeader

sap.m.ObjectHeader(title, number) { ObjectAttribute; ObjectStatus }

role card · arguments title, status

Title
Status
ContentAction
Source
ObjectHeader("Title", "Status") { Text("Content"); Button("Action") }

ObjectIdentifier

sap.m.ObjectIdentifier(title, text): bold title over a grey text

role labeled · arguments title, text

TitleContentAction
Source
ObjectIdentifier("Title", "Text") { Text("Content"); Button("Action") }

ObjectListItem

sap.m.ObjectListItem(title, number) { ObjectAttribute; ObjectStatus }

role listitem · arguments title, detail

TitleDetail
Source
ObjectListItem("Title", "Detail")

ObjectMarker

sap.m.ObjectMarker (Favorite, Flagged, Draft …)

role badge · arguments text · defaults icon: "sap-icon://favorite"

Text
Source
ObjectMarker("Text")

ObjectNumber

sap.m.ObjectNumber("1,250.00", "EUR", state:)

role labeled · arguments value, label

LabelContentAction
Source
ObjectNumber("Value", "Label") { Text("Content"); Button("Action") }

ObjectPageDynamicHeaderTitle

alias of ObjectPageHeader

role card · arguments title, subtitle

TitleSubtitle
ContentAction
Source
ObjectPageDynamicHeaderTitle("Title", "Subtitle") { Text("Content"); Button("Action") }

ObjectPageHeader

sap.uxap.ObjectPageDynamicHeaderTitle(title, subtitle, avatar:) { header facts } actions: { … }

role card · arguments title, subtitle

TitleSubtitle
ContentAction
Source
ObjectPageHeader("Title", "Subtitle") { Text("Content"); Button("Action") }

ObjectPageLayout

sap.uxap.ObjectPageLayout { ObjectPageHeader; AnchorBar; ObjectPageSection … }

role vstack · defaults alignment: "stretch", spacing: 0

ContentAction
Source
ObjectPageLayout() { Text("Content"); Button("Action") }

ObjectPageSection

sap.uxap.ObjectPageSection(title) { content }

role section · arguments title

Title
First itemSecond item
Source
ObjectPageSection("Title") { Text("First item"); Text("Second item") }

ObjectPageSubSection

sap.uxap.ObjectPageSubSection

role section · arguments title

Title
First itemSecond item
Source
ObjectPageSubSection("Title") { Text("First item"); Text("Second item") }

ObjectStatus

sap.m.ObjectStatus(text, state: .Success|.Warning|.Error|.Information|.Indication05, icon:); .inverted()

role badge · arguments text

Text
Source
ObjectStatus("Text")

OverflowToolbar

sap.m.OverflowToolbar: header toolbar of tables and lists

role toolbar

Source
OverflowToolbar() { Button("Save"); Button("Share") }

OverflowToolbarButton

sap.m.OverflowToolbarButton: icon-only transparent button

role button · arguments icon · defaults iconOnly: True, variant: "Transparent"

Source
OverflowToolbarButton("star")

Page

sap.m.Page: header Bar with title (start-aligned in Horizon), content; back: true shows the nav button

role navstack · arguments title · defaults titleDisplayMode: "inline"

Title
ContentAction
Source
Page("Title") { Text("Content"); Button("Action") }

Panel

sap.m.Panel(headerText, expanded:)

role accordion · arguments title · defaults expanded: True

Title
ContentAction
Source
Panel("Title") { Text("Content"); Button("Action") }

Popover

sap.m.Popover

role dialog · arguments title · defaults variant: "popover"

Source
Popover("Title") { Text("Content"); Button("Action") }

ProductSwitch

sap.f.ProductSwitch { ProductSwitchItem(title, icon:) }

role grid · defaults columns: 4

ContentAction
Source
ProductSwitch() { Text("Content"); Button("Action") }

ProductSwitchItem

sap.f.ProductSwitchItem

role button · arguments text

Text
Source
ProductSwitchItem("Text")

ProgressIndicator

sap.m.ProgressIndicator(value: 60, state: .Success)

role progress · arguments value · defaults showValue: True

60%
Source
ProgressIndicator(60)

RadioButton

sap.m.RadioButton("text", selected: true)

role radio · arguments label

Label
Source
RadioButton("Label")

RadioButtonGroup

sap.m.RadioButtonGroup(options: [...], selection: 0)

role radiogroup · arguments label

Label
Source
RadioButtonGroup("Label")

RangeSlider

sap.m.RangeSlider(value: [20, 60], in: 0...100)

role slider

Source
RangeSlider()

RatingIndicator

sap.m.RatingIndicator(value: 4, max: 5)

role rating · arguments value

Source
RatingIndicator(60)

ResponsivePopover

sap.m.ResponsivePopover

role dialog · arguments title · defaults variant: "popover"

Source
ResponsivePopover("Title") { Text("Content"); Button("Action") }

ScrollContainer

sap.m.ScrollContainer

role scroll · arguments axes

ContentAction
Source
ScrollContainer() { Text("Content"); Button("Action") }

SearchField

sap.m.SearchField (magnifier at the end)

role textfield · arguments placeholder · defaults kind: "search"

Placeholder
Source
SearchField("Placeholder")

SegmentedButton

sap.m.SegmentedButton(items: [...], selection:) or SegmentedButtonItem children

role segmented · arguments items

OneTwoThree
Source
SegmentedButton(["One", "Two", "Three"])

SegmentedButtonItem

sap.m.SegmentedButtonItem

role button · arguments text

Text
Source
SegmentedButtonItem("Text")

Select

sap.m.Select(selection:) { Item("…") }

role select · arguments label

Source
Select("Label")

Shell

sap.m.Shell: letterboxed app root

role vstack · defaults alignment: "stretch", spacing: 0

ContentAction
Source
Shell() { Text("Content"); Button("Action") }

ShellBar

sap.f.ShellBar(title, secondaryTitle:, logo:, search:, notifications: 3, avatar: "JD") { extra buttons, e.g. product switch }

role appbar · arguments title

Source
ShellBar("Title") { Text("Content"); Button("Action") }

SideNavigation

sap.tnt.SideNavigation(selection:) { NavigationListItem … } footer: { fixed items }

role sidebar · arguments title

Source
SideNavigation("Title") { Text("Content"); Button("Action") }

SimpleForm

sap.ui.layout.form.SimpleForm(title) { Title; Label; Input … }: labels at the start on desktop

role form · arguments title

Title
Name
Notifications
Source
SimpleForm("Title") { TextField("Name"); Toggle("Notifications", isOn: true) }

Slider

sap.m.Slider(value: 30, in: 0...100)

role slider

Source
Slider()

SplitApp

sap.m.SplitApp: master + detail

role split

Content
Action
Source
SplitApp() { Text("Content"); Button("Action") }

SplitContainer

sap.m.SplitContainer

role split

Content
Action
Source
SplitContainer() { Text("Content"); Button("Action") }

StandardListItem

sap.m.StandardListItem(title, description:, icon:, info:, status:, count:); .type(.Navigation)

role listitem · arguments title

Title
Source
StandardListItem("Title")

StepInput

sap.m.StepInput(value: 3): − value + in one field

role stepper · arguments label

Label
Source
StepInput("Label")

Switch

sap.m.Switch(isOn: true)

role toggle · arguments label

Label
Source
Switch("Label")

TabContainer

sap.m.TabContainer

role tabs · arguments items

OneTwo
First tab
Source
TabContainer(["One", "Two", "Three"]) { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }

TabContainerItem

sap.m.TabContainerItem

role tab · arguments text

Source
TabContainerItem("Text")

Table

sap.m.Table(selectable:) { Column(…) … ColumnListItem { cells } } header: { OverflowToolbar }

role table

NameStatus
Ana LimaActive
Ben OkaforAway
Source
Table(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]])

Text

sap.m.Text

role text · arguments content

Content
Source
Text("Content")

TextArea

sap.m.TextArea(value, rows:)

role textfield · arguments value · defaults kind: "multiline"

Value
Source
TextArea("Value")

TileContent

sap.m.TileContent(footer, unit:) { NumericContent }

role section · arguments footer

First itemSecond item
Source
TileContent("Footer") { Text("First item"); Text("Second item") }

TimePicker

sap.m.TimePicker

role datepicker · arguments label · defaults kind: "time"

Source
TimePicker("Label")

Title

sap.m.Title; level: .H1 … .H6 (or .titleStyle(.H3)) sets the size

role text · arguments content · defaults style: "H5"

Content
Source
Title("Content")

ToggleButton

sap.m.ToggleButton; .pressed() shows the pressed state

role toggle · arguments label · defaults variant: "button"

Label
Source
ToggleButton("Label")

Token

sap.m.Token

role chip · arguments text · defaults removable: True

Text
Source
Token("Text")

Tokenizer

sap.m.Tokenizer { Token(…) }

role hstack · defaults spacing: 4, wrap: True

ContentAction
Source
Tokenizer() { Text("Content"); Button("Action") }

ToolHeader

sap.tnt.ToolHeader

role appbar · arguments title

Source
ToolHeader("Title") { Text("Content"); Button("Action") }

ToolPage

sap.tnt.ToolPage { ToolHeader; HStack { SideNavigation; content } }

role vstack · defaults alignment: "stretch", spacing: 0

ContentAction
Source
ToolPage() { Text("Content"); Button("Action") }

Toolbar

sap.m.Toolbar

role toolbar

Source
Toolbar() { Button("Save"); Button("Share") }

ToolbarSeparator

sap.m.ToolbarSeparator

role divider

Source
ToolbarSeparator()

ToolbarSpacer

sap.m.ToolbarSpacer: pushes the following content to the end

role spacer

Source
ToolbarSpacer()

UploadSet

sap.m.upload.UploadSet drop area

role dropzone · arguments label

Label
Source
UploadSet("Label")

VBox

sap.m.VBox (FlexBox, column)

role vstack · defaults alignment: "leading"

ContentAction
Source
VBox() { Text("Content"); Button("Action") }

VariantManagement

sap.ui.fl VariantManagement (“Standard ▾” title)

role menu · arguments label

Label
Source
VariantManagement("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }

Wizard

sap.m.Wizard(selection: 1) { WizardStep(title) { content } … }: numbered progress navigator

role tabs

OneTwo
First tab
Source
Wizard() { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }

WizardStep

sap.m.WizardStep(title) { content }

role tab · arguments title

Source
WizardStep("Title")

Core vocabulary in this style

Accordion

role accordion · arguments title

Title
Source
Accordion("Title") { Text("Content"); Button("Action") }

Alert

role dialog · arguments title · defaults variant: "alert"

Source
Alert("Title") { Text("Content"); Button("Action") }

AppBar

role appbar · arguments title

Source
AppBar("Title") { Text("Content"); Button("Action") }

AreaChart

role chart · defaults kind: "area"

Source
AreaChart(values: [3, 5, 2, 6, 4])

AsyncImage

role image · arguments url

Source
AsyncImage().frame(width: 160, height: 96)

Badge

role badge · arguments text

Text
Source
Badge("Text")

role alert · arguments title

Source
Banner("Title")

BarChart

role chart · defaults kind: "bar"

Source
BarChart(values: [3, 5, 2, 6, 4])

Board

Kanban board of BoardColumn children

role board

To do1
Write copy
Add card
Source
Board() { BoardColumn("To do") { KanbanCard("Write copy") } }

BoardColumn

BoardColumn("To do", count:, color:) { KanbanCard(…) }

role boardcolumn · arguments title

Title2
Write copy
Review
Add card
Source
BoardColumn("Title") { KanbanCard("Write copy"); KanbanCard("Review") }

role breadcrumb · arguments items

Source
Breadcrumb(["One", "Two", "Three"])

BubbleChart

role chart · defaults kind: "bubble"

Source
BubbleChart(values: [3, 5, 2, 6, 4])

Callout

a numbered annotation; place with .position(x:y:)

role callout · arguments number, text

1Text
Source
Callout(1, "Text")

CandlestickChart

role chart · defaults kind: "candlestick"

Source
CandlestickChart(values: [3, 5, 2, 6, 4])

Canvas

free-form area; place children with .position(x:y:); grid: .dots|.lines

role canvas

ContentAction
Source
Canvas() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)

Capsule

role shape · defaults shape: "capsule"

Source
Capsule().frame(width: 160, height: 96)

Chart

kind: .bar|.line|.area|.pie|.donut|.scatter|.bubble|.radar|.heatmap|.funnel|.treemap|.gauge|.candlestick|.combo|.sparkline; values:/series:/labels:/points:/matrix:

role chart

Source
Chart(values: [3, 5, 2, 6, 4])

Checkbox

role checkbox · arguments label

Label
Source
Checkbox("Label")

Chip

role chip · arguments label

Label
Source
Chip("Label")

Circle

role shape · defaults shape: "circle"

Source
Circle().frame(width: 160, height: 96)

CodeBlock

role code · arguments code · defaults lineNumbers: False

let total = items.count
Source
CodeBlock("let total = items.count")

CodeEditor

CodeEditor("…", language: "swift", lineNumbers:, highlight: [3], tabs: [..])

role code · arguments code

1let total = items.count
Source
CodeEditor("let total = items.count")

Color

role color · arguments color

Source
Color(.blue).frame(width: 160, height: 96)

ColorSwatches

colors: [.red, "#0af", …], selection:

role swatches

Source
ColorSwatches()

ComboChart

role chart · defaults kind: "combo"

Source
ComboChart(values: [3, 5, 2, 6, 4])

Comment

author:, time:, avatar:

role message · arguments text · defaults variant: "comment"

Text
Source
Comment("Text")

ControlGroup

role toolbar · defaults variant: "group"

Source
ControlGroup() { Button("Save"); Button("Share") }

DisclosureGroup

role accordion · arguments title

Title
Source
DisclosureGroup("Title") { Text("Content"); Button("Action") }

Divider

role divider

Source
Divider()

DonutChart

role chart · defaults kind: "donut"

Source
DonutChart(values: [3, 5, 2, 6, 4])

Dropzone

role dropzone · arguments label

Label
Source
Dropzone("Label")

Ellipse

role shape · defaults shape: "ellipse"

Source
Ellipse().frame(width: 160, height: 96)

EmptyState

title, systemImage:, description: { actions }

role emptystate · arguments title

Title
Source
EmptyState("Title")

FloatingActionButton

role fab · arguments icon

Source
FloatingActionButton("star")

FunnelChart

role chart · defaults kind: "funnel"

Source
FunnelChart(values: [3, 5, 2, 6, 4])

Gantt

scale: ["W1",…], tasks: [("Design", 0, 2, 0.6), …], today:

role gantt

1234567
Design
Build
Source
Gantt(tasks: [("Design", 0, 3), ("Build", 2, 5)])

Gauge

role progress · arguments value · defaults variant: "gauge"

Source
Gauge(60)

GaugeChart

role chart · defaults kind: "gauge"

Source
GaugeChart(values: [3, 5, 2, 6, 4])

Grid

Grid of GridRow children, or columns: n

role grid

ContentAction
Source
Grid() { Text("Content"); Button("Action") }

GridRow

role gridrow

ContentAction
Source
GridRow() { Text("Content"); Button("Action") }

Group

role group

ContentAction
Source
Group() { Text("Content"); Button("Action") }

GroupBox

role card · arguments title

Title
ContentAction
Source
GroupBox("Title") { Text("Content"); Button("Action") }

HStack

Horizontal stack. spacing:, alignment: .top|.center|.bottom

role hstack

ContentAction
Source
HStack() { Text("Content"); Button("Action") }

Heatmap

role chart · defaults kind: "heatmap"

Source
Heatmap(values: [3, 5, 2, 6, 4])

Histogram

role chart · defaults kind: "histogram"

Source
Histogram(values: [3, 5, 2, 6, 4])

IconButton

role button · arguments icon · defaults iconOnly: True

Source
IconButton("star")

KanbanCard

title, description:, tags: [..], assignees: [..], due:, comments:, priority:

role kanbancard · arguments title

Title
Source
KanbanCard("Title")

Kbd

Kbd(["⌘", "K"]) or Kbd("Esc")

role kbd · arguments keys

⌘K
Source
Kbd(["⌘", "K"])

LabeledContent

role labeled · arguments label, value

LabelContentAction
Source
LabeledContent("Label", "Value") { Text("Content"); Button("Action") }

LazyHGrid

role grid

ContentAction
Source
LazyHGrid() { Text("Content"); Button("Action") }

LazyHStack

role hstack

ContentAction
Source
LazyHStack() { Text("Content"); Button("Action") }

LazyVGrid

columns: [GridItem(.flexible()), …] or a count

role grid

ContentAction
Source
LazyVGrid() { Text("Content"); Button("Action") }

LazyVStack

role vstack

ContentAction
Source
LazyVStack() { Text("Content"); Button("Action") }

LineChart

role chart · defaults kind: "line"

Source
LineChart(values: [3, 5, 2, 6, 4])

ListItem

role listitem · arguments title

Title
Source
ListItem("Title")

Map

pins: [(x%, y%, "label")], route:, showsUserLocation:, height:

role map

Source
Map().frame(width: 160, height: 96)

MessageBubble

MessageBubble("Hi", from: .me|.them, author:, time:, status:, reactions: [..])

role message · arguments text

Text
Source
MessageBubble("Text")

role navitem · arguments label

Label
Source
NavItem("Label")

role listitem · arguments title · defaults chevron: True

Title
Source
NavigationLink("Title")

{ sidebar } content: { … } detail: { … }

role split

Content
Action
Source
NavigationSplitView() { Text("Content"); Button("Action") }

Content's .navigationTitle / .toolbar form the bar

role navstack

ContentAction
Source
NavigationStack() { Text("Content"); Button("Action") }

role navstack

ContentAction
Source
NavigationView() { Text("Content"); Button("Action") }

Pagination

role pagination

Source
Pagination()

Picker

Picker("Size", selection: "M") { Text("S") … }

role select · arguments label

Source
Picker("Label")

PieChart

role chart · defaults kind: "pie"

Source
PieChart(values: [3, 5, 2, 6, 4])

Placeholder

A labelled box for maps, charts, media

role placeholder · arguments label

Label
Source
Placeholder("Label").frame(width: 160, height: 96)

Pointer

Pointer(.arrow|.hand|.ibeam|.grab|.crosshair|.touch); place with .position

role pointer · arguments kind

Source
Pointer(.arrow)

ProgressView

value: 0…1 (or total:); none = indeterminate

role progress · arguments label

Label
Source
ProgressView("Label")

RadarChart

role chart · defaults kind: "radar"

Source
RadarChart(values: [3, 5, 2, 6, 4])

RadioGroup

role radiogroup · arguments label

Label
Source
RadioGroup("Label")

Rating

role rating · arguments value

Source
Rating(60)

Rectangle

role shape · defaults shape: "rectangle"

Source
Rectangle().frame(width: 160, height: 96)

RoundedRectangle

role shape · defaults shape: "rounded"

Source
RoundedRectangle().frame(width: 160, height: 96)

Row

title, subtitle:, detail:, systemImage:, chevron:

role listitem · arguments title

Title
Source
Row("Title")

ScatterChart

role chart · defaults kind: "scatter"

Source
ScatterChart(values: [3, 5, 2, 6, 4])

Schedule

days: [..], startHour:, endHour:, events: [("Standup", "Mon", 9, 9.5, .blue)], now:

role schedule

8:009:0010:0011:0012:0013:0014:0015:0016:0017:00
Mon
Tue
Wed
Thu
Fri
Source
Schedule()

ScrollView

role scroll · arguments axes

ContentAction
Source
ScrollView() { Text("Content"); Button("Action") }

Section

Section("Header") { … } footer: { … }

role section · arguments title

Title
First itemSecond item
Source
Section("Title") { Text("First item"); Text("Second item") }

SecureField

role textfield · arguments placeholder · defaults kind: "password"

Placeholder
Source
SecureField("Placeholder")

SegmentedControl

role segmented · arguments items

OneTwoThree
Source
SegmentedControl(["One", "Two", "Three"])

SelectionRect

a drag-selection rectangle; size with .frame, place with .position

role marquee

Source
SelectionRect()

Sheet

role dialog · arguments title · defaults variant: "sheet"

Source
Sheet("Title") { Text("Content"); Button("Action") }

role sidebar · arguments title

Source
Sidebar("Title") { Text("Content"); Button("Action") }

Skeleton

lines:, avatar:, image:, shape: .circle|.rectangle|.text

role skeleton

Source
Skeleton().frame(width: 160, height: 96)

Spacer

role spacer

Source
Spacer()

Sparkline

role chart · arguments values · defaults kind: "sparkline"

Source
Sparkline([3, 5, 2, 6, 4], values: [3, 5, 2, 6, 4])

Spreadsheet

rows: [[…]], selection: "B2:C4", active:, formula:, sheets: [..], highlight: ["B3": .yellow]

role spreadsheet

AB
1AB
212
334
Source
Spreadsheet(columns: ["A", "B"], rows: [[1, 2], [3, 4]])

Stat

Stat("Revenue", "$48k", change: "+12%", trend: [..], systemImage:)

role stat · arguments label, value

Label
60
Source
Stat("Label", 60)

Stepper

role stepper · arguments label

Label
Source
Stepper("Label")

Steps

role steps · arguments steps

1Cart
2Shipping
3Payment
Source
Steps(["Cart", "Shipping", "Payment"])

StickyNote

StickyNote("Call Ana", color: .yellow, rotation: -2, author:)

role stickynote · arguments text

Text
Source
StickyNote("Text")

Tab

Tab("Home", systemImage: "house") { … }

role tab · arguments label

Source
Tab("Label")

TabView

Children with .tabItem { Label } or Tab(…)

role tabs · defaults placement: "bottom"

OneTwo
First tab
Source
TabView() { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }

TableColumn

role tablecolumn · arguments title

Source
TableColumn("Title")

TableRow

role tablerow

Source
TableRow()

Tabs

role tabs · arguments items · defaults placement: "top"

OneTwo
First tab
Source
Tabs(["One", "Two", "Three"]) { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }

Tag

role chip · arguments label

Label
Source
Tag("Label")

Terminal

lines starting with "$ " are commands

role code · arguments code · defaults variant: "terminal"

Terminal
let total = items.count
Source
Terminal("let total = items.count")

TextEditor

role textfield · arguments text · defaults kind: "multiline"

Text
Source
TextEditor("Text")

TextField

TextField("Placeholder", text: "value")

role textfield · arguments placeholder

Placeholder
Source
TextField("Placeholder")

Timeline

role timeline

Created
Shipped
Source
Timeline() { TimelineItem("Created"); TimelineItem("Shipped") }

TimelineItem

title, time:, description:, systemImage:, status:

role timelineitem · arguments title

Title
Source
TimelineItem("Title")

Toast

role toast · arguments message

Message
Source
Toast("Message")

Toggle

Toggle("Wi-Fi", isOn: true)

role toggle · arguments label

Label
Source
Toggle("Label")

ToolbarItem

ToolbarItem(placement: .topBarTrailing) { … }

role toolbaritem

ContentAction
Source
ToolbarItem() { Text("Content"); Button("Action") }

ToolbarItemGroup

role toolbaritem

ContentAction
Source
ToolbarItemGroup() { Text("Content"); Button("Action") }

Tooltip

role tooltip · arguments text

ContentActionText
Source
Tooltip("Text") { Text("Content"); Button("Action") }

Tree

Tree { TreeItem("src") { TreeItem("main.swift") } }

role tree

Folder
File
Source
Tree() { TreeItem("Folder") { TreeItem("File") } }

TreeItem

label, systemImage:, folder:, expanded:, selected:, detail:

role treeitem · arguments label

Label
Source
TreeItem("Label")

Treemap

role chart · defaults kind: "treemap"

Source
Treemap(values: [3, 5, 2, 6, 4])

VStack

Vertical stack. spacing:, alignment: .leading|.center|.trailing

role vstack

ContentAction
Source
VStack() { Text("Content"); Button("Action") }

VideoPlayer

poster image, progress: 0…1, time:, duration:, playing:

role media · arguments image

Source
VideoPlayer().frame(width: 160, height: 96)

Whiteboard

role canvas · defaults grid: "dots"

ContentAction
Source
Whiteboard() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)

ZStack

Overlapping layers. alignment:

role zstack

ContentAction
Source
ZStack() { Text("Content"); Button("Action") }