We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df20a80 commit 0c35c3bCopy full SHA for 0c35c3b
src/components/toolbar/index.tsx
@@ -0,0 +1,19 @@
1
+import './style.scss';
2
+import * as React from 'react';
3
+import { prefixClaName, classNames } from 'mo/common/className';
4
+import ActionBar, { IActionBar } from 'mo/components/actionbar';
5
+
6
+export interface IToolBar<T = any> extends IActionBar {
7
+}
8
9
+const rootClassName = 'tool-bar';
10
11
+export default function ToolBar<T = any>(props: IToolBar<T>) {
12
+ const { className, ...others } = props;
13
14
+ return (
15
+ <div className={classNames(prefixClaName(rootClassName), className)}>
16
+ <ActionBar {...others}/>
17
+ </div>
18
+ )
19
src/components/toolbar/style.scss
@@ -0,0 +1,6 @@
+@import 'mo/style/const';
+$toolBar: 'tool-bar';
+#{prefix($toolBar)} {
+ color: inherit;
0 commit comments