cmd-pal-test
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha.4 • Public • Published

cmd-pal

Install

# npm
npm install cmd-pal --save-dev

# yarn
yarn add cmd-pal --dev

Usage

import { ClassicTheme, Palette, SingleOption } from 'cmd-pal';

// ...

ReactDOM.render(
  <>
    <App />
    <Palette
      components={ClassicTheme.components}
      openOn="option+shift+p"
      prompts={[
        <SingleOption
          options={[
            {
              label: 'Hello world',
              resolve() {
                alert('Hello world');
              },
            },
            // ...
          ]}
        />
      ]}
    />
  </>,
  root,
);

/cmd-pal-test/

    Package Sidebar

    Install

    npm i cmd-pal-test

    Weekly Downloads

    1

    Version

    0.1.0-alpha.4

    License

    MIT

    Unpacked Size

    1.45 MB

    Total Files

    303

    Last publish

    Collaborators

    • vincemalone