Skip to content

Desktop components ​

@getcortexlabs/mavis-desktop draws Mavis components with native views: AppKit on the Mac and XAML on Windows. A shared screen imports them from #mavis, the same alias the Web and mobile hosts use, so the file is not rewritten for the desktop.

Availability

The package is published from Mavis 0.1.0-rc.19 and is experimental. Hosts generated by @getcortexlabs/create-mavis@0.1.0-rc.18 or earlier carry their own copy of an earlier, smaller set of twelve components.

The desktop guide covers creating, running and packaging a host. This page is about what a screen can use once it runs there.

What is here ​

MScreen, MColumn, MRow, MBox, MGrid, MText, MSpan, MIcon, MInput, MReveal, MButton, MLink, MCard, MAlert, MEmptyState, MThemeProvider, MStack, MSeparator, MPlatform, MMasonry, MResizablePanels, MListDetail, MVirtualList, MCollapsibleHeader, MRefreshControl, MImage, MAvatar, MAvatarGroup, MImageViewer, MImageCompare, MImageCropper, MCarousel, MBadge, MChip, MProgress, MSkeleton, MToast, MTooltip, MNotificationCenter, MSheet, MDialog, MPopover, MMenu, MCommandPalette, MTour, MTourTarget, MSpeedDial, MCheckbox, MSwitch, MRadioGroup, MSegmentedControl, MSlider, MRangeSlider, MNumberInput, MRating, MPinInput, MFormGroup, MFormErrors, MSelect, MMultiSelect, MCombobox, MTreeSelect, MTagInput, MSearchBar, MColorPicker, MFilePicker, MComposer, MTransferList, MAppBar, MTabBar, MTabs, MNavigationRail, MBreadcrumb, MPagination, MSteps, MListItem, MAccordion, MTimeline, MDataTable, MTreeView, MKanban, MSortableList, MSwipeActions, MSwipeDeck, MCalendar, MDatePicker, MDateRangePicker, MTimePicker, MScheduler, MChart, MDonutChart, MSparkline, MHeatmap, MGauge, MAnimatedText, MNumberFlow, MMarquee, MConfetti, MParticleField and MGradientBackground. A Mavis component missing from this list has no desktop implementation yet; the parity index tracks the rest by family.

The components are written once for both systems. Each host supplies a few native primitives (a view, a scrolling view, a pressable control, text, a text editor, a progress ring, a picture and a vector shape), and the components are built from those. What opens above the screen, such as a toast, a tooltip or a picture viewer, is drawn in the window and keeps the keyboard while it is open. Layout is computed by one engine, so a row, a column or a grid has the same frames on the Mac and on Windows.

Layout ​

Rows, columns, boxes and grids follow the rules of the Web and mobile renderers:

  • A column stretches its children across its width and keeps their natural height. A row sizes each child from its content; it does not divide the width evenly.
  • gap, padding, paddingX, paddingY, justify, align, wrap, grow, shrink, width and height mean what they mean elsewhere. Space tokens and numbers are both accepted; a width may be a percentage.
  • Text wraps to the width it is given. In a row, give text width="0" and grow (or shrink) to let it take the remaining space and wrap.
  • MBox overlaps its children. A layer without a size fills the box; a layer with a size stays at the top left.
  • MGrid uses columns, minColumnWidth or both. A child can take more than one column with columnSpan.
  • MListDetail measures its own width: list and detail side by side from breakpoint, one pane with a Back button below it. The detail keeps its views across the change, the hidden pane leaves the keyboard order, Back takes the keyboard when the list hides and returns it to the row it came from.
  • MScreen with scroll scrolls vertically; scrollAxis="horizontal" scrolls sideways. The overlay slot stays above the content and does not take pointer input.

The window can be resized freely. Layout runs again for the new width and the native views keep their identity, so a focused editor keeps its text and selection.

MVirtualList ​

Only the rows in view, plus overscan, exist as native views, keyed by item. With a fixed rowHeight each row is clipped to it. With rowHeight="auto" and an estimatedRowHeight, a row takes the height the layout gives its content at the list's width, and that height is kept by key. Inserting, removing or reordering rows above the one you are reading, a row above it growing, or a new window width keeps that row and its offset in place; while you scroll, new heights move the rows and the scroll position is corrected when you stop. scrollToKey(key, { align }) reaches a row that was never on screen and lands it at the start, center or end once its neighbours are measured. animated and motionScroll are accepted and have no effect yet.

Attributes only on desktop ​

AttributeOnWhat it doesWhy only here
shortcutMButtonmod+s, mod+shift+k, f5, enter. mod is Command on the Mac and Control on Windows.A phone has no keyboard to take it, and on the Web a page-wide key listener would compete with the browser and the page's own shortcuts.
selectableMTextLets the pointer select and copy the text.Web text is already selectable, and the iOS label cannot select text without becoming a text view.
testIdanyAn identifier for a check to find the native view by, when the element has no id.id already identifies an element on all three hosts; the Web and NativeScript take their own test attributes (data-testid, testID) on the element.

maxLines on MText, columnSpan on a child of MGrid and @escape on MInput started here and are now part of the shared contract: see Text, Grid and Input.

One screen for Web, mobile and desktop ​

A screen written with Mavis components and their properties runs on every host as it is. This one has no element, class or style of its own, and each host draws it with its own controls: HTML in the browser, NativeScript views on a phone, AppKit and XAML here.

vue
<script setup lang="ts">
import { ref } from 'vue'
import { MScreen, MColumn, MRow, MText, MInput, MButton, MCard } from '#mavis'

const name = ref('')
const guests = ref<string[]>([])
function add() {
  if (!name.value.trim()) return
  guests.value.push(name.value.trim())
  name.value = ''
}
</script>

<template>
  <MScreen scroll>
    <MColumn padding="lg" gap="md">
      <MText variant="title" as="h1">Guests</MText>
      <MRow gap="sm" align="end">
        <MInput v-model="name" label="Name" :grow="1" :width="0" @submit="add" />
        <MButton text="Add" icon="plus" :disabled="!name.trim()" @click="add" />
      </MRow>
      <MCard v-for="guest in guests" :key="guest" padding="md" elevation="sm">
        <MText>{{ guest }}</MText>
      </MCard>
    </MColumn>
  </MScreen>
</template>

#mavis resolves to the renderer of the app that bundles the file: @getcortexlabs/mavis-web, @getcortexlabs/mavis/vue or @getcortexlabs/mavis-desktop. Create all of them at once with create-mavis my-app --targets web,native,macos,windows.

Styles, classes and HTML in a shared file ​

There is no CSS engine on the desktop. The decision for what a shared file already carries is:

In the fileOn desktopWhat the checks report
Component properties, theme tokensAppliedNothing
class, :class, data-*IgnoredA note that counts them; it does not block the host
<style> blockNot appliedA note with the properties that replace its declarations
Inline style, :styleRefusedA finding with the properties that say the same thing
HTML elementsRefused: no desktop controlA finding that names the Mavis component to use
A component outside the list aboveRefused until it is renderedA finding; the index says which issue has it

So a screen styled for the Web keeps its classes and its <style> block and still opens on the desktop, where it gets its look from the theme. An inline style or an HTML element stops it, because ignoring either would change the layout of the screen instead of only its paint.

The declarations with a direct replacement:

CSSWrite instead
padding, padding-inline, padding-blockpadding, paddingX, paddingY
gapgap
display: flex, flex-directionMRow or MColumn
justify-content, align-items, flex-wrapjustify, align, wrap
flex-grow, flex-shrink, width, heightgrow, shrink, width, height
grid-template-columns, grid-columncolumns or minColumnWidth, columnSpan
background-color, border-radiusbackgroundColor, radius
border-width, border-colorborderWidth, borderColor on MBox
box-shadowelevation on MCard
color, font-size, font-weight, text-aligntone, variant, weight, align on MText
-webkit-line-clamp, user-selectmaxLines, selectable on MText

Anything else belongs in the theme (defineTheme), or stays a Web-only refinement in the class.

create-mavis --check-portability reports the same cases for a whole shared folder, each with its replacement, so a file can move one step at a time. create-mavis --add-macos reports them for the entry and what it imports.

Two more rules apply at runtime:

  • Properties that only make sense elsewhere are accepted and do nothing: form attributes (name, form, type on a button), software keyboard hints (inputmode, returnKey, autocapitalize, dismissKeyboard), target and rel. The tables below mark them.
  • An attribute a component does not have stops the screen with an error naming the component and the attribute, instead of being dropped silently.

Themes and appearance ​

The host installs the same theme objects as the other renderers:

ts
app.use(createMavis({ host, theme: mavis, darkTheme: midnight }))

appearance defaults to system: the app follows the operating system and switches while it runs. useMavisTheme() and MThemeProvider work as they do on the Web, including a scoped theme for part of a screen. Colours, typography (family, size, weight, line height, letter spacing), control sizes, radii and the button, input and card component tokens are read from the theme. Card elevation is drawn as a shadow on the Mac; Windows draws the border without the shadow for now (#478).

A theme made with defineTheme is installed the same way, and the app is told when the system or its own choice changes: the values useMavisTheme() returns are reactive.

ts
const brand = defineTheme({ name: 'brand', colors: { primary: '#0055AA' }, radius: { md: 9 } })
const brandNight = defineTheme({ name: 'brand-night', appearance: 'dark' })
app.use(createMavis({ host, theme: brand, darkTheme: brandNight }))

// In a component:
const { theme, appearance, systemAppearance, setAppearance } = useMavisTheme()
watch(systemAppearance, (next) => console.log('the system is now', next))
setAppearance('dark') // 'light', 'dark', or 'system' to follow the system again

A font family written per platform may name the desktop too: { web, ios, android, macos, windows }. Without macos the Mac uses the ios name; without windows, Windows uses its system font. See Typography.

useMavisPlatform() reports macos on the Mac host and windows on Windows; isDesktop is true on both, and MPlatform only="desktop" addresses both systems.

createDesktopNavigation(host, router, options) wraps a Vue Router for createMavis({ navigation }). The window takes the route's meta.title (or options.title(route)), the title of an MAppBar or useWindowTitle(title) when one is shown, and options.name otherwise. Back and Forward are Command-[ and Command-] in a Navigate menu on the Mac and Alt with the arrows on Windows; history: false turns them off.

useDesktopCommands(menu, commands) declares commands while a component is mounted; addDesktopCommands(host, menu, commands) does the same from the host entry and returns { update, remove }. A command is { label, shortcut?, disabled?, action }. On the Mac the commands join the menu bar; Windows has no menu bar in this host and reaches them by their shortcuts. A shortcut both hosts cannot read, or one used twice, throws.

useSharedNavigation().navigate() runs the route and resolves { status: 'unavailable', reason: 'unsupported' }, as the Web does without support: there are no shared element flights on the desktop.

Motion ​

MReveal and a declared motion surface on MBox, MText, MIcon, MButton or MCard run through the Jolt desktop drivers: Core Animation on the Mac and XAML storyboards on Windows. A surface animates opacity, translation, scale and rotation in the plane. With reduced motion turned on in the system, a change settles at once.

Since Jolt 0.1.0-rc.19 the drivers scale and rotate around the centre of the element, play springs that start from the presented value and velocity, and move several properties under one handle. Buttons and interactive cards scale down while pressed and spring back with the theme's press tokens; a control whose motionSurface belongs to the application dims instead, so the press does not fight the application's motion. Progress and toast fills grow from their leading edge.

Regions ​

A motion region declared with motionRegion on MScreen, MColumn, MRow, MBox, MGrid or MStack becomes available on desktop, so shared code behind region.onAvailable or whenMotionAvailable runs there. Mavis lays the window out itself and knows where every child was and is, so the region plays through the same drivers:

  • animateLayout(change, options). After the synchronous change, keyed direct children glide from their previous frame to the new one. With size: 'scale', the default, a child whose size changed scales from its previous size around its centre; with size: false it keeps its top edge and takes its new size at once. New children fade in (enter, on by default). With exit, a removed child stays where it was, out of the layout, takes no pointer, keyboard or screen reader, and fades or moves away before its view is released; maxSnapshotPixels caps the area, in points, that leaves at the same time, and a child beyond it goes at once. A change that interrupts a glide starts from the pose the driver presents.
  • viewportEnter(surfaces, options). Jolt observes each surface inside the window and its enclosing scroll views. Use root to select the motionScroll of an MScreen or MVirtualList. Surfaces arriving together stagger in group order. An isolated arrival starts immediately. The defaults are a 450 ms fade and rise, with 70 ms between arrivals.
  • sequence, timeline and states. A step whose start is known is handed to the driver at once with that delay; a step that follows a spring without a duration, or a playback, starts when that one arrives. A later view takes its first keyframe right away. A timeline pauses and resumes, and knows its duration when every step does. Named states move each target with its own transition, and an attached surface takes the current state.
  • What rests. sharedLayout runs the change and resolves { status: 'unavailable', reason: 'unsupported-target' }; seekableTimeline places every track at its last keyframe and does not seek; physicsWorld stays paused, with its bodies where they are declared; onKeyboard reports no keyboard; scrollHeader stays expanded, and reorder moves nothing while moveUp, moveDown and move still commit the change; diagnostics reports lifecycle-only.

With Jolt RC.22, pointerFollow publishes the pointer position and presence inside the region on macOS and Windows. Leaving the region restores the resting coordinates. Turning on reduced motion or hiding the window suspends the input. On AppKit, numeric motion values can tween to a target and spring followers report their velocity. Windows applies scalar targets immediately. Both hosts bind these values to opacity, translation, scale and rotation.

An endless loop pauses when its view leaves a still-visible window. Reattaching the view resumes the loop. An explicit pause survives reattachment until the app calls play().

Pass a createMotionScrollSource() to a scrolling MScreen or MVirtualList through motionScroll. Use the same source with a surface's scrollLinked and an offset range, or with MAppBar's condenseDistance. Desktop repeats with repeat: Infinity run on one native animation handle until stopped. Reduced motion places the view at its resting pose.

Contract by component ​

The tables come from desktopComponents in @getcortexlabs/mavis-desktop/contract, the description the components, the adoption check and create-mavis --capabilities --json all read.

On every component: id, testId, role, accessibilityLabel, accessibilityHidden, class. On a child of MGrid: columnSpan.

MScreen ​

Slots: default, overlay

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
scrollYesYes
scrollAxisYesYes
dismissKeyboardAccepted, no effectAccepted, no effectA desktop has no software keyboard to put away.
motionRegionYesYesLayout changes, entering and leaving children, viewport entrances, sequences, timelines and named states move on both hosts. Pointer input follows hover on both hosts. Physics, scroll headers, retained reorder, shared layout and seekable scenes rest at their final pose.
motionScrollYesYes

MColumn ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
paddingYesYes
paddingXYesYes
paddingYYesYes
radiusYesYes
widthYesYes
heightYesYes
backgroundColorYesYes
gapYesYes
justifyYesYes
alignYesYes
wrapYesYes
motionRegionYesYesLayout changes, entering and leaving children, viewport entrances, sequences, timelines and named states move on both hosts. Pointer input follows hover on both hosts. Physics, scroll headers, retained reorder, shared layout and seekable scenes rest at their final pose.

MRow ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
paddingYesYes
paddingXYesYes
paddingYYesYes
radiusYesYes
widthYesYes
heightYesYes
backgroundColorYesYes
gapYesYes
justifyYesYes
alignYesYes
wrapYesYes
motionRegionYesYesLayout changes, entering and leaving children, viewport entrances, sequences, timelines and named states move on both hosts. Pointer input follows hover on both hosts. Physics, scroll headers, retained reorder, shared layout and seekable scenes rest at their final pose.

MBox ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
paddingYesYes
paddingXYesYes
paddingYYesYes
radiusYesYes
widthYesYes
heightYesYes
backgroundColorYesYes
borderWidthYesYes
borderColorYesYes
motionSurfaceYesYes
motionRegionYesYesLayout changes, entering and leaving children, viewport entrances, sequences, timelines and named states move on both hosts. Pointer input follows hover on both hosts. Physics, scroll headers, retained reorder, shared layout and seekable scenes rest at their final pose.
perspectiveAccepted, no effectAccepted, no effectThe desktop drivers animate in the plane only.
sharedTagAccepted, no effectAccepted, no effectShared navigation flights have no desktop driver yet (#472).

MGrid ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
paddingYesYes
paddingXYesYes
paddingYYesYes
radiusYesYes
widthYesYes
heightYesYes
backgroundColorYesYes
gapYesYes
columnsYesYes
minColumnWidthYesYes
motionRegionYesYesLayout changes, entering and leaving children, viewport entrances, sequences, timelines and named states move on both hosts. Pointer input follows hover on both hosts. Physics, scroll headers, retained reorder, shared layout and seekable scenes rest at their final pose.

MText ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
textYesYes
asYesYes
variantYesYes
toneYesYes
weightYesYes
alignYesYes
wrapYesYes
motionSurfaceYesYes
maxLinesYesYes
selectableYesYes

MSpan ​

Slots: default

PropertyMacWindowsNote
textYesYes
weightYesYes
toneYesYes
emphasisYesYes

MIcon ​

PropertyMacWindowsNote
idYesYes
nameYesYes
sizeYesYes
toneYesYes
labelYesYes
motionSurfaceYesYes
systemNameAccepted, no effectAccepted, no effectSF Symbols are an iOS artwork source; the portable name is drawn.
replaceAccepted, no effectAccepted, no effectSymbol replacement is an iOS effect; the glyph changes at once.

MInput ​

Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
modelValueYesYes
labelYesYes
floatingLabelAccepted, no effectAccepted, no effectThe label stays above the field.
placeholderYesYes
helperTextYesYes
errorYesYes
typeYesYes
nameAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
autocompleteYesYesThe Mac maps it to a content type; Windows keeps its own suggestions.
requiredYesYes
inputmodeAccepted, no effectAccepted, no effectA hardware keyboard has one layout.
formAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
disabledYesYes
readonlyYesYes
multilineYesYes
rowsYesYes
maxLengthYesYes
autocapitalizeAccepted, no effectAccepted, no effectA hardware keyboard does not capitalize for the user.
autocorrectYesYesThe Mac turns spelling correction on or off; Windows turns spell checking.
returnKeyAccepted, no effectAccepted, no effectThe Return key has one caption.
trailingActionYesYes
iconYesYes
trailingIconYesYes
@update:modelValueYesYes
@submitYesYes
@focusYesYes
@blurYesYes
@actionYesYes
@escapeYesYes

MReveal ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
paddingYesYes
paddingXYesYes
paddingYYesYes
radiusYesYes
widthYesYes
heightYesYes
backgroundColorYesYes
gapYesYes
justifyYesYes
alignYesYes
wrapYesYes
showYesYes

MButton ​

Slots: default, leading, trailing

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
hrefYesYes
navigateYesYes
targetAccepted, no effectAccepted, no effectA destination outside the app always opens in the system browser.
relAccepted, no effectAccepted, no effectLink relations belong to the browser.
textYesYes
variantYesYes
sizeYesYes
iconYesYes
trailingIconYesYes
disabledYesYes
loadingYesYes
loadingTextYesYes
loadingIndicatorYesYesEvery indicator other than none is the system progress ring.
motionSurfaceYesYes
typeAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
nameAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
valueAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
formAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
reorderHandleRefusedRefusedRetained reorder has no desktop driver yet (#470).
shortcutYesYesmod is Command on the Mac and Control on Windows.
@clickYesYes
@errorYesYes

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
hrefYesYes
navigateYesYes
targetAccepted, no effectAccepted, no effectA destination outside the app always opens in the system browser.
relAccepted, no effectAccepted, no effectLink relations belong to the browser.
textYesYes
disabledYesYes
inlineYesYes
@clickYesYes
@errorYesYes

MCard ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
paddingYesYes
paddingXYesYes
paddingYYesYes
radiusYesYes
widthYesYes
heightYesYes
backgroundColorYesYes
hrefYesYes
navigateYesYes
targetAccepted, no effectAccepted, no effectA destination outside the app always opens in the system browser.
relAccepted, no effectAccepted, no effectLink relations belong to the browser.
gapYesYes
elevationYesYesWindows draws the border without the shadow.
interactiveYesYes
disabledYesYes
motionSurfaceYesYes
sharedTagAccepted, no effectAccepted, no effectShared navigation flights have no desktop driver yet (#472).
@clickYesYes
@errorYesYes

MAlert ​

Slots: actions

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
titleYesYes
descriptionYesYes
toneYesYes
dismissibleYesYes
closeLabelYesYes
announceYesYes
openYesYes
@closeYesYes
@update:openYesYes

MEmptyState ​

Slots: illustration, actions

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
titleYesYes
descriptionYesYes
iconYesYes
toneYesYes
compactYesYes
titleAsYesYes
animatedAccepted, no effectAccepted, no effectThe artwork is still on desktop (#455).

MThemeProvider ​

Slots: default

PropertyMacWindowsNote
themeYesYes
themePairYesYes
darkThemeYesYes
appearanceYesYes
@update:themeYesYes
@update:themePairYesYes
@update:appearanceYesYes

MStack ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
paddingYesYes
paddingXYesYes
paddingYYesYes
radiusYesYes
widthYesYes
heightYesYes
backgroundColorYesYes
gapYesYes
justifyYesYes
alignYesYes
wrapYesYes
motionRegionYesYesLayout changes, entering and leaving children, viewport entrances, sequences, timelines and named states move on both hosts. Pointer input follows hover on both hosts. Physics, scroll headers, retained reorder, shared layout and seekable scenes rest at their final pose.
directionYesYes
responsiveYesYes

MSeparator ​

PropertyMacWindowsNote
idYesYes
orientationYesYes
lengthYesYes
spacingYesYes
insetYesYes

MPlatform ​

Slots: default, fallback

PropertyMacWindowsNote
onlyYesYes

MMasonry ​

Slots: item

PropertyMacWindowsNote
idYesYes
labelYesYes
itemsYesYes
minColumnWidthYesYes
columnsYesYes
gapYesYes
animatedYesYes
emptyLabelYesYes

MResizablePanels ​

Slots: primary, secondary

PropertyMacWindowsNote
idYesYes
labelYesYes
modelValueYesYes
minYesYes
maxYesYes
stepYesYes
snapYesYes
orientationYesYesThe Mac shows a resize cursor over the divider; Windows keeps the arrow.
directionYesYes
heightYesYes
collapsibleYesYes
disabledYesYes
primaryLabelYesYes
secondaryLabelYesYes
collapseLabelYesYes
expandLabelYesYes
@update:modelValueYesYes
@resizeYesYes

MListDetail ​

Slots: list, detail, empty

PropertyMacWindowsNote
idYesYes
labelYesYes
selectedYesYes
layoutYesYes
initialLayoutYesYes
breakpointYesYes
listWidthYesYes
heightYesYes
growYesYes
directionYesYes
animatedYesYes
listLabelYesYes
detailLabelYesYes
backLabelYesYes
@update:selectedYesYes
@layoutYesYes

MVirtualList ​

Slots: default, empty · Methods: scrollToIndex(), scrollToKey(), realizeKey()

PropertyMacWindowsNote
idYesYes
labelYesYes
itemsYesYes
itemKeyYesYes
rowHeightYesYes
estimatedRowHeightYesYes
heightYesYes
overscanYesYes
initialIndexYesYes
animatedAccepted, no effectAccepted, no effectThe virtual list places recycled rows directly at their measured offsets.
emptyLabelYesYes
motionScrollYesYes

MCollapsibleHeader ​

Slots: default, item, artwork, leading, actions, section · Methods: preserveAnchor(), scrollToTop()

PropertyMacWindowsNote
itemKeysYesYes
sourceKeyYesYes
idYesYes
heightYesYes
titleYesYes
subtitleYesYes
imageYesYes
expandedHeightYesYes
collapsedHeightYesYes
sectionHeightYesYes
parallaxYesYes
backLabelYesYes
backYesYes
topLabelYesYes
@backYesYes

MRefreshControl ​

Slots: default, item · Methods: preserveAnchor(), refresh(), cancel()

PropertyMacWindowsNote
itemKeysYesYes
sourceKeyYesYes
idYesYes
heightYesYes
labelYesYes
refreshYesYesThe key is Command-R on the Mac and Control-R on Windows; Windows does not announce the state (#478).
disabledYesYes
thresholdAccepted, no effectAccepted, no effectA desktop has no pull gesture: the content is refreshed from a button or a key.
refreshLabelYesYes
refreshingLabelYesYes
successLabelYesYes
errorLabelYesYes
retryLabelYesYes
cancelLabelYesYes
@stateChangeYesYes
@errorYesYes

MImage ​

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
paddingYesYes
paddingXYesYes
paddingYYesYes
radiusYesYes
widthYesYes
heightYesYes
backgroundColorYesYes
motionSurfaceYesYes
srcYesYes
altYesYes
aspectRatioYesYes
fitYesYes
loadingLabelYesYes
errorLabelYesYes
revealYesYes
zoomAccepted, no effectAccepted, no effectPinch and double-tap zoom have no desktop gesture: the photo stays fitted. MImageViewer zooms.
gestureAccepted, no effectAccepted, no effectThe photo has no zoom recognizers on desktop to relate.
sharedTagAccepted, no effectAccepted, no effectShared navigation flights have no desktop driver yet (#472).
returnEntryAccepted, no effectAccepted, no effectShared navigation flights have no desktop driver yet (#472).
srcsetAccepted, no effectAccepted, no effectA Web hint for choosing and fetching a picture; the hosts load src off the drawing thread.
sizesAccepted, no effectAccepted, no effectA Web hint for choosing and fetching a picture; the hosts load src off the drawing thread.
loadingAccepted, no effectAccepted, no effectA Web hint for choosing and fetching a picture; the hosts load src off the drawing thread.
decodingAccepted, no effectAccepted, no effectA Web hint for choosing and fetching a picture; the hosts load src off the drawing thread.
fetchpriorityAccepted, no effectAccepted, no effectA Web hint for choosing and fetching a picture; the hosts load src off the drawing thread.
@loadYesYes
@errorYesYes
@update:srcAccepted, no effectAccepted, no effectImage effects that commit a new source have no desktop driver; it never fires.

MAvatar ​

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
srcYesYes
nameYesYes
sizeYesYes
shapeYesYes

MAvatarGroup ​

PropertyMacWindowsNote
idYesYes
membersYesYes
maxVisibleYesYes
sizeYesYes

MImageViewer ​

PropertyMacWindowsNote
labelYesYes
imagesYesYes
modelValueYesYes
openYesYes
maxZoomYesYes
disabledYesYes
closeLabelYesYes
previousLabelYesYes
nextLabelYesYes
zoomInLabelYesYes
zoomOutLabelYesYes
resetLabelYesYes
errorLabelYesYes
@update:modelValueYesYes
@update:openYesYes
@closeYesYes
@errorYesYes

MImageCompare ​

PropertyMacWindowsNote
labelYesYes
beforeYesYes
afterYesYes
beforeLabelYesYes
afterLabelYesYes
modelValueYesYes
stepYesYes
aspectRatioYesYes
orientationYesYes
disabledYesYes
hintYesYes
@update:modelValueYesYes

MImageCropper ​

Methods: export()

PropertyMacWindowsNote
idYesYes
labelYesYes
srcYesYes
modelValueYesYesThe Mac measures a picture in points: one whose file declares a resolution other than 72 dpi is cropped in points, not pixels.
aspectRatioYesYes
animatedYesYes
disabledYesYes
outputAccepted, no effectAccepted, no effectThe hosts draw pictures and do not encode them: there is no export button, and export() reports an error with stage export. The crop rectangle in modelValue is the result.
zoomLabelYesYes
rotateLabelAccepted, no effectAccepted, no effectThe hosts do not rotate a picture yet: there is no rotate button, and a crop with a rotation is reported through error.
resetLabelYesYes
exportLabelAccepted, no effectAccepted, no effectThere is no export button on desktop.
loadingLabelYesYes
moveLabelYesYes
leftLabelYesYes
rightLabelYesYes
upLabelYesYes
downLabelYesYes
@update:modelValueYesYes
@exportAccepted, no effectAccepted, no effectNo picture is exported on desktop, so it never fires.
@loadYesYes
@errorYesYes

MCarousel ​

Slots: default, empty

PropertyMacWindowsNote
idYesYes
labelYesYes
itemsYesYes
itemKeyYesYes
modelValueYesYes
disabledYesYes
loopYesYes
previousLabelYesYes
nextLabelYesYes
slideLabelYesYes
emptyLabelYesYes
gestureAccepted, no effectAccepted, no effectThe swipe between slides has no recognizer on desktop to relate.
@update:modelValueYesYes

MBadge ​

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
textYesYes
sizeYesYes
toneYesYes
visibleYesYes
appearYesYes
pulseYesYes

MChip ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
labelYesYes
iconYesYes
toneYesYes
selectableYesYes
modelValueYesYes
removableYesYes
removeLabelYesYes
disabledYesYes
@update:modelValueYesYes
@removeYesYes

MProgress ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
valueYesYes
maxYesYes
indeterminateYesYes
labelYesYes
indeterminateLabelYesYes
sizeYesYes
toneYesYes
celebrateAccepted, no effectAccepted, no effectConfetti has no desktop driver; reaching max is shown by the full bar.

MSkeleton ​

Slots: default

PropertyMacWindowsNote
idYesYes
growYesYes
shrinkYesYes
widthYesYes
heightYesYes
radiusYesYes
animatedYesYes
effectYesYesshimmer sweeps a highlight across the shape on the Mac; Windows, which does not clip a view to its corners yet (#478), pulses instead.
loadingYesYes
indexYesYes

MToast ​

PropertyMacWindowsNote
controllerYesYesThe Mac announces each notification as it arrives; Windows does not announce yet (#478).
closeLabelYesYes
countdownYesYes
swipeableYesYes

MTooltip ​

PropertyMacWindowsNote
idYesYes
textYesYes
triggerLabelYesYes
iconYesYes
variantYesYes
disabledYesYes
delayYesYes
placementYesYes

MNotificationCenter ​

PropertyMacWindowsNote
idYesYes
labelYesYes
modelValueYesYes
disabledYesYes
animatedAccepted, no effectAccepted, no effectThe desktop notification list places its entries directly at their new positions.
filterYesYes
allLabelYesYes
unreadLabelYesYes
readLabelYesYes
unreadActionLabelYesYes
readAllLabelYesYes
dismissLabelYesYes
emptyLabelYesYes
ungroupedLabelYesYes
@update:modelValueYesYes
@update:filterYesYes
@actionYesYes

MSheet ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
openYesYes
titleYesYes
dismissibleYesYes
fullscreenYesYes
closeLabelYesYes
paddingYesYes
gapYesYes
alignYesYes
gestureAccepted, no effectAccepted, no effectA desktop sheet has no drag gesture to hand to the slot.
returnFocusAccepted, no effectAccepted, no effectWeb only in the published contract. On desktop the keyboard returns to the control that opened the panel.
@update:openYesYes
@closeYesYes
@openedYesYes

MDialog ​

PropertyMacWindowsNote
idYesYes
openYesYes
titleYesYes
descriptionYesYes
confirmLabelYesYes
cancelLabelYesYes
loadingLabelYesYes
toneYesYes
loadingYesYes
dismissibleYesYes
interactiveAccepted, no effectAccepted, no effectDragging the title down is a touch gesture; Escape and Cancel close the dialog.
@update:openYesYes
@confirmYesYes
@closeYesYes

MPopover ​

Slots: default, anchor

PropertyMacWindowsNote
idYesYes
openYesYes
labelYesYes
triggerLabelYesYes
iconYesYes
variantYesYes
disabledYesYes
placementYesYes
widthYesYes
paddingYesYes
roleYesYes
@update:openYesYes
@closeYesYes
@openedYesYes
PropertyMacWindowsNote
idYesYes
openYesYes
labelYesYes
triggerLabelYesYes
iconYesYes
variantYesYes
disabledYesYes
placementYesYes
widthYesYes
paddingAccepted, no effectAccepted, no effectThe rows of a menu bring their own padding, as on the other renderers.
roleAccepted, no effectAccepted, no effectA menu always has the keyboard of a menu, as on the other renderers.
itemsYesYes
@update:openYesYes
@selectYesYes
@closeYesYes

MCommandPalette ​

PropertyMacWindowsNote
idYesYes
labelYesYes
openYesYes
itemsYesYes
queryYesYes
disabledYesYes
loadingYesYes
shortcutYesYesCommand-K on the Mac and Control-K on Windows.
searchLabelYesYes
placeholderYesYes
emptyLabelYesYes
loadingLabelYesYes
closeLabelYesYes
returnFocusAccepted, no effectAccepted, no effectWeb only in the published contract. On desktop the keyboard returns to the control that opened the panel.
@update:openYesYes
@update:queryYesYes
@selectYesYes

MTour ​

Slots: default

PropertyMacWindowsNote
idYesYes
labelYesYes
stepsYesYes
modelValueYesYes
animatedYesYes
spotlightYesYes
nextLabelYesYes
backLabelYesYes
skipLabelYesYes
finishLabelYesYes
@update:modelValueYesYes
@finishYesYes
@missingYesYes

MTourTarget ​

Slots: default

PropertyMacWindowsNote
nameYesYes

MSpeedDial ​

PropertyMacWindowsNote
materialAccepted, no effectAccepted, no effectDesktop uses the solid theme surface.
idYesYes
labelYesYes
openYesYes
disabledYesYes
actionsYesYes
iconYesYes
closeLabelYesYes
directionYesYes
@update:openYesYes
@selectYesYes
@closeYesYes

MCheckbox ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
modelValueYesYes
indeterminateYesYes
labelYesYes
helperTextYesYes
indeterminateLabelYesYes
disabledYesYes
@update:modelValueYesYes
@update:indeterminateYesYes

MSwitch ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
modelValueYesYes
labelYesYes
helperTextYesYes
disabledYesYes
@update:modelValueYesYes

MRadioGroup ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
modelValueYesYes
optionsYesYes
labelYesYes
helperTextYesYes
disabledYesYes
@update:modelValueYesYes

MSegmentedControl ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
optionsYesYes
modelValueYesYes
labelYesYes
disabledYesYes
wrapYesYes
@update:modelValueYesYes

MSlider ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
modelValueYesYes
minYesYes
maxYesYes
stepYesYes
disabledYesYes
labelYesYes
showValueYesYes
formatValueYesYes
ticksYesYes
@update:modelValueYesYes

MRangeSlider ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
modelValueYesYes
minYesYes
maxYesYes
stepYesYes
disabledYesYes
labelYesYes
showValueYesYes
formatValueYesYes
ticksYesYes
@update:modelValueYesYes
lowerLabelYesYes
upperLabelYesYes
readonlyYesYes

MNumberInput ​

Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
labelYesYes
disabledYesYes
readonlyYesYes
helperTextYesYes
errorYesYes
modelValueYesYes
draftYesYes
minYesYes
maxYesYes
stepYesYes
localeYesYes
nameAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
placeholderYesYes
incrementLabelYesYes
decrementLabelYesYes
@update:modelValueYesYes
@update:draftYesYes
@validityChangeYesYes
@focusYesYes
@blurYesYes

MRating ​

PropertyMacWindowsNote
idYesYes
labelYesYes
modelValueYesYes
maxYesYes
stepYesYes
disabledYesYes
readonlyYesYes
clearableYesYes
clearLabelYesYes
formatValueYesYes
@update:modelValueYesYes

MPinInput ​

Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
labelYesYes
modelValueYesYes
lengthYesYes
disabledYesYes
readonlyYesYes
requiredYesYes
nameAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
formAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
errorYesYes
helperTextYesYes
@update:modelValueYesYes
@completeYesYes
@focusYesYes
@blurYesYes

MFormGroup ​

Slots: default

PropertyMacWindowsNote
idYesYes
labelYesYes
descriptionYesYes

MFormErrors ​

PropertyMacWindowsNote
formYesYes
titleYesYes
announceYesYes
@focusYesYes

MSelect ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
modelValueYesYes
optionsYesYes
labelYesYes
helperTextYesYes
disabledYesYes
placeholderYesYes
errorYesYes
closeLabelAccepted, no effectAccepted, no effectThe list closes with Escape or a click outside it; it has no close button.
emptyTextYesYes
@update:modelValueYesYes

MMultiSelect ​

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
labelYesYes
disabledYesYes
readonlyYesYes
helperTextYesYes
errorYesYes
modelValueYesYes
optionsYesYes
maxSelectedYesYes
placeholderYesYes
searchLabelYesYes
closeLabelYesYes
emptyLabelYesYes
removeLabelYesYes
@update:modelValueYesYes

MCombobox ​

Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
modelValueYesYes
queryYesYes
selectedOptionYesYes
searchYesYes
initialResultsYesYes
debounceYesYes
minQueryLengthYesYes
maxResultsYesYes
labelYesYes
placeholderYesYes
helperTextYesYes
errorYesYes
disabledYesYes
clearableYesYes
clearLabelYesYes
closeLabelAccepted, no effectAccepted, no effectThe results close with Escape or when the field loses the keyboard.
loadingTextYesYes
emptyTextYesYes
searchErrorTextYesYes
retryLabelYesYes
idleTextYesYes
limitedTextYesYes
@update:modelValueYesYes
@update:queryYesYes
@selectYesYes
@focusYesYes
@blurYesYes

MTreeSelect ​

PropertyMacWindowsNote
idYesYes
labelYesYes
nodesYesYes
modelValueYesYes
expandedYesYes
multipleYesYes
disabledYesYes
animatedYesYes
placeholderYesYes
searchLabelYesYes
clearLabelYesYes
emptyLabelYesYes
expandLabelYesYes
collapseLabelYesYes
@update:modelValueYesYes
@update:expandedYesYes

MTagInput ​

Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
labelYesYes
placeholderYesYes
disabledYesYes
modelValueYesYes
addLabelYesYes
removeLabelYesYes
maxTagsYesYes
@update:modelValueYesYes

MSearchBar ​

Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
labelYesYes
placeholderYesYes
disabledYesYes
modelValueYesYes
clearLabelYesYes
cancelLabelYesYes
showCancelYesYes
searchingYesYes
@update:modelValueYesYes
@submitYesYes
@clearYesYes
@cancelYesYes

MColorPicker ​

PropertyMacWindowsNote
idYesYes
labelYesYes
modelValueYesYes
disabledYesYes
readonlyYesYes
alphaYesYes
animatedAccepted, no effectAccepted, no effectThe desktop draws the change at once; it has no driver for this motion yet (#472).
paletteYesYes
colorLabelYesYes
hueLabelYesYes
saturationLabelYesYes
brightnessLabelYesYes
alphaLabelYesYes
paletteLabelYesYes
invalidLabelYesYes
@update:modelValueYesYes

MFilePicker ​

Methods: focus(), blur()

PropertyMacWindowsNote
selectionYesYes
labelYesYes
disabledYesYes
chooseLabelYesYes
dropLabelYesYes
dropActiveLabelYesYes
hintYesYes
uploadLabelYesYes
cancelLabelYesYes
retryLabelYesYes
removeLabelYesYes
emptyLabelYesYes
pendingLabelYesYes
statusLabelsYesYes
errorLabelsYesYes
formatSizeYesYes
celebrateAccepted, no effectAccepted, no effectConfetti has no desktop driver yet (#472).

MComposer ​

Slots: default · Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
labelYesYes
modelValueYesYes
placeholderYesYes
disabledYesYes
readonlyYesYes
loadingYesYes
maxLengthYesYes
rowsYesYes
errorYesYes
attachmentsYesYes
attachableYesYes
attachLabelYesYes
removeLabelYesYes
sendLabelYesYes
sendingLabelYesYes
followKeyboardAccepted, no effectAccepted, no effectA desktop has no software keyboard to follow.
keyboardOffsetAccepted, no effectAccepted, no effectA desktop has no software keyboard to follow.
shortcutYesYesCommand-Return sends on the Mac and Control-Enter on Windows.
counterYesYes
counterLabelYesYes
@update:modelValueYesYes
@update:attachmentsYesYes
@submitYesYes
@attachYesYes
@focusYesYes
@blurYesYes

MTransferList ​

PropertyMacWindowsNote
idYesYes
labelYesYes
optionsYesYes
modelValueYesYes
disabledYesYes
animatedYesYes
availableLabelYesYes
selectedLabelYesYes
searchLabelYesYes
addLabelYesYes
removeLabelYesYes
emptyLabelYesYes
@update:modelValueYesYes

MAppBar ​

Slots: leading, actions

PropertyMacWindowsNote
materialAccepted, no effectAccepted, no effectDesktop uses the solid theme surface.
idYesYes
titleYesYes
subtitleYesYes
backYesYes
backLabelYesYes
navigateBackYesYes
condensedYesYes
motionScrollYesYes
condenseDistanceYesYes
@backYesYes
@errorYesYes

MTabBar ​

PropertyMacWindowsNote
materialAccepted, no effectAccepted, no effectDesktop uses the solid theme surface.
idYesYes
labelYesYes
modelValueYesYes
itemsYesYes
disabledYesYes
currentLabelYesYes
safeAreaAccepted, no effectAccepted, no effectA window has no viewport inset of its own; MScreen keeps the host insets.
@errorYesYes

MTabs ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
keepAliveYesYes
modelValueYesYes
tabsYesYes
labelYesYes
disabledYesYes
@update:modelValueYesYes

Slots: header, footer

PropertyMacWindowsNote
idYesYes
labelYesYes
groupsYesYes
modelValueYesYes
collapsedYesYes
disabledYesYes
collapsibleYesYes
collapseLabelYesYes
expandLabelYesYes
currentLabelYesYes
@update:collapsedYesYes
@errorYesYes
PropertyMacWindowsNote
idYesYes
labelYesYes
itemsYesYes
maxItemsYesYes
expandLabelYesYes
@errorYesYes

MPagination ​

PropertyMacWindowsNote
modelValueYesYes
totalYesYes
pageSizeYesYes
siblingCountYesYes
labelYesYes
previousLabelYesYes
nextLabelYesYes
pageLabelYesYes
currentLabelYesYes
statusTextYesYes
emptyLabelYesYes
invalidPageLabelYesYes
loadingYesYes
disabledYesYes
@update:modelValueYesYes

MSteps ​

PropertyMacWindowsNote
stepsYesYes
modelValueYesYes
labelYesYes
disabledYesYes
loadingYesYes
currentLabelYesYes
completeLabelYesYes
errorLabelYesYes
@update:modelValueYesYes

MListItem ​

Slots: leading, trailing

PropertyMacWindowsNote
idYesYes
accessibilityLabelYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
titleYesYes
descriptionYesYes
interactiveYesYes
disabledYesYes
@clickYesYes

MAccordion ​

Slots: default

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
itemsYesYes
modelValueYesYes
multipleYesYes
disabledYesYes
labelYesYes
expandedLabelYesYes
collapsedLabelYesYes
@update:modelValueYesYes

MTimeline ​

Slots: default

PropertyMacWindowsNote
idYesYes
labelYesYes
itemsYesYes
emptyLabelYesYes
statusLabelsYesYes

MDataTable ​

Slots: cell, actions, footer, empty

PropertyMacWindowsNote
idYesYes
labelYesYes
itemsYesYes
itemKeyYesYes
columnsYesYes
sortYesYes
selectedYesYes
selectableYesYes
disabledYesYes
loadingYesYes
rowDisabledYesYes
rowLabelYesYes
selectLabelYesYes
selectAllLabelYesYes
emptyLabelYesYes
loadingLabelYesYes
selectionLabelYesYes
commitCellYesYesThe editor is a native field: an NSTextField on the Mac, a TextBox on Windows. Tab, Shift-Tab, Escape and Command/Control-Return reach the table before the field; keys an input method is composing with stay with it on the Mac.
editLabelYesYesThe edit hint is the tooltip of the cell button.
saveLabelYesYes
cancelLabelYesYes
retryLabelYesYes
savingLabelYesYes
savedLabelYesYes
failedLabelYesYes
changedLabelYesYes
@update:sortYesYes
@update:selectedYesYes

MTreeView ​

PropertyMacWindowsNote
idYesYes
labelYesYes
nodesYesYes
modelValueYesYes
expandedYesYes
loadingKeysYesYes
disabledYesYes
emptyLabelYesYes
loadingLabelYesYes
expandedLabelYesYes
collapsedLabelYesYes
@update:modelValueYesYes
@update:expandedYesYes
@loadYesYes

MKanban ​

Slots: card

PropertyMacWindowsNote
idYesYes
labelYesYes
columnsYesYes
modelValueYesYes
queryYesYes
disabledYesYes
animatedYesYes
draggableYesYes
moveLabelYesYes
upLabelYesYes
downLabelYesYes
emptyLabelYesYes
fullLabelYesYes
@update:modelValueYesYes
@moveYesYes

MSortableList ​

Slots: default, empty

PropertyMacWindowsNote
idYesYes
labelYesYes
modelValueYesYes
itemKeyYesYes
itemLabelYesYes
heightYesYes
orientationYesYes
gridColumnsYesYes
directionAccepted, no effectAccepted, no effectRight-to-left order is not mirrored on desktop yet; the list reads left to right.
disabledYesYes
handleLabelYesYes
moveUpLabelYesYes
moveDownLabelYesYes
emptyLabelYesYes
gestureAccepted, no effectAccepted, no effectGesture relations coordinate touch recognizers; a desktop drag has one pointer.
@update:modelValueYesYes
@reorderYesYes

MSwipeActions ​

Slots: default

PropertyMacWindowsNote
labelYesYes
gestureAccepted, no effectAccepted, no effectGesture relations coordinate touch recognizers; a desktop drag has one pointer.
modelValueYesYes
startYesYes
endYesYes
disabledYesYes
actionWidthYesYes
directionYesYes
actionsLabelYesYes
closeLabelYesYes
@update:modelValueYesYes
@actionYesYes

MSwipeDeck ​

Slots: item

PropertyMacWindowsNote
idYesYes
labelYesYes
itemsYesYes
modelValueYesYes
disabledYesYes
animatedYesYes
heightYesYes
thresholdYesYes
acceptLabelYesYes
rejectLabelYesYes
undoLabelYesYes
canUndoYesYes
emptyLabelYesYes
@update:modelValueYesYes
@decideYesYes
@undoYesYes

MCalendar ​

Slots: footer

PropertyMacWindowsNote
idYesYes
labelYesYes
modeYesYes
modelValueYesYes
minYesYes
maxYesYes
unavailableDatesYesYes
localeYesYes
firstDayOfWeekYesYes
todayYesYes
initialMonthYesYes
disabledYesYes
readonlyYesYes
invalidRangeLabelYesYes
@update:modelValueYesYes
@invalidYesYes

MDatePicker ​

Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
minYesYes
maxYesYes
unavailableDatesYesYes
localeYesYes
firstDayOfWeekYesYes
todayYesYes
initialMonthYesYes
dateFormatYesYes
labelYesYes
helperTextYesYes
errorYesYes
disabledYesYes
readonlyYesYes
clearableYesYes
clearLabelYesYes
calendarLabelYesYes
closeLabelYesYes
draftYesYes
modelValueYesYes
@update:modelValueYesYes
@update:draftYesYes
@validityChangeYesYes
@focusYesYes
@blurYesYes
nameAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.

MDateRangePicker ​

Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
accessibilityHiddenYesYes
growYesYes
shrinkYesYes
widthYesYes
minYesYes
maxYesYes
unavailableDatesYesYes
localeYesYes
firstDayOfWeekYesYes
todayYesYes
initialMonthYesYes
dateFormatYesYes
labelYesYes
helperTextYesYes
errorYesYes
disabledYesYes
readonlyYesYes
clearableYesYes
clearLabelYesYes
calendarLabelYesYes
closeLabelYesYes
draftYesYes
modelValueYesYes
@update:modelValueYesYes
@update:draftYesYes
@validityChangeYesYes
@focusYesYes
@blurYesYes
startLabelYesYes
endLabelYesYes
startNameAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
endNameAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.

MTimePicker ​

Methods: focus(), blur()

PropertyMacWindowsNote
idYesYes
labelYesYes
widthYesYes
growYesYes
shrinkYesYes
modelValueYesYes
draftYesYes
minYesYes
maxYesYes
minuteStepYesYes
localeYesYes
hourCycleYesYes
nameAccepted, no effectAccepted, no effectHTML form participation has no meaning outside the browser.
disabledYesYes
readonlyYesYes
requiredYesYes
helperTextYesYes
errorYesYes
placeholderYesYes
chooseLabelYesYes
confirmLabelYesYes
cancelLabelYesYes
clearLabelYesYes
hourLabelYesYes
minuteLabelYesYes
periodLabelYesYes
invalidLabelYesYes
@update:modelValueYesYes
@update:draftYesYes
@validityChangeYesYes
@focusYesYes
@blurYesYes

MScheduler ​

PropertyMacWindowsNote
idYesYes
labelYesYes
modelValueYesYes
dateYesYes
timeZoneYesYes
daysYesYes
startHourYesYes
endHourYesYes
slotMinutesYesYes
hourHeightYesYes
dayWidthYesYes
nowYesYes
animatedYesYes
disabledYesYes
disambiguationYesYes
previousLabelYesYes
nextLabelYesYes
moveLabelYesYes
resizeLabelYesYes
earlierLabelYesYes
laterLabelYesYes
previousDayLabelYesYes
nextDayLabelYesYes
shorterLabelYesYes
longerLabelYesYes
emptyLabelYesYes
@update:modelValueYesYes
@update:dateYesYes
@changeYesYes
@errorYesYes
@selectYesYes

MChart ​

PropertyMacWindowsNote
idYesYes
labelYesYes
descriptionYesYes
categoriesYesYes
seriesYesYes
typeYesYes
domainYesYes
heightYesYes
modelValueYesYes
disabledYesYes
hiddenSeriesYesYes
animatedYesYes
formatValueYesYes
showDataYesYes
showDataLabelYesYes
hideDataLabelYesYes
emptyLabelYesYes
missingLabelYesYes
clearLabelYesYes
categoryLabelAccepted, no effectAccepted, no effectThe arrow keys move between the points of the plot itself; there is no list to label.
seriesLabelAccepted, no effectAccepted, no effectThe arrow keys move between the points of the plot itself; there is no list to label.
@update:modelValueYesYes
@update:hiddenSeriesYesYes

MDonutChart ​

PropertyMacWindowsNote
idYesYes
labelYesYes
segmentsYesYes
modelValueYesYes
sizeYesYes
strokeWidthYesYes
animatedYesYes
animateNumberAccepted, no effectAccepted, no effectThe number changes at once; rolling digits have no desktop driver yet.
disabledYesYes
totalLabelYesYes
emptyLabelYesYes
formatValueYesYes
@update:modelValueYesYes

MSparkline ​

PropertyMacWindowsNote
idYesYes
labelYesYes
pointsYesYes
domainYesYes
heightYesYes
colorYesYes
animatedYesYes
markerYesYes
showDataYesYes
dataLabelYesYes
emptyLabelYesYes
formatValueYesYes

MHeatmap ​

PropertyMacWindowsNote
idYesYes
labelYesYes
startYesYes
endYesYes
valuesYesYes
modelValueYesYes
colorsYesYes
cellSizeYesYes
weekStartsOnYesYes
localeYesYes
animatedYesYes
disabledYesYes
missingLabelYesYes
dataLabelYesYes
lessLabelYesYes
moreLabelYesYes
formatValueYesYes
@update:modelValueYesYes

MGauge ​

PropertyMacWindowsNote
idYesYes
labelYesYes
valueYesYes
minYesYes
maxYesYes
sizeYesYes
strokeWidthYesYes
semiYesYes
animatedYesYes
animateNumberAccepted, no effectAccepted, no effectThe number changes at once; rolling digits have no desktop driver yet.
colorYesYes
zonesYesYes
suffixYesYes
formatValueYesYes

MAnimatedText ​

Methods: replay()

PropertyMacWindowsNote
idYesYes
textYesYes
variantYesYes
toneYesYes
byYesYes
durationYesYes
staggerYesYes
distanceYesYes
animatedYesYes
appearYesYes
replayKeyYesYes
delayYesYes
settleYesYes
gradientAccepted, no effectAccepted, no effectThe hosts have no fill clipped to glyphs; the text keeps its tone.

MNumberFlow ​

PropertyMacWindowsNote
idYesYes
valueYesYes
localeYesYes
formatYesYes
formatValueYesYes
labelYesYes
variantYesYes
toneYesYes
durationYesYes
animatedYesYes
announceYesYesWindows makes no announcement yet (#478); the name of the number still changes.
directionYesYes
bounceYesYes
trendYesYes

MMarquee ​

PropertyMacWindowsNote
idYesYes
labelYesYes
itemsYesYes
autoplayYesYesWindows does not clip a view yet (#478): what moves can be drawn past its edges.
pausedYesYes
speedYesYes
directionYesYes
itemWidthYesYes
gapYesYes
playLabelYesYes
pauseLabelYesYes
fadeAccepted, no effectAccepted, no effectThe edges stay hard on desktop, as on NativeScript.
@update:pausedYesYes

MConfetti ​

Slots: default · Methods: burst(), stop()

PropertyMacWindowsNote
idYesYes
colorsYesYes
triggerYesYes
countYesYes
disabledYesYes
@burstYesYes
@skippedYesYes

MParticleField ​

Slots: default

PropertyMacWindowsNote
idYesYes
colorsYesYes
heightYesYes
radiusYesYes
activeYesYes
densityYesYes
speedYesYesWindows does not clip a view yet (#478): what moves can be drawn past its edges.
lifetimeYesYes
durationYesYes
sizeYesYes
shapeYesYes
backgroundColorYesYes

MGradientBackground ​

Slots: default

PropertyMacWindowsNote
idYesYes
colorsYesYes
heightYesYes
radiusYesYes
angleYesYes
animatedYesYes
activeYesYes
durationYesYes

Check a screen before it runs ​

sh
create-mavis --add-macos --entry src/shared/Home.vue          # preview, writes nothing
create-mavis --capabilities --json                            # the contract as data

The preview reads the entry and the files it imports, and reports components, properties, slots and imports the desktop does not have, grouped by file with their lines. A refused property comes with its reason. See Add a desktop host.

Components for NativeScript and Web. Starting with Vue.