tauri-plugin-widgets 0.4.2

Tauri plugin for App Widgets on Android, iOS, and macOS (WidgetKit); Windows Widgets Board (Adaptive Cards) + desktop webview; Linux desktop webview with X11 DESKTOP pin.
docs.rs failed to build tauri-plugin-widgets-0.4.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: tauri-plugin-widgets-0.5.0

Platform npm version Crates.io Documentation License GitHub release GitHub downloads GitHub issues GitHub stars Donate

Tauri Plugin Widgets

Native widgets for Android, iOS, macOS, Windows, and Linux from one declarative JSON configuration.

Full documentation (schema, platform setup, elements, showcase):
https://s00d.github.io/tauri-plugin-widgets

The complete config schema, platform setup guides, and element reference live on the documentation site — they are no longer maintained in this README.

Install

# any package manager — or: cargo tauri add tauri-plugin-widgets
pnpm tauri add tauri-plugin-widgets

Manual alternative:

# src-tauri/Cargo.toml
[dependencies]
tauri-plugin-widgets = "0.4"
pnpm add tauri-plugin-widgets-api

Example

import { setWidgetConfig } from "tauri-plugin-widgets-api";

await setWidgetConfig(
  {
    small: {
      type: "vstack",
      padding: 12,
      background: "#1a1a2e",
      children: [
        { type: "text", content: "72°", fontSize: 36, fontWeight: "bold", color: "#fff" },
        { type: "progress", value: 0.7, tint: "#4CAF50", label: "Humidity" },
      ],
    },
  },
  "group.com.example.myapp",
  "weather",
);

Register the plugin with tauri_plugin_widgets::init() and add widgets:default to capabilities. Details: Install · First widget.

Platform setup

Platform Docs
Android Setup
iOS Setup
macOS Setup
Windows Setup
Linux Setup
Desktop webview Setup

Quick scaffold: npx tauri-plugin-widgets-api init-macos|init-ios|init-windows.

Contributing

Architecture, goldens, harnesses: docs/contributing/development.md.

License

MIT