Skip to content

PUITopBar

Elijah Cobb edited this page May 15, 2021 · 2 revisions

As most PUI applications are used with electron. It is nice having a custom top bar for your electron app. To do this, you can use a PUITopBar. Simply pass in an icon, title, and a few handlers and you will have a nicely themed top bar for your application.

<PUITopBar
	icon={"./path/to/my/icon"}
	title={"PUI Application Title"}
	onMinimize={() => {
		// minimize the app
	}}
	onClose={() => {
		// close the app
	}}
/>

image-20210515141530839