0.2.1 • Published 4 months ago

@electron-wm/react-taskbar v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@electron-wm/react-taskbar

A React-based taskbar component for the electron-wm window manager.

Usage

Use the Taskbar component within your desktop component.

import { Taskbar, TagList, TaskList, RunField, SystemTray, Clock, LayoutIndicator } from "@electron-wm/react-taskbar";

export default () => {
  const screenIndex = useScreenIndex();
  return (
    <Desktop>
      <Taskbar height={20}>
        <TagList />
        <RunField />
        <TaskList />
        {screenIndex === 0 && <SystemTray />}
        <Clock />
        <LayoutIndicator />
      </Taskbar>
      <WorkArea>
        <Wallpaper />
      </WorkArea>
    </Desktop>
  );
};