Forms, new
Hotkey Recorder
A field that records a keyboard shortcut.
$149 once · every Pro piece
Customize
Hold any keys together, modifiers, letters and numbers, and the chord is set when you let go; conflicts and system-reserved shortcuts are refused with a shake.
Install
npx shadcn@latest add @obsyde/hotkey-recorderNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { HotkeyRecorder } from '@/components/obsyde/ember/hotkey-recorder/HotkeyRecorder';
export function Example() {
return (
<HotkeyRecorder />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/hotkey-recorder/HotkeyRecorder.tsxcomponentember/hotkey-recorder/hotkey-recorder.cssstylesember/hotkey-recorder/HotkeyRecorderDemo.tsxdemoember/tactile-kit/kit.tssharedember/shared/accent.tssharedember/shared/spring.tssharedember/kit2-kit/kit.tssharedember/kbd/kbd.csssharedember/kbd/Kbd.tsxsharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
allowSingleAllow single keys | boolean | false |
showResetReset defaults | boolean | true |