Learn how to build your own magical interactions with Cedar-OS spells
useSpell
hook, which provides a declarative API for binding gestures to behaviors. This guide will walk you through creating custom spells from simple to advanced.
useSpell
hook is your primary interface for creating spells:
Cmd+K
:
F1
- F12
ESCAPE
, ENTER
, SPACE
, TAB
, DELETE
, BACKSPACE
ARROW_UP
, ARROW_DOWN
, ARROW_LEFT
, ARROW_RIGHT
CTRL
, CMD
, META
, ALT
, SHIFT
RIGHT_CLICK
- Right mouse buttonDOUBLE_CLICK
- Double left clickMIDDLE_CLICK
- Middle mouse buttonSHIFT_CLICK
- Shift + left clickCTRL_CLICK
- Ctrl + left clickCMD_CLICK
- Cmd + left click (Mac)ALT_CLICK
- Alt + left clickTEXT_SELECT
- Text selection in document