Optional
centerShow window in the center of the screen..
Optional
xThe initial vertical position. Only applies if y
is also set.
Optional
yThe initial horizontal position. Only applies if x
is also set.
Optional
widthThe initial width.
Optional
heightThe initial height.
Optional
minThe minimum width. Only applies if minHeight
is also set.
Optional
minThe minimum height. Only applies if minWidth
is also set.
Optional
maxThe maximum width. Only applies if maxHeight
is also set.
Optional
maxThe maximum height. Only applies if maxWidth
is also set.
Optional
preventPrevent the window from overflowing the working area (e.g. monitor size - taskbar size)
on creation, which means the window size will be limited to monitor size - taskbar size
Can either be set to true
or to a PreventOverflowMargin object to set an additional margin
that should be considered to determine the working area
(in this case the window size will be limited to monitor size - taskbar size - margin
)
NOTE: The overflow check is only performed on window creation, resizes can still overflow
Optional
resizableWhether the window is resizable or not.
Optional
titleWindow title.
Optional
fullscreenWhether the window is in fullscreen mode or not.
Optional
focusWhether the window will be initially focused or not.
Optional
transparentWhether the window is transparent or not.
Note that on macOS
this requires the macos-private-api
feature flag, enabled under tauri.conf.json > app > macOSPrivateApi
.
WARNING: Using private APIs on macOS
prevents your application from being accepted to the App Store
.
Optional
maximizedWhether the window should be maximized upon creation or not.
Optional
visibleWhether the window should be immediately visible upon creation or not.
Optional
decorationsWhether the window should have borders and bars or not.
Optional
alwaysWhether the window should always be on top of other windows or not.
Optional
alwaysWhether the window should always be below other windows.
Optional
contentPrevents the window contents from being captured by other apps.
Optional
skipWhether or not the window icon should be added to the taskbar.
Optional
shadowOptional
themeThe initial window theme. Defaults to the system theme.
Only implemented on Windows and macOS 10.14+.
Optional
titleThe style of the macOS title bar.
Optional
trafficThe position of the window controls on macOS.
Requires titleBarStyle: 'overlay'
and decorations: true
.
Optional
hiddenIf true
, sets the window title to be hidden on macOS.
Optional
tabbingDefines the window tabbing identifier on macOS.
Windows with the same tabbing identifier will be grouped together. If the tabbing identifier is not set, automatic tabbing will be disabled.
Optional
maximizableWhether the window's native maximize button is enabled or not. Defaults to true
.
Optional
minimizableWhether the window's native minimize button is enabled or not. Defaults to true
.
Optional
closableWhether the window's native close button is enabled or not. Defaults to true
.
Optional
parentSets a parent to the window to be created. Can be either a Window
or a label of the window.
Optional
visibleOptional
windowWindow effects.
Requires the window to be transparent.
Optional
backgroundOptional
backgroundChange the default background throttling behaviour.
see https://github.com/tauri-apps/tauri/issues/5250#issuecomment-2569380578
Optional
javascriptWhether we should disable JavaScript code execution on the webview or not.
Optional
allowon macOS and iOS there is a link preview on long pressing links, this is enabled by default. see https://docs.rs/objc2-web-kit/latest/objc2_web_kit/struct.WKWebView.html#method.allowsLinkPreview
Optional
disableAllows disabling the input accessory view on iOS.
The accessory view is the view that appears above the keyboard when a text input element is focused. It usually displays a view with "Done", "Next" buttons.
Configuration for the window to create.
Since
1.0.0