@just-web/react-commands
v9.0.4
Published
@just-web/commands UI components in react
Downloads
8
Readme
@just-web/command-react
@just-web/react-commands provides the components for @just-web/commands written in React.
Install
# npm
npm install @just-web/react-commands
# yarn
yarn add @just-web/react-commands
# pnpm
pnpm install @just-web/react-commands
#rush
rush add -p @just-web/react-commands
Usage
You can load the plugin synchronously or asynchronously. Here is an example to load it synchronously:
Note that currently there are no init work done in this plugin.
Meaning it can be converted to a library instead of a plugin.
The extend()
call below is not needed.
import { createApp } from '@just-web/app'
import * as reactCommandModule from '@just-web/react-commands'
void (async () => {
const app = await createApp({ name: 'my-app' })
.extend(reactCommandModule)
await app.start()
})()
Features
CommandPalette
import { CommandPalette } from '@just-web/react-commands'
const Comp = () => <>
<CommandPalette>
</>