v0.0.5
- add:
WindowTitlebar
component. - add:
hide
,hideMethod
options toWindowControls
. - 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 itundefined
for default OS-based positioning or use "right" for right-aligned, "left" for left-aligned, "platform" for OS-based positioning specified inwindowControlsProps
.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>