Skip to content

v0.0.5

Compare
Choose a tag to compare
@agmmnn agmmnn released this 28 Jul 22:10
· 56 commits to master since this release
695f31a
  • 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>