命令栏启动器
该组件是打开命令栏的启动器。 它看起来像一个搜索栏,可以插入到任何react应用中。 单击后,它将打开命令栏。
安装
运行npm install commandbar-launcher 。
原料药
名称
类型
描述
默认
文本
字符串或HTMLElement
要在启动器中渲染的元素
查找任何内容[ctrl + k]
风格
CSS属性
启动器的样式替代
{}
例子
默认用法:
import Launcher from 'commandbar-launcher';
export const MyLauncher = () => {
return <Launcher>;
}
样式更改的示例:
<Launcher style={{ fontWeight: 700, textAlign: "center", background: "black", color: