Skip to content

A command palette for Rails using Stimulus and Ninja Keys.

License

Notifications You must be signed in to change notification settings

rootlyhq/rails_command_palette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rails_command_palette

A command palette for Rails using Stimulus and Ninja Keys.

Install

Install the gem:

bundle add rails_command_palette --github=rootlyhq/rails_command_palette

Install Ninja Keys:

yarn add --dev ninja-keys

Install the Stimulus controller:

rails g command_palette:install

Usage

Controller

add_command(id:, title:, href: nil, frame: nil, hotkey: nil, icon: nil, section: nil, parent: nil, children: nil, **options)

frame is used when calling Turbo.visit for commands with href. icon accepts HTML.

View

<%= command_palette %>

License

The gem is available as open source under the terms of the MIT License.

About

A command palette for Rails using Stimulus and Ninja Keys.

Resources

License

Stars

Watchers

Forks