tauri-controls

πŸš₯ Native-looking window controls for Tauri 2. React, Solid, Vue, Svelte+Tailwind.

MIT License

Downloads
894
Stars
515
Committers
9

Bot releases are visible (Hide)

tauri-controls - v0.4.0 Latest Release

Published by agmmnn 7 months ago

  • update version for tauri v2 beta #23 (tauri-plugin-window is deprecated #22), thank you @sdvina
  • switch default package manager from pnpm to bun
tauri-controls - v0.3.0

Published by agmmnn 9 months ago

  • Remove all Tauri dependencies from the list of dependecies. This will require the user to install these (which were already in the instructions), but allow for more control of a single version of these packages. #20, thanks to @jbolda
tauri-controls - v0.2.0

Published by agmmnn about 1 year ago

tauri-controls - v0.1.2

Published by agmmnn about 1 year ago

tauri-controls - @tauri-controls/[email protected]

Published by agmmnn about 1 year ago

✨ @tauri-controls/vue - @allenli178

Big thanks to @allenli178, tauri-controls is now also available for Vue.js 3.

Check out the pull request here #11 πŸŽ‰

pnpm add @tauri-controls/vue
<script setup lang="ts">
import { WindowTitlebar } from "@tauri-controls/solid"
</script>

<template>
	<WindowTitlebar>{/* Place your titlebar content here */}</WindowTitlebar>
</template>

🏠 https://www.npmjs.com/package/@tauri-controls/vue

tauri-controls - @tauri-controls/[email protected]

Published by agmmnn about 1 year ago

✨ @tauri-controls/solid - @ronanru

A big shoutout to @ronanru, tauri-controls is now also available for Solid.js.

Check out the pull request here #8 πŸŽ‰

pnpm add @tauri-controls/solid
import { WindowTitlebar } from "@tauri-controls/solid"

function MyTitlebar() {
  return (
    <WindowTitlebar>{/* Place your titlebar content here */}</WindowTitlebar>
  )
}

🏠 https://www.npmjs.com/package/@tauri-controls/solid

tauri-controls - v0.1.0 - Svelte Implementation

Published by agmmnn about 1 year ago

Repo Changes:

New Features:

  • Svelte/Sveltekit implementation: Tauri Controls is now available for Svelte and Sveltekit projects.
  • Add justify option to WindowControls: When set to true, WindowControls will justify/snap within the flexbox container it is placed in.

✨ @tauri-controls/svelte

Tauri Controls has been implemented for Svelte/Sveltekit, you can easily install it for svelte following the same installation steps except the extra tailwind step.

pnpm add @tauri-controls/svelte

<script lang="ts">
  import { WindowTitlebar } from "@tauri-controls/svelte"
</script>

<WindowTitlebar>{/* Place your titlebar content here */}</WindowTitlebar>

Check out the Tauri app demo with pnpm tauri dev: master/apps/tauri-controls-svelte

Footnote

All templates in tauri-ui now contain tauri-controls. https://github.com/agmmnn/tauri-ui/releases/tag/v0.3.0

explorer_39m44w90Ks

tauri-controls - v0.0.8

Published by agmmnn about 1 year ago

tauri-controls - v0.0.7

Published by agmmnn about 1 year ago

Dev

  • code refactor
    • TauriAppWindowProvider: contexts/plugin-window
  • update vite-rollup config
tauri-controls - v0.0.6

Published by agmmnn about 1 year ago

tauri-controls - v0.0.5

Published by agmmnn about 1 year ago

  • add: WindowTitlebar component.
  • add: hide, hideMethod options to WindowControls.
  • add: MIT license file. #3 @abose
  • fix "Meta" key for macos window-controls.

Development Environment

  • add: tauri-demo application for testing.
  • add: eslint, prettier configurations.

✨ WindowTitlebar

WindowTitlebar component handles the window controls and dynamically adjusts the control buttons and titlebar content order based on the current operating system.

Usage:

<WindowTitlebar>
  {/* Place your titlebar content here */}
</WindowTitlebar>

Options:

  • controlsOrder?: "right" | "left" | "platform": Specify the position of window controls. leave it undefined for default OS-based positioning or use "right" for right-aligned, "left" for left-aligned, "platform" for OS-based positioning specified in windowControlsProps.
  • windowControlsProps?: WindowControls
    The windowControlsProps property allows you to customize the appearance and behavior of the window controls within the WindowTitlebar. You can utilize the WindowControls component and provide specific options to tailor the controls to your application's requirements.
// this will show only macos controls with macos order
<WindowTitlebar
  controlsOrder="platform"
  windowControlsProps={{platform: "macos"}}
>
  {/* Place your titlebar content here. Menu, app icon, window title etc. */}
</WindowTitlebar>
tauri-controls - v0.0.3

Published by agmmnn about 1 year ago

  • fix types