Skip to main content

Crate tauri_plugin_system_components

Crate tauri_plugin_system_components 

Source
Expand description

Native system UI components for Tauri 2.

  • iOS: a native UITabBar overlaid on the webview — it adopts Liquid Glass automatically when the app is built with Xcode 26 against the iOS 26 SDK, and refracts the web content rendered behind it. Tab taps are forwarded to JS as tabSelected events.
  • macOS: a glass window background via NSGlassEffectView (macOS 26), with an NSVisualEffectView blur fallback on older systems.

Structs§

AccessoryItem
A standalone account button floated beside the bar (Apple Music search-button style). image (base64 / data URL) wins over sf_symbol.
ComponentEventPayload
Payload of the system-components://component-event event on macOS (iOS delivers the same shape through the plugin event channel).
ComponentProps
Per-kind properties. All optional; irrelevant fields are ignored.
ConfigureTabBarOptions
CreateComponentOptions
DismissSheetOptions
GlassSupport
PresentSheetOptions
Present a native Liquid Glass bottom sheet (iOS) with natively-rendered rows.
RemoveComponentOptions
SelectTabOptions
SetBadgeOptions
SheetOption
An option for a select sheet row.
SheetRow
One row in a native sheet (iOS), rendered natively. Tappable rows report the id via sheetRow; form rows report via sheetField / sheetSubmit.
TabBarInsets
Space the web content should reserve so the floating bar doesn’t cover it.
TabItem
A single tab in the native bottom tab bar.
TabSelectedPayload
Payload of the system-components://tab-selected event emitted on macOS (iOS delivers the same shape through the plugin event channel).
UpdateComponentOptions
UpdateComponentsOptions
Batched form of UpdateComponentOptions — one IPC round trip and one (animation-disabled) native transaction for all geometry updates of a frame. Used by the DOM scroll-sync path.
WindowGlassOptions

Enums§

ComponentAnchor
Where a component is pinned, relative to the window/safe area.
ComponentKind
Kind of native overlay component.
Error

Traits§

SystemComponentsExt
Extensions to tauri::App, tauri::AppHandle and tauri::Window to access the system-components APIs.

Functions§

init
Initializes the plugin. Call this from your Tauri app’s lib.rs:

Type Aliases§

Result