oui-kit
Version:
🎯 *UI toolkit with a French touch* 🇫🇷
9 lines (8 loc) • 436 B
TypeScript
import { DisposerFunction } from 'zeed';
export declare const isEnterPressed: import('vue').Ref<boolean, boolean>;
/**
* Helper to check if enter is pressed and hook on release.
* If enter is pressed, the function will be called immediately.
* If enter is not pressed, the function will be called when enter is released.
*/
export declare function onEnterFree(onEnter: () => void, onFail: () => void): DisposerFunction | undefined;