Skip to content

KDE Plasma (Breeze)

Imitates: KDE Plasma 6 apps · Kirigami (KF6) and Qt Widgets · Breeze style, Breeze Light / Breeze Dark colours Plasma 6.2 · KDE Frameworks 6 · Pack id: kde-plasma · Selected by: pack="kde-plasma", import KDE, import Plasma, import Breeze, import Kirigami, import KF6 · Default device: desktop (kde chrome)

113 own elements, plus 119 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

AbstractCard

Kirigami.AbstractCard { … } — the card frame with free content

role card · arguments title

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

Action

Kirigami.Action("Add", icon: "list-add") — shown as a tool button in toolbars and page headers

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

Label
Source
Action("Label")

ActionButton

Kirigami floating action button (Plasma Mobile pages)

role fab · arguments icon

Source
ActionButton("star")

ActionTextField

Kirigami.ActionTextField with inline actions

role textfield · arguments placeholder · defaults clearButton: True

Placeholder
Source
ActionTextField("Placeholder")

ActionToolBar

Kirigami.ActionToolBar { Action… }

role toolbar · defaults variant: "actions"

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

ApplicationWindow

Kirigami.ApplicationWindow { GlobalDrawer { … } PageRow { Page… } } — drawer and page stack side by side, filling the window

role hstack · defaults alignment: "top"

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

Avatar

Kirigami.Avatar("Ana Diaz", image:, size: .small|.large)

role avatar · arguments name

AL
Source
Avatar("Ana Lima")

Dolphin's location bar (KUrlNavigator) in breadcrumb mode: Breadcrumb(["Home", "Documents", "Taxes"])

role breadcrumb · arguments items

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

BusyIndicator

BusyIndicator() — the spinning process-working icon

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

Label
Source
BusyIndicator("Label")

Button

Button("Apply", icon: "dialog-ok-apply") · highlighted: true for the default button · flat: true · checked: true

role button · arguments label · defaults variant: "normal" · variants normal, flat, highlighted, default

Labelnormal
Labelflat
Labelhighlighted
Labeldefault
Source
HStack(alignment: .top, spacing: 16) {
  VStack(alignment: .leading, spacing: 4) { Button("Label").variant("normal"); Text("normal").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Label").variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Label").variant("highlighted"); Text("highlighted").font(.caption).foregroundStyle(.secondary) }
  VStack(alignment: .leading, spacing: 4) { Button("Label").variant("default"); Text("default").font(.caption).foregroundStyle(.secondary) }
}

ButtonGroup

ButtonGroup(items: ["A", "B"], selection: "A") — exclusive radio buttons

role radiogroup · arguments label

Label
Source
ButtonGroup("Label")

Card

Kirigami.Card("Title", subtitle:, image:) { contentItem } actions: { Action… }

role card · arguments title

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

CardsLayout

Kirigami.CardsLayout(columns: 3) { Card… }

role grid · defaults columns: 2

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

CheckBox

CheckBox("Show hidden files", checked: true | .indeterminate)

role checkbox · arguments label

Label
Source
CheckBox("Label")

CheckDelegate

CheckDelegate("Item", checked: true)

role listitem · arguments title · defaults checkbox: True

Title
Source
CheckDelegate("Title")

Chip

Kirigami.Chip("Tag", closable: true, checked: true)

role chip · arguments label · defaults checkmark: False

Label
Source
Chip("Label")

ColumnLayout

QtQuick.Layouts ColumnLayout(spacing: 6)

role vstack · defaults alignment: "leading"

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

ComboBox

ComboBox(items: ["Icons", "Details"], selection: "Icons", open: true) — label: is the FormLayout label

role select · arguments label

Source
ComboBox("Label")

ContextDrawer

Kirigami.ContextDrawer("Actions") { … } — page-specific actions on the right

role sidebar · arguments title · defaults variant: "context"

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

ContextualHelpButton

Kirigami.ContextualHelpButton — a (?) tool button

role button · arguments label · defaults icon: "help-contents", iconOnly: True, variant: "tool"

Source
ContextualHelpButton("Label")

DetailsView

Dolphin's details view: DetailsView(columns: ["Name", "Size", "Modified"], rows: …, selection: [0])

role table · defaults variant: "details"

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

Dial

QQC2 Dial(value:)

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

Source
Dial(60)

Dialog

Kirigami.Dialog("Title", buttons: ["OK", "Cancel"], primary: "OK") { content }

role dialog · arguments title · defaults closable: True

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

DockWidget

QDockWidget / Kate tool view: a titled panel (Dolphin Information, Kate Projects…)

role card · arguments title · defaults variant: "dock"

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

DrawerAction

An action in a GlobalDrawer: DrawerAction("Inbox", icon:, badge:) · .selected()

role navitem · arguments label

Label
Source
DrawerAction("Label")

FlexColumn

Kirigami.FlexColumn — a centred column of limited width

role vstack · defaults alignment: "stretch"

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

FormButtonDelegate

FormButtonDelegate("About", icon:, description:)

role listitem · arguments title · defaults chevron: True

Title
Source
FormButtonDelegate("Title")

FormCard

Kirigami Addons FormCard { FormTextDelegate … }

role card · arguments title · defaults variant: "formcard"

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

FormCardPage

Kirigami Addons FormCardPage("Settings") { FormHeader … FormCard { … } }

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

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

FormCheckDelegate

FormCheckDelegate("Show badge", checked: true)

role checkbox · arguments label

Label
Source
FormCheckDelegate("Label")

FormComboBoxDelegate

FormComboBoxDelegate("Theme", items:, selection:)

role select · arguments label

Source
FormComboBoxDelegate("Label")

FormDelegateSeparator

Separator between FormCard delegates

role divider

Source
FormDelegateSeparator()

FormHeader

FormHeader("General") — the title above a FormCard

role text · arguments content

Content
Source
FormHeader("Content")

FormLayout

Kirigami.FormLayout { TextField(label: "Name:") … } — labels right-aligned in a column, controls left-aligned

role form

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

FormRow

FormRow("Clicking files:") { RadioButton… } — any content under a right-aligned FormLayout label

role labeled · arguments label

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

FormSection

A FormLayout section: Kirigami.Separator with Kirigami.FormData.isSection and a label

role section · arguments title

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

FormSwitchDelegate

FormSwitchDelegate("Notifications", description:, checked: true)

role toggle · arguments label

Label
Source
FormSwitchDelegate("Label")

FormTextDelegate

FormTextDelegate("Version", description: "6.2")

role listitem · arguments title

Title
Source
FormTextDelegate("Title")

FormTextFieldDelegate

FormTextFieldDelegate("Name", text:)

role textfield · arguments label

Source
FormTextFieldDelegate("Label")

Frame

QQC2 Frame / QFrame: a bordered box

role card · arguments title · defaults variant: "frame"

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

GlobalDrawer

Kirigami.GlobalDrawer("App", titleIcon:) { Action / NavItem… } — the application's main navigation

role sidebar · arguments title · defaults variant: "global"

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

GridLayout

GridLayout(columns: 3) { … }

role grid

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

GroupBox

GroupBox("Title") { … } — QGroupBox with its title above the frame

role card · arguments title · defaults variant: "groupbox"

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

HamburgerMenu

The KHamburgerMenu button at the end of the toolbar (open: true shows the menu)

role menu · arguments label · defaults icon: "application-menu", variant: "tool"

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

Heading

Kirigami.Heading("Title", level: 1…5) — 1.35×, 1.2×, 1.15×, 1.1×, 1× the default font; type: .primary is bold

role text · arguments content · defaults level: 1

Content
Source
Heading("Content")

IconView

Dolphin's icons view: IconView(columns: 6) { file items }

role grid · defaults columns: 6

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

InlineMessage

Kirigami.InlineMessage("Text", type: .information|.positive|.warning|.error, showCloseButton: true, position: .header) actions: { Action… }

role alert · arguments text · defaults type: "information"

Source
InlineMessage("Text")

ItemDelegate

QQC2 ItemDelegate

role listitem · arguments title

Title
Source
ItemDelegate("Title")

KCM

A System Settings module page: KCM("Mouse") { FormLayout { … } } · .toolbar { ToolbarItem(placement: .bottomBar) { Help / Defaults / Reset / Apply } }

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

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

KCMCategory

KCMCategory("Appearance", icon:, chevron: true) · .selected() — chevron: a category holding sub-pages

role navitem · arguments label

Label
Source
KCMCategory("Label")

KCMSidebar

System Settings' category sidebar: KCMSidebar { SearchField KCMCategory… }

role sidebar · arguments title · defaults variant: "kcm"

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

KMessageWidget

KMessageWidget (Qt Widgets): KMessageWidget("Text", type: .warning)

role alert · arguments text · defaults type: "information"

Source
KMessageWidget("Text")

LinkButton

Kirigami.LinkButton("Learn more")

role link · arguments label, destination

Label
Source
LinkButton("Label")

ListItem

ListItem("Title", subtitle:, icon:, detail:) — Kirigami delegate

role listitem · arguments title

Title
Source
ListItem("Title")

ListSectionHeader

Kirigami.ListSectionHeader("Today") { rows }

role section · arguments title

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

ListView

ListView { ItemDelegate… }

role list

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

LoadingPlaceholder

Kirigami.LoadingPlaceholder

role skeleton

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

MainWindow

QMainWindow / KXmlGuiWindow: MenuBar, ToolBar, central widget and StatusBar stacked, filling the window

role vstack · defaults alignment: "stretch"

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

Menu { MenuItem("Copy", icon: "edit-copy", shortcut: "Ctrl+C") … }

role menu · arguments label

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

MenuBar { MenuBarItem("File") … }

role toolbar · defaults variant: "menubar"

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

MenuBarItem("Edit", open: true) { MenuItem… }

role menu · arguments label · defaults caret: False, variant: "menubar"

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

Kirigami.MenuDialog

role dialog · arguments title · defaults closable: True

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

MenuItem("Paste", icon:, shortcut:, checked:)

role menuitem · arguments label

Source
MenuItem("Label")

A separator line in a Menu

role divider

Source
MenuSeparator()

MessageBox

KMessageBox("Title", message:, icon: "dialog-warning", buttons: […])

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

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

Kirigami.NavigationTabBar { NavigationTabButton("Home", icon:) … } — the Plasma Mobile bottom bar

role tabs · defaults placement: "bottom", variant: "navigation"

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

NavigationTabButton("Library", icon: "folder", badge: 3)

role tab · arguments label

Source
NavigationTabButton("Label")

Notification

A Plasma notification popup: Notification("Title", body:, icon:) actions: { HStack { Button… } }

role toast · arguments message · defaults closable: True, position: "bottomTrailing"

Message
Source
Notification("Message")

OverlayDrawer

Kirigami.OverlayDrawer

role sidebar · arguments title · defaults variant: "global"

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

OverlaySheet

Kirigami.OverlaySheet

role dialog · arguments title · defaults closable: True

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

Page

Kirigami.Page("Title") { … } — title on the left of the page header; .toolbar { Action… } for page actions

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

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

PageRow

Kirigami PageRow (pageStack): pages side by side as columns — the first ones 360 px wide, the last fills

role split

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

PasswordField

Kirigami.PasswordField(text: "secret")

role textfield · arguments placeholder · defaults kind: "password", reveal: True

Placeholder
Source
PasswordField("Placeholder")

PlaceholderMessage

Kirigami.PlaceholderMessage("No files", explanation: "…", icon: "folder") { helpfulAction Button }

role emptystate · arguments title · defaults icon: "dialog-information"

Title
Source
PlaceholderMessage("Title")

PlacesItem

PlacesItem("Home", icon: "user-home") · .selected()

role navitem · arguments label

Label
Source
PlacesItem("Label")

PlacesPanel

Dolphin's Places panel: PlacesPanel { Section("Places") { PlacesItem… } … }

role sidebar · arguments title · defaults variant: "places"

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

PlasmaPanel

The Plasma panel (task manager, system tray, clock) — place at the bottom of a desktop mockup

role toolbar · defaults variant: "panel"

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

Plasmoid

A Plasma applet popup / desktop widget

role card · arguments title · defaults variant: "plasmoid"

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

ProgressBar

ProgressBar(value: 0.6) — no value = indeterminate

role progress · arguments label

Label
Source
ProgressBar("Label")

PromptDialog

Kirigami.PromptDialog("Delete file?", subtitle: "…", buttons: ["Delete", "Cancel"], destructive: "Delete")

role dialog · arguments title

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

RadioButton

RadioButton("Single-click", checked: true)

role radio · arguments label

Label
Source
RadioButton("Label")

RadioDelegate

RadioDelegate("Item", checked: true)

role radio · arguments label

Label
Source
RadioDelegate("Label")

RangeSlider

RangeSlider(value: [20, 80])

role slider · arguments label

Label
Source
RangeSlider("Label")

RoundButton

QQC2 RoundButton(icon:)

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

Source
RoundButton("star")

RowLayout

QtQuick.Layouts RowLayout(spacing: 6)

role hstack

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

ScrollView

QQC2 ScrollView (static)

role scroll · arguments axes

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

ScrollablePage

Kirigami.ScrollablePage("Title") { … } — a Page whose content scrolls

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

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

SearchField

Kirigami.SearchField(text:)

role textfield · arguments placeholder · defaults kind: "search", placeholder: "Search…"

Search…
Source
SearchField()

SelectableLabel

Kirigami.SelectableLabel

role text · arguments content

Content
Source
SelectableLabel("Content")

Separator

Kirigami.Separator — a 1 px line in the frame colour

role divider

Source
Separator()

Slider

Slider(value: 40, from: 0, to: 100, ticks: 10)

role slider · arguments label

Label
Source
Slider("Label")

SpinBox

SpinBox(value: 5, suffix: " px") — up/down arrows on the right

role textfield · arguments value · defaults kind: "number", trailingIcon: "chevron.up.down"

Value
Source
SpinBox("Value")

SplitView

QQC2 SplitView

role split

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

Splitter

QSplitter / SplitView: children side by side with a handle; columnWidths: [240, 600]

role split

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

StatusBar

QStatusBar (Dolphin, Kate): small text on the left, zoom slider and free-space bar on the right

role toolbar · defaults variant: "statusbar"

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

SubtitleDelegate

Kirigami.SubtitleDelegate("Title", subtitle:, icon:)

role listitem · arguments title

Title
Source
SubtitleDelegate("Title")

SwipeListItem

Kirigami.SwipeListItem("Title", subtitle:) actions: { Action… } — inline actions at the end

role listitem · arguments title

Title
Source
SwipeListItem("Title")

Switch

Switch("Enable", checked: true) — the indicator sits before the text

role toggle · arguments label

Label
Source
Switch("Label")

SwitchDelegate

SwitchDelegate("Item", checked: true)

role toggle · arguments label

Label
Source
SwitchDelegate("Label")

SystemMonitorSensor

A System Monitor sensor face: SystemMonitorSensor("CPU", "23 %", trend: [...])

role stat · arguments label, value

Label
60
Source
SystemMonitorSensor("Label", 60)

TabBar

TabBar(selection: "Files") { TabButton("Files") … }

role tabs · defaults placement: "top"

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

TabButton

TabButton("General", icon:) { content }

role tab · arguments label

Source
TabButton("Label")

TabWidget

QTabWidget / document tabs (Kate, Konsole): TabWidget { TabButton("main.cpp") { … } }

role tabs · defaults placement: "top", variant: "document"

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

TableView

QTableView / TableView(columns: [...], rows: [[...]], selection: [1])

role table

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

TextArea

TextArea(text:, rows: 4)

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

Text
Source
TextArea("Text")

TextField

TextField("Placeholder", text:, label:) — label: is the FormLayout label

role textfield · arguments placeholder

Placeholder
Source
TextField("Placeholder")

ToolBar

ToolBar { ToolButton… } — the main window toolbar, merged with the title bar in Plasma 6

role toolbar

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

ToolButton

ToolButton("Split", icon: "view-split-left-right") — flat until hovered; checked: true

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

Label
Source
ToolButton("Label")

ToolTip

ToolTip("Hint") { target }

role tooltip · arguments text

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

TreeView

QTreeView / TreeView { TreeViewItem("src", folder: true) { … } }

role tree

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

TreeViewItem

TreeViewItem("main.cpp", icon:, expanded:, selected:)

role treeitem · arguments label

Label
Source
TreeViewItem("Label")

UrlButton

Kirigami.UrlButton("kde.org")

role link · arguments label, destination

Label
Source
UrlButton("Label")

UrlNavigator

KUrlNavigator — same as Breadcrumb

role breadcrumb · arguments items

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

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") }

BubbleChart

role chart · defaults kind: "bubble"

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

Calendar

role calendar

November 2026
SuMoTuWeThFrSa12345678910111213141516171819202122232425262728293012345
Source
Calendar()

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")

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") }

DatePicker

selection: "2026-11-23"; .datePickerStyle(.graphical)

role datepicker · arguments label

Source
DatePicker("Label")

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")

Form

role form

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

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") }

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])

Icon

role icon · arguments name

Source
Icon("star")

IconButton

role button · arguments icon · defaults iconOnly: True

Source
IconButton("star")

Image

Image("path.png") or Image(systemName: "star")

role image · arguments name

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

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"])

Label

Label("Inbox", systemImage: "tray")

role label · arguments title

Title
Source
Label("Title")

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])

role link · arguments label, destination

Label
Source
Link("Label")

List

.listStyle(.insetGrouped|.plain|.sidebar|…)

role list

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

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()

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") } }

Table

columns: ["Name", …], rows: [[…], …] or TableRow children

role table

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

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")

Text

Text with bold, italic, code Markdown

role text · arguments content

Content
Source
Text("Content")

TextEditor

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

Text
Source
TextEditor("Text")

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")

Toolbar

role toolbar

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

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") }