Add command bar component

This commit is contained in:
2022-02-25 17:23:50 +08:00
parent 567c1f2ea4
commit 7fe33f2017
9 changed files with 41 additions and 7 deletions
@@ -0,0 +1,3 @@
div.command-bar {
height: 100%;
}
@@ -0,0 +1,20 @@
import { BackgroundLevel, Theme } from "@Component/Theme/Theme";
import { Component, ReactNode } from "react";
interface ICommandBarProps {
width: number;
}
class CommandBar extends Component<ICommandBarProps> {
render(): ReactNode {
return <Theme
className="command-bar"
backgroundLevel={BackgroundLevel.Level2}
style={{ width: this.props.width }}
>
</Theme>
}
}
export { CommandBar };