Vuetify¶
Imitates: Vuetify 3 · Vue 3, default theme (Material Design 2 blueprint) 3.x · Pack id: vuetify · Selected by: pack="vuetify", import Vuetify, import Vue · Default device: desktop (browser chrome)
141 own elements, plus 134 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¶
VAlert¶
VAlert("Saved.", type: "success", title:, variant: "tonal" | "outlined" | "flat", closable: true, density:)
role alert · arguments message · defaults variant: "flat" · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VAlert("Message").variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAlert("Message").variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAlert("Message").variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAlert("Message").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAlert("Message").variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAlert("Message").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VAlertTitle¶
Bold first line of a VAlert
role text · arguments content
Source
VAlertTitle("Content")VApp¶
Root of every Vuetify app: a full-height column on the theme background
role vstack · defaults alignment: "stretch", spacing: 0
Source
VApp() { Text("Content"); Button("Action") }VAppBar¶
VAppBar(title: "Inbox", color: "primary", density: "compact") { VBtn(icon: "mdi-magnify") } — 64px top bar, elevation 4; leading: { VAppBarNavIcon() }
role appbar · arguments title
Source
VAppBar("Title") { Text("Content"); Button("Action") }VAppBarNavIcon¶
The ☰ icon button at the start of a VAppBar
role button · defaults icon: "mdi-menu", iconOnly: True, variant: "text"
Source
VAppBarNavIcon()VAppBarTitle¶
Title text of a VAppBar (1.25rem)
role text · arguments content
Source
VAppBarTitle("Content")VAutocomplete¶
VAutocomplete("State", items: [..], modelValue: [..]) — filterable select; multiple values render chips
role select · arguments label · defaults variant: "filled" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VAutocomplete("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAutocomplete("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAutocomplete("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAutocomplete("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAutocomplete("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAutocomplete("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAutocomplete("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VAvatar¶
VAvatar(image: "avatar-1.svg", size: 40) · VAvatar("Ana Lima", color: "primary") · VAvatar(icon: "mdi-account", rounded: 0)
role avatar · arguments name · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VAvatar("Ana Lima").variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAvatar("Ana Lima").variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAvatar("Ana Lima").variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAvatar("Ana Lima").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAvatar("Ana Lima").variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VAvatar("Ana Lima").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VBadge¶
VBadge(content: 6, color: "error") { VIcon("mdi-bell") } · dot: true
role badge · arguments content
Source
VBadge("Content")VBanner¶
VBanner("No internet connection", icon: "mdi-wifi-strength-alert-outline") actions: { VBtn("Retry", variant: "text") } — full-width strip with a bottom border
role alert · arguments message · defaults severity: "info"
Source
VBanner("Message")VBannerActions¶
Action buttons of a VBanner
role hstack
Source
VBannerActions() { Text("Content"); Button("Action") }VBottomNavigation¶
VBottomNavigation(value: 0, color: "primary", items: [["title": "Home", "icon": "mdi-home"], …]) — 56px bar, icon above label (or VTab children)
role tabs · defaults placement: "bottom"
Source
VBottomNavigation() { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }VBottomSheet¶
VBottomSheet { VList … } — sheet sliding up from the bottom
role dialog · arguments title · defaults variant: "sheet"
Source
VBottomSheet("Title") { Text("Content"); Button("Action") }VBreadcrumbs¶
VBreadcrumbs(items: ["Dashboard", "Orders", "#10423"], divider: "/")
role breadcrumb · arguments items
Source
VBreadcrumbs(["One", "Two", "Three"])VBreadcrumbsItem¶
One item of a VBreadcrumbs
role link · arguments label
Source
VBreadcrumbsItem("Label")VBtn¶
VBtn("Save", color: "primary", variant: "tonal", size: "small", density: "compact", rounded: "pill", prependIcon: "mdi-content-save") · VBtn(icon: "mdi-heart")
role button · arguments label · defaults variant: "elevated" · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VBtn("Label").variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtn("Label").variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtn("Label").variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtn("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtn("Label").variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtn("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VBtnGroup¶
VBtnGroup(variant: "outlined", divided: true) { VBtn … } — joined buttons
role toolbar · defaults variant: "elevated" · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VBtnGroup() { Button("Save"); Button("Share") }.variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnGroup() { Button("Save"); Button("Share") }.variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnGroup() { Button("Save"); Button("Share") }.variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnGroup() { Button("Save"); Button("Share") }.variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnGroup() { Button("Save"); Button("Share") }.variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnGroup() { Button("Save"); Button("Share") }.variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VBtnToggle¶
VBtnToggle(variant: "outlined", divided: true) { VBtn(icon: "mdi-format-bold").selected() … } — joined toggle buttons
role toolbar · defaults variant: "text" · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VBtnToggle() { Button("Save"); Button("Share") }.variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnToggle() { Button("Save"); Button("Share") }.variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnToggle() { Button("Save"); Button("Share") }.variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnToggle() { Button("Save"); Button("Share") }.variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnToggle() { Button("Save"); Button("Share") }.variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VBtnToggle() { Button("Save"); Button("Share") }.variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VCard¶
VCard(title:, subtitle:, prependIcon:, image:, variant: "outlined") { VCardText … } actions: { VBtn("Ok", variant: "text") }
role card · arguments title · defaults variant: "elevated" · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VCard("Title") { Text("Content"); Button("Action") }.variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCard("Title") { Text("Content"); Button("Action") }.variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCard("Title") { Text("Content"); Button("Action") }.variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCard("Title") { Text("Content"); Button("Action") }.variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCard("Title") { Text("Content"); Button("Action") }.variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCard("Title") { Text("Content"); Button("Action") }.variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VCardActions¶
VCardActions { VSpacer(); VBtn("Cancel", variant: "text") … } — 8px-padded button row
role hstack · defaults spacing: 8
Source
VCardActions() { Text("Content"); Button("Action") }VCardItem¶
Header block of a VCard (title, subtitle, prepend/append)
role vstack · defaults alignment: "stretch"
Source
VCardItem() { Text("Content"); Button("Action") }VCardSubtitle¶
VCardSubtitle("…") — medium-emphasis 0.875rem line under the title
role text · arguments content
Source
VCardSubtitle("Content")VCardText¶
VCardText { … } — 16px-padded body of a VCard (0.875rem)
role vstack · arguments text · defaults alignment: "stretch"
Source
VCardText("Text") { Text("Content"); Button("Action") }VCardTitle¶
VCardTitle("Title") — 1.25rem / 500 heading of a VCard
role text · arguments content
Source
VCardTitle("Content")VCarousel¶
VCarousel("photo.svg") — slideshow (shows its first slide)
role image · arguments src
Source
VCarousel().frame(width: 160, height: 96)VCarouselItem¶
VCarouselItem(src: "photo.svg")
role image · arguments src
Source
VCarouselItem().frame(width: 160, height: 96)VCheckbox¶
VCheckbox("Remember me", modelValue: true, color: "primary", density: "compact")
role checkbox · arguments label
Source
VCheckbox("Label")VCheckboxBtn¶
The bare checkbox control (no label)
role checkbox · arguments label
Source
VCheckboxBtn("Label")VChip¶
VChip("Active", color: "success", variant: "tonal" | "flat" | "outlined" | "elevated" | "text", size: "small", closable: true, prependIcon:, label: true)
role chip · arguments label · defaults variant: "tonal" · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VChip("Label").variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VChip("Label").variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VChip("Label").variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VChip("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VChip("Label").variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VChip("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VChipGroup¶
VChipGroup(selectedClass: "text-primary", column: true) { VChip … }
role hstack · defaults spacing: 8
Source
VChipGroup() { Text("Content"); Button("Action") }VCode¶
Inline code
role code · arguments code
Source
VCode("let total = items.count")VCol¶
VCol(cols: 6) — column spanning cols/12 of a VRow (cols: 0 = auto grow)
role vstack · arguments size · defaults alignment: "stretch"
Source
VCol() { Text("Content"); Button("Action") }VCombobox¶
VCombobox("Tags", items: [..], modelValue: [..], chips: true) — select that accepts new values
role select · arguments label · defaults variant: "filled" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VCombobox("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCombobox("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCombobox("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCombobox("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCombobox("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCombobox("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VCombobox("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VConfirmEdit¶
Save / Cancel wrapper around an editable value
role hstack
Source
VConfirmEdit() { Text("Content"); Button("Action") }VContainer¶
Centered, padded (16px) content column; fluid: true for full width
role vstack · defaults alignment: "stretch"
Source
VContainer() { Text("Content"); Button("Action") }VDataIterator¶
Custom layout over items with the data-table plumbing
role vstack · defaults alignment: "stretch"
Source
VDataIterator() { Text("Content"); Button("Action") }VDataTable¶
VDataTable(headers: [..], items: [[..]], search:, sortBy: 2, showSelect: true, selectedRows: [1], itemsPerPage: 10) — sortable table with footer
role table
| Name | Status |
|---|---|
| Ana Lima | Active |
| Ben Okafor | Away |
Source
VDataTable(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]])VDataTableFooter¶
VDataTableFooter("Items per page: 10 ▾ 1-10 of 42") — the table footer with first/prev/next/last
role pagination · arguments summary
Source
VDataTableFooter("Summary")VDataTableServer¶
Server-side VDataTable (same look)
role table
| Name | Status |
|---|---|
| Ana Lima | Active |
| Ben Okafor | Away |
Source
VDataTableServer(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]])VDataTableVirtual¶
Virtualised VDataTable (no footer)
role table
| Name | Status |
|---|---|
| Ana Lima | Active |
| Ben Okafor | Away |
Source
VDataTableVirtual(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]])VDateInput¶
VDateInput("Delivery date", modelValue: "2026-11-23") — text field opening a VDatePicker
role datepicker · arguments label · defaults variant: "filled" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VDateInput("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VDateInput("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VDateInput("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VDateInput("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VDateInput("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VDateInput("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VDateInput("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VDatePicker¶
VDatePicker(modelValue: "2026-11-23", title: "Select date", showAdjacentMonths: true)
role calendar
Source
VDatePicker()VDefaultsProvider¶
Sets default props for its subtree (renders its children)
role group
Source
VDefaultsProvider() { Text("Content"); Button("Action") }VDialog¶
VDialog(title: "Delete file?", maxWidth: 400) { VCardText … } actions: { VBtn … } — modal card over a scrim
role dialog · arguments title
Source
VDialog("Title") { Text("Content"); Button("Action") }VDivider¶
VDivider() · VDivider(vertical: true) · inset: true · thickness:
role divider · variants inset
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VDivider().variant("inset"); Text("inset").font(.caption).foregroundStyle(.secondary) }
}VEmptyState¶
VEmptyState(headline: "No orders yet", title:, text:, icon: "mdi-cart") { VBtn … }
role emptystate · arguments title
Source
VEmptyState("Title")VExpansionPanel¶
VExpansionPanel(title: "Shipping", text: "…", expanded: true) { content }
role accordion · arguments title
Source
VExpansionPanel("Title") { Text("Content"); Button("Action") }VExpansionPanelText¶
Body of a VExpansionPanel
role vstack · defaults alignment: "stretch"
Source
VExpansionPanelText() { Text("Content"); Button("Action") }VExpansionPanelTitle¶
Header of a VExpansionPanel
role text · arguments content
Source
VExpansionPanelTitle("Content")VExpansionPanels¶
VExpansionPanels(variant: "accordion" | "inset" | "popout") { VExpansionPanel(title:, text:) … }
role vstack · defaults alignment: "stretch", spacing: 0 · variants default, accordion, inset, popout
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VExpansionPanels() { Text("Content"); Button("Action") }.variant("default"); Text("default").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VExpansionPanels() { Text("Content"); Button("Action") }.variant("accordion"); Text("accordion").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VExpansionPanels() { Text("Content"); Button("Action") }.variant("inset"); Text("inset").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VExpansionPanels() { Text("Content"); Button("Action") }.variant("popout"); Text("popout").font(.caption).foregroundStyle(.secondary) }
}VFab¶
VFab(icon: "mdi-plus", color: "primary") · extended: VFab(icon:, label: "Compose")
role fab · arguments icon · defaults color: "primary" · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VFab("star").variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFab("star").variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFab("star").variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFab("star").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFab("star").variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFab("star").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VField¶
The bare field box of an input
role textfield · arguments label · defaults variant: "filled" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VField("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VField("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VField("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VField("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VField("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VField("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VField("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VFileInput¶
VFileInput("Attachment", modelValue: "report.pdf", chips: true) — file field with a paperclip prepend icon
role textfield · arguments label · defaults icon: "mdi-paperclip", variant: "filled" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VFileInput("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFileInput("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFileInput("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFileInput("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFileInput("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFileInput("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VFileInput("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VFileUpload¶
VFileUpload(title: "Drag and drop files") — drop zone with browse button
role dropzone · arguments label
Source
VFileUpload("Label")VFooter¶
VFooter(border: true) { Text("© 2026 Acme") } — footer bar at the bottom of the app
role toolbar
Source
VFooter() { Button("Save"); Button("Share") }VForm¶
VForm { VTextField … } — a column of fields with 8px gaps
role vstack · defaults alignment: "stretch"
Source
VForm() { Text("Content"); Button("Action") }VHover¶
Hover state provider (renders its children)
role group
Source
VHover() { Text("Content"); Button("Action") }VIcon¶
VIcon("mdi-home", color: "primary", size: "large") — Material Design Icons by name
role icon · arguments name
Source
VIcon("star")VIconBtn¶
VIconBtn(icon: "mdi-cog") — compact icon-only button
role button · arguments icon · defaults iconOnly: True, variant: "text"
Source
VIconBtn("star")VImg¶
VImg(src: "photo.svg", height: 200, cover: true)
role image · arguments src
Source
VImg().frame(width: 160, height: 96)VInfiniteScroll¶
VInfiniteScroll(height: 300) { items … VProgressCircular } — scroll area that loads more at its end
role scroll
Source
VInfiniteScroll() { Text("Content"); Button("Action") }VInput¶
Base input wrapper
role textfield · arguments label · defaults variant: "plain"
Source
VInput("Label")VItem¶
One selectable item of a VItemGroup
role group
Source
VItem() { Text("Content"); Button("Action") }VItemGroup¶
Selection group around VItem children
role hstack
Source
VItemGroup() { Text("Content"); Button("Action") }VLayout¶
Layout container for app bar / drawer / main (row; nest VLayout for columns)
role hstack · defaults alignment: "top", spacing: 0
Source
VLayout() { Text("Content"); Button("Action") }VLazy¶
Renders its children when visible
role group
Source
VLazy() { Text("Content"); Button("Action") }VList¶
VList(nav: true, density: "compact", lines: "two") { VListSubheader("…"); VListItem(title:, subtitle:, prependIcon:) }
role list
Source
VList() { Text("First item"); Text("Second item") }VListGroup¶
VListGroup("Admin", prependIcon:, expanded: true) { VListItem … } — collapsible group in a nav list
role navitem · arguments label
Source
VListGroup("Label")VListImg¶
Image inside a VList
role image · arguments src
Source
VListImg().frame(width: 160, height: 96)VListItem¶
VListItem(title: "Inbox", subtitle:, prependIcon: "mdi-inbox", value:, active: true) — 48px row; prepend: / append: slots
role listitem · arguments title
Source
VListItem("Title")VListItemAction¶
Trailing action area of a VListItem
role hstack
Source
VListItemAction() { Text("Content"); Button("Action") }VListItemSubtitle¶
Subtitle text of a VListItem
role text · arguments content
Source
VListItemSubtitle("Content")VListItemTitle¶
Title text of a VListItem
role text · arguments content
Source
VListItemTitle("Content")VListSubheader¶
VListSubheader("REPORTS") — 0.875rem / 500 label inside a VList
role text · arguments content
Source
VListSubheader("Content")VLocaleProvider¶
Applies a locale to its subtree
role group
Source
VLocaleProvider() { Text("Content"); Button("Action") }VMain¶
Main content area beside VNavigationDrawer and under VAppBar
role vstack · defaults alignment: "stretch"
Source
VMain() { Text("Content"); Button("Action") }VMenu¶
VMenu("Options", open: true) { VListItem(title: "Edit", prependIcon: "mdi-pencil") … } · VMenu(icon: "mdi-dots-vertical")
role menu · arguments label
Source
VMenu("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }VMessages¶
Hint / error line under a control
role text · arguments content
Source
VMessages("Content")VNavigationDrawer¶
VNavigationDrawer(title:) { VList(nav: true) { VListItem(title:, prependIcon:) } } — 256px drawer; rail: true for 56px
role sidebar · arguments title · variants permanent, temporary, rail
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VNavigationDrawer("Title") { Text("Content"); Button("Action") }.variant("permanent"); Text("permanent").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VNavigationDrawer("Title") { Text("Content"); Button("Action") }.variant("temporary"); Text("temporary").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VNavigationDrawer("Title") { Text("Content"); Button("Action") }.variant("rail"); Text("rail").font(.caption).foregroundStyle(.secondary) }
}VNumberInput¶
VNumberInput("Quantity", modelValue: 2) — number field with − / + controls
role textfield · arguments label · defaults trailingIcon: "mdi-unfold-more-horizontal", variant: "filled" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VNumberInput("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VNumberInput("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VNumberInput("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VNumberInput("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VNumberInput("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VNumberInput("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VNumberInput("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VOtpInput¶
One-time-code field
role textfield · arguments label · defaults variant: "outlined" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VOtpInput("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VOtpInput("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VOtpInput("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VOtpInput("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VOtpInput("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VOtpInput("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VOtpInput("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VOverlay¶
Scrim with centred content
role dialog · defaults variant: "backdrop"
Source
VOverlay() { Text("Content"); Button("Action") }VPagination¶
VPagination(length: 10, modelValue: 2, totalVisible: 7, rounded: "circle", activeColor: "primary")
role pagination
Source
VPagination()VParallax¶
VParallax(src:) — scrolling background image
role image · arguments src
Source
VParallax().frame(width: 160, height: 96)VProgressCircular¶
VProgressCircular(modelValue: 70, size: 48, width: 4, color: "primary") · indeterminate: true
role progress · defaults kind: "circular"
Source
VProgressCircular()VProgressLinear¶
VProgressLinear(modelValue: 40, color: "primary", height: 6, rounded: true) · indeterminate: true
role progress
Source
VProgressLinear()VRadio¶
VRadio("Express", value:) inside VRadioGroup
role radio · arguments label
Source
VRadio("Label")VRadioGroup¶
VRadioGroup("Shipping", items: [..], modelValue: "Express", inline: true) — or VRadio children
role radiogroup · arguments label
Source
VRadioGroup("Label")VRangeSlider¶
VRangeSlider(modelValue: [20, 60], max: 100)
role slider · arguments label
Source
VRangeSlider("Label")VRating¶
VRating(modelValue: 3.5, halfIncrements: true, color: "amber", density: "compact", size: "small")
role rating · arguments value
Source
VRating(60)VResponsive¶
Aspect-ratio box
role vstack · defaults alignment: "stretch"
Source
VResponsive() { Text("Content"); Button("Action") }VRow¶
Flex row of VCol in a 12-column grid (24px gutters)
role hstack · defaults alignment: "top"
Source
VRow() { Text("Content"); Button("Action") }VSelect¶
VSelect("Country", items: ["France", "Peru"], modelValue: "Peru", chips: true, multiple: true, open: true)
role select · arguments label · defaults variant: "filled" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VSelect("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSelect("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSelect("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSelect("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSelect("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSelect("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSelect("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VSheet¶
VSheet(elevation: 2, rounded: true, color:) { … } — plain surface with no padding
role card · defaults elevation: 0 · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VSheet() { Text("Content"); Button("Action") }.variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSheet() { Text("Content"); Button("Action") }.variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSheet() { Text("Content"); Button("Action") }.variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSheet() { Text("Content"); Button("Action") }.variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSheet() { Text("Content"); Button("Action") }.variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VSheet() { Text("Content"); Button("Action") }.variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VSkeletonLoader¶
VSkeletonLoader(type: "list-item-avatar") — use avatar: true, lines: 3, image: true
role skeleton
Source
VSkeletonLoader().frame(width: 160, height: 96)VSlideGroup¶
Horizontally scrolling group with arrows
role hstack
Source
VSlideGroup() { Text("Content"); Button("Action") }VSlideGroupItem¶
One item of a VSlideGroup
role group
Source
VSlideGroupItem() { Text("Content"); Button("Action") }VSlider¶
VSlider(modelValue: 40, min: 0, max: 100, step: 10, thumbLabel: true, color:)
role slider · arguments label
Source
VSlider("Label")VSnackbar¶
VSnackbar("Saved", action: "Undo", color:, location: .bottom) — 344px dark message bar
role toast · arguments message
Source
VSnackbar("Message")VSnackbarQueue¶
A queue of VSnackbar messages (shows the first)
role toast · arguments message
Source
VSnackbarQueue("Message")VSparkline¶
VSparkline(modelValue: [1, 4, 2, 6], color: "primary", fill: true, smooth: true) — trend line
role chart · arguments values · defaults kind: "sparkline"
Source
VSparkline([3, 5, 2, 6, 4], values: [3, 5, 2, 6, 4])VSpeedDial¶
Fab that opens a list of action buttons
role fab · arguments icon · defaults color: "primary"
Source
VSpeedDial("star")VStepper¶
VStepper(items: ["Cart", "Shipping", "Payment"], modelValue: 1, altLabels: true) — numbered header; modelValue is the 0-based current step
role steps · arguments steps
Source
VStepper(["Cart", "Shipping", "Payment"])VStepperActions¶
VStepperActions() — Previous / Next buttons of a VStepper
role hstack
Source
VStepperActions() { Text("Content"); Button("Action") }VStepperHeader¶
Header row of a VStepper
role hstack
Source
VStepperHeader() { Text("Content"); Button("Action") }VStepperItem¶
One step of a VStepperHeader
role text · arguments content
Source
VStepperItem("Content")VStepperVertical¶
Vertical stepper
role steps · arguments steps · defaults orientation: "vertical"
Source
VStepperVertical(["Cart", "Shipping", "Payment"])VStepperWindow¶
Pane area of a VStepper
role vstack · defaults alignment: "stretch"
Source
VStepperWindow() { Text("Content"); Button("Action") }VStepperWindowItem¶
One step's pane
role vstack · defaults alignment: "stretch"
Source
VStepperWindowItem() { Text("Content"); Button("Action") }VSubheader¶
Section label (Vuetify 2 name; use VListSubheader)
role text · arguments content
Source
VSubheader("Content")VSwitch¶
VSwitch("Wi-Fi", modelValue: true, color: "primary", inset: true, hideDetails: true)
role toggle · arguments label
Source
VSwitch("Label")VSystemBar¶
VSystemBar { VIcon("mdi-wifi") … } — 24px status strip at the top of a mobile app
role toolbar · defaults density: "compact"
Source
VSystemBar() { Button("Save"); Button("Share") }VTab¶
VTab("Favorites", prependIcon: "mdi-heart") { pane }
role tab · arguments label
Source
VTab("Label")VTable¶
VTable(density:) { thead/tbody as TableRow children } — or columns:, rows:
role table
| Name | Status |
|---|---|
| Ana Lima | Active |
| Ben Okafor | Away |
Source
VTable(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]])VTabs¶
VTabs(value: 0, color: "primary", grow: true, alignTabs: "center") { VTab("Profile", prependIcon:) … } or VTabs(items: [..])
role tabs · arguments items · defaults placement: "top"
Source
VTabs(["One", "Two", "Three"]) { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }VTabsWindow¶
Panes of a VTabs
role vstack · defaults alignment: "stretch"
Source
VTabsWindow() { Text("Content"); Button("Action") }VTabsWindowItem¶
One pane of a VTabsWindow
role vstack · defaults alignment: "stretch"
Source
VTabsWindowItem() { Text("Content"); Button("Action") }VTextField¶
VTextField("Email", modelValue:, variant: "outlined", density: "compact", prependInnerIcon:, hint:, errorMessages: "…", clearable: true)
role textfield · arguments label · defaults variant: "filled" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VTextField("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextField("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextField("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextField("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextField("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextField("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextField("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VTextarea¶
VTextarea("Notes", rows: 3, counter: 200, autoGrow: true)
role textfield · arguments label · defaults kind: "multiline", variant: "filled" · variants filled, outlined, underlined, solo, solo-filled, solo-inverted, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VTextarea("Label").variant("filled"); Text("filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextarea("Label").variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextarea("Label").variant("underlined"); Text("underlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextarea("Label").variant("solo"); Text("solo").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextarea("Label").variant("solo-filled"); Text("solo-filled").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextarea("Label").variant("solo-inverted"); Text("solo-inverted").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VTextarea("Label").variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VThemeProvider¶
Applies a theme to its subtree (renders its children)
role group
Source
VThemeProvider() { Text("Content"); Button("Action") }VTimePicker¶
Time picker field
role datepicker · arguments label · defaults kind: "time", variant: "filled"
Source
VTimePicker("Label")VTimeline¶
VTimeline(side: "end", density: "compact") { VTimelineItem("Order placed", dotColor: "primary") }
role timeline
Source
VTimeline() { TimelineItem("Created"); TimelineItem("Shipped") }VTimelineItem¶
VTimelineItem("Shipped", time:, description:, dotColor: "success", icon:)
role timelineitem · arguments title
Source
VTimelineItem("Title")VToolbar¶
VToolbar(title:, color:, density:) { VBtn … } — 64px bar (surface-light by default)
role toolbar · arguments title · variants elevated, flat, tonal, outlined, text, plain
Source
HStack(alignment: .top, spacing: 16) {
VStack(alignment: .leading, spacing: 4) { VToolbar("Title") { Button("Save"); Button("Share") }.variant("elevated"); Text("elevated").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VToolbar("Title") { Button("Save"); Button("Share") }.variant("flat"); Text("flat").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VToolbar("Title") { Button("Save"); Button("Share") }.variant("tonal"); Text("tonal").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VToolbar("Title") { Button("Save"); Button("Share") }.variant("outlined"); Text("outlined").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VToolbar("Title") { Button("Save"); Button("Share") }.variant("text"); Text("text").font(.caption).foregroundStyle(.secondary) }
VStack(alignment: .leading, spacing: 4) { VToolbar("Title") { Button("Save"); Button("Share") }.variant("plain"); Text("plain").font(.caption).foregroundStyle(.secondary) }
}VToolbarItems¶
Full-height buttons inside a VToolbar
role hstack · defaults spacing: 0
Source
VToolbarItems() { Text("Content"); Button("Action") }VToolbarTitle¶
Title text of a VToolbar
role text · arguments content
Source
VToolbarTitle("Content")VTooltip¶
VTooltip("Delete", location: .bottom) { VBtn(icon: "mdi-delete") }
role tooltip · arguments text
Source
VTooltip("Text") { Text("Content"); Button("Action") }VTreeview¶
VTreeview { VTreeviewItem("src", expanded: true) { … } } — hierarchical list
role tree
Source
VTreeview() { TreeItem("Folder") { TreeItem("File") } }VTreeviewItem¶
VTreeviewItem("main.ts", icon: "mdi-language-typescript", expanded:, selected:)
role treeitem · arguments label
Source
VTreeviewItem("Label")VVirtualScroll¶
Virtualised scroll area of items
role scroll
Source
VVirtualScroll() { Text("Content"); Button("Action") }VWindow¶
VWindow { VWindowItem { … } } — the visible pane of a VTabs/VStepper
role vstack · defaults alignment: "stretch"
Source
VWindow() { Text("Content"); Button("Action") }VWindowItem¶
One pane of a VWindow / VTabsWindow
role vstack · defaults alignment: "stretch"
Source
VWindowItem() { Text("Content"); Button("Action") }Core vocabulary in this style¶
Accordion¶
role accordion · arguments title
Source
Accordion("Title") { Text("Content"); Button("Action") }Alert¶
role dialog · arguments title · defaults variant: "alert"
Source
Alert("Title") { Text("Content"); Button("Action") }Board¶
Kanban board of BoardColumn children
role board
Source
Board() { BoardColumn("To do") { KanbanCard("Write copy") } }BoardColumn¶
BoardColumn("To do", count:, color:) { KanbanCard(…) }
role boardcolumn · arguments title
Source
BoardColumn("Title") { KanbanCard("Write copy"); KanbanCard("Review") }Button¶
Button("Save", systemImage:) · .buttonStyle(…)
role button · arguments label
Source
Button("Label")Calendar¶
role calendar
Source
Calendar()Callout¶
a numbered annotation; place with .position(x:y:)
role callout · arguments number, text
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
Source
Canvas() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)Card¶
role card · arguments title
Source
Card("Title") { Text("Content"); Button("Action") }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])CodeBlock¶
role code · arguments code · defaults lineNumbers: False
Source
CodeBlock("let total = items.count")CodeEditor¶
CodeEditor("…", language: "swift", lineNumbers:, highlight: [3], tabs: [..])
role code · arguments code
Source
CodeEditor("let total = items.count")Comment¶
author:, time:, avatar:
role message · arguments text · defaults variant: "comment"
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")Dialog¶
role dialog · arguments title
Source
Dialog("Title") { Text("Content"); Button("Action") }DisclosureGroup¶
role accordion · arguments title
Source
DisclosureGroup("Title") { Text("Content"); Button("Action") }EmptyState¶
title, systemImage:, description: { actions }
role emptystate · arguments title
Source
EmptyState("Title")Form¶
role form
Source
Form() { TextField("Name"); Toggle("Notifications", isOn: true) }Gantt¶
scale: ["W1",…], tasks: [("Design", 0, 2, 0.6), …], today:
role gantt
Source
Gantt(tasks: [("Design", 0, 3), ("Build", 2, 5)])Grid¶
Grid of GridRow children, or columns: n
role grid
Source
Grid() { Text("Content"); Button("Action") }GroupBox¶
role card · arguments title
Source
GroupBox("Title") { Text("Content"); Button("Action") }HStack¶
Horizontal stack. spacing:, alignment: .top|.center|.bottom
role hstack
Source
HStack() { Text("Content"); Button("Action") }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
Source
KanbanCard("Title")LabeledContent¶
role labeled · arguments label, value
Source
LabeledContent("Label", "Value") { Text("Content"); Button("Action") }LazyVGrid¶
columns: [GridItem(.flexible()), …] or a count
role grid
Source
LazyVGrid() { Text("Content"); Button("Action") }List¶
.listStyle(.insetGrouped|.plain|.sidebar|…)
role list
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)Menu¶
role menu · arguments label
Source
Menu("Label") { Button("Open"); Button("Save"); Divider(); Button("Close") }MessageBubble¶
MessageBubble("Hi", from: .me|.them, author:, time:, status:, reactions: [..])
role message · arguments text
Source
MessageBubble("Text")NavigationLink¶
role listitem · arguments title · defaults chevron: True
Source
NavigationLink("Title")NavigationSplitView¶
{ sidebar } content: { … } detail: { … }
role split
Source
NavigationSplitView() { Text("Content"); Button("Action") }NavigationStack¶
Content's .navigationTitle / .toolbar form the bar
role navstack
Source
NavigationStack() { Text("Content"); Button("Action") }Picker¶
Picker("Size", selection: "M") { Text("S") … }
role select · arguments label
Source
Picker("Label")Placeholder¶
A labelled box for maps, charts, media
role placeholder · arguments 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
Source
ProgressView("Label")RoundedRectangle¶
role shape · defaults shape: "rounded"
Source
RoundedRectangle().frame(width: 160, height: 96)Row¶
title, subtitle:, detail:, systemImage:, chevron:
role listitem · arguments title
Source
Row("Title")Schedule¶
days: [..], startHour:, endHour:, events: [("Standup", "Mon", 9, 9.5, .blue)], now:
role schedule
Source
Schedule()ScrollView¶
role scroll · arguments axes
Source
ScrollView() { Text("Content"); Button("Action") }SearchField¶
role textfield · arguments placeholder · defaults kind: "search"
Source
SearchField("Placeholder")Section¶
Section("Header") { … } footer: { … }
role section · arguments title
Source
Section("Title") { Text("First item"); Text("Second item") }SecureField¶
role textfield · arguments placeholder · defaults kind: "password"
Source
SecureField("Placeholder")SegmentedControl¶
role segmented · arguments items
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") }Sidebar¶
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)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
| A | B | |
|---|---|---|
| 1 | A | B |
| 2 | 1 | 2 |
| 3 | 3 | 4 |
Source
Spreadsheet(columns: ["A", "B"], rows: [[1, 2], [3, 4]])Stat¶
Stat("Revenue", "$48k", change: "+12%", trend: [..], systemImage:)
role stat · arguments label, value
Source
Stat("Label", 60)Steps¶
role steps · arguments steps
Source
Steps(["Cart", "Shipping", "Payment"])StickyNote¶
StickyNote("Call Ana", color: .yellow, rotation: -2, author:)
role stickynote · arguments text
Source
StickyNote("Text")TabView¶
Children with .tabItem { Label } or Tab(…)
role tabs · defaults placement: "bottom"
Source
TabView() { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }Table¶
columns: ["Name", …], rows: [[…], …] or TableRow children
role table
| Name | Status |
|---|---|
| Ana Lima | Active |
| Ben Okafor | Away |
Source
Table(columns: ["Name", "Status"], rows: [["Ana Lima", "Active"], ["Ben Okafor", "Away"]])Tabs¶
role tabs · arguments items · defaults placement: "top"
Source
Tabs(["One", "Two", "Three"]) { Text("First tab").tabItem { Text("One") }; Text("Second tab").tabItem { Text("Two") } }Terminal¶
lines starting with "$ " are commands
role code · arguments code · defaults variant: "terminal"
Source
Terminal("let total = items.count")Text¶
Text with bold, italic, code Markdown
role text · arguments content
Source
Text("Content")TextEditor¶
role textfield · arguments text · defaults kind: "multiline"
Source
TextEditor("Text")TextField¶
TextField("Placeholder", text: "value")
role textfield · arguments placeholder
Source
TextField("Placeholder")Timeline¶
role timeline
Source
Timeline() { TimelineItem("Created"); TimelineItem("Shipped") }TimelineItem¶
title, time:, description:, systemImage:, status:
role timelineitem · arguments title
Source
TimelineItem("Title")ToolbarItem¶
ToolbarItem(placement: .topBarTrailing) { … }
role toolbaritem
Source
ToolbarItem() { Text("Content"); Button("Action") }ToolbarItemGroup¶
role toolbaritem
Source
ToolbarItemGroup() { Text("Content"); Button("Action") }Tooltip¶
role tooltip · arguments text
Source
Tooltip("Text") { Text("Content"); Button("Action") }Tree¶
Tree { TreeItem("src") { TreeItem("main.swift") } }
role tree
Source
Tree() { TreeItem("Folder") { TreeItem("File") } }TreeItem¶
label, systemImage:, folder:, expanded:, selected:, detail:
role treeitem · arguments label
Source
TreeItem("Label")VStack¶
Vertical stack. spacing:, alignment: .leading|.center|.trailing
role vstack
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"
Source
Whiteboard() { Text("Content"); Button("Action") }.frame(width: 160, height: 96)ZStack¶
Overlapping layers. alignment:
role zstack
Source
ZStack() { Text("Content"); Button("Action") }