Skip to content

A custom React component to use as a titlebar for your tauri projects

Notifications You must be signed in to change notification settings

MathiasMantai/tauri-custom-titlebar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Dependencies (can easily be removed if you want to use custom styles/icons)

How to use

In your projects tauri.conf.json, add the following to allow the use of a custom titlebar:

"tauri": {
    "allowlist": {
        "window": {
            "startDragging": true,
            "maximize": true,
            "unmaximize": true,
            "minimize": true,
            "close": true
        },
    }
},

...

"windows": [
    {
        "decorations": false,
    }
]

This will allow the use of draggable regions by using the data attribute and disable the default tauri titlebar

All in one Vue Component

I created this component for my current project. Since the Font Awesome Icons didn't really look good I decided to create my own Vector Images. Besides that I also use a Pinia store to store window state since I used that all over my application. The window state is used to decide which Icons to render.

About

A custom React component to use as a titlebar for your tauri projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published