@just-web/react-commands
TypeScript icon, indicating that this package has built-in type declarations

9.0.4 • Public • Published

@just-web/command-react

NPM version NPM downloads

@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>
</>

/@just-web/react-commands/

    Package Sidebar

    Install

    npm i @just-web/react-commands

    Weekly Downloads

    0

    Version

    9.0.4

    License

    MIT

    Unpacked Size

    53.6 kB

    Total Files

    16

    Last publish

    Collaborators

    • unional