Socket
Socket
Sign inDemoInstall

cmd-dialog

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

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
30
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 28 Feb 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc