Skip to content

Releases: agmmnn/tauri-controls

v0.0.5

28 Jul 22:10
695f31a
Compare
Choose a tag to compare
  • 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>

v0.0.3

24 Jul 23:11
26cb55c
Compare
Choose a tag to compare
  • fix types