Skip to main content
Svecodocs
Introduction
Getting Started
Releases
Reactivity
watch
State
Context
Debounced
FiniteStateMachine
PersistedState
Previous
StateHistory
Elements
activeElement
ElementRect
ElementSize
IsFocusWithin
IsInViewport
useIntersectionObserver
useMutationObserver
useResizeObserver
Browser
useEventListener
Sensors
IsIdle
onClickOutside
onKeyStroke
PressedKeys
useGeolocation
Animation
AnimationFrames
Utilities
useDebounce
Component
IsMounted
Toggle Sidebar
Search Docs ...
⌘
K
onKeyStroke
Listen for key strokes and handle them.
Demo
Listening for "a" and "b"
[]
Clear log
Usage