1.0.3 • Published 2 years ago

annotate-workspace-layout v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Annotate Workspace Layout

Credit to "https://github.com/UniversalDataTool/react-material-workspace-layout.git"

Installation and Usage

npm i annotate-workspace-layout

import Workspace from "react-material-workspace-layout/Workspace"
import SidebarBox from "react-material-workspace-layout/SidebarBox"
;<Workspace
  allowFullscreen
  headerItems={[{ name: "Prev" }, { name: "Next" }, { name: "Save" }]}
  onClickHeaderItem={console.log}
  onClickIconSidebarItem={console.log}
  iconSidebarItems={[
    {
      name: "Play",
    },
    {
      name: "Pause",
    },
  ]}
  rightSidebarItems={[
    <SidebarBox icon={<FeaturedVideoIcon />} title="Region Selector">
      Hello world!
    </SidebarBox>,
  ]}
>
  Hello World, this is the main content where an image or something might go!
</Workspace>

Props

PropDescriptionExampleDefault
allowFullscreenEnables a full screen buttonfalse
headerItems
onClickHeaderItem
onClickIconSidebarItem
iconSidebarItems
rightSidebarItems