Socket
Socket
Sign inDemoInstall

cmd-dialog

Package Overview
Dependencies
8
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cmd-dialog

Command dialog and keyboard shortcuts palette for web apps


Version published
Weekly downloads
20
increased by53.85%
Maintainers
1
Install size
3.30 MB
Created
Weekly downloads
 

Readme

Source

NPM Downloads NPM Version NPM License Last Commit

Command <dialog>

Command dialog and keyboard shortcuts palette for web apps.

Features

  • Keyboard navigation4
  • Build in dark/light themes
  • Customizable action shortcuts with hotkeys.js
  • Responsive design
  • Native <dialog> element
  • Fuzzy search with Fuse.js

Install

npm i cmd-dialog

From CDN

<script type="module" src="https://esm.run/cmd-dialog"></script>

or inside module script

<script type="module">
  import cmdDialog from 'https://esm.run/cmd-dialog';
</script>

Usage

Attributes

  • theme - Theme of the dialog. Possible values: light or dark. Default value is taken from browser preference.
  • hotkey - List of hotkeys. Default value: ctrl+k,cmd+k.
  • placeholder - Placeholder text for the search input. Default value: Type a command or search....
  • note - The note in the footer of the dialog box. Default value show number of options.

Credits

  • LitElement - A simple base class for creating fast, lightweight web components.
  • Fuse.js - Lightweight fuzzy-search library.
  • hotkeys.js - A robust Javascript library for capturing keyboard input.
  • Ninja Keys - Keyboard shortcuts for any web application.

Keywords

FAQs

Last updated on 06 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc