🚥 Native-looking window controls for Tauri 2. React, Solid, Vue, Svelte+Tailwind.
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/vue"
</script>
<template>
<WindowTitlebar>{/* Place your titlebar content here */}</WindowTitlebar>
</template>
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>
)
}
justify
option to WindowControls
: When set to true, WindowControls will justify/snap within the flexbox container it is placed in.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
All templates in tauri-ui now contain tauri-controls
. https://github.com/agmmnn/tauri-ui/releases/tag/v0.3.0
TauriAppWindowProvider
: contexts/plugin-windowmr
used instead of gap
(Safari<14.1 doesnt support flex gap: https://www.falldowngoboone.com/blog/the-curious-case-of-flexbox-gap-and-safari/)bg-background
, overflow-hidden
attributes added. cd59f8f