Hooks
Global hooks available in Cubitt, grouped by category.
Cubitt exposes global hooks from two sources:
@tilt-legal/cubitt-components/utilities/hooks: reusable hooks for state, timing, browser, storage, and theme behavior.@tilt-legal/cubitt-components: component-level hooks such as URL-state hooks.
Hook Categories
Core Hooks
Cubitt-specific hooks for composition and internals.
State Hooks
State helpers like toggles, counters, and maps.
Timing Hooks
Debounce, timeout, interval, and resettable timeout hooks.
Browser Hooks
DOM events, media queries, viewport, lifecycle, and observers.
Storage Hooks
Local/session storage and browser utility hooks.
Theme Hooks
Dark mode and ternary theme mode hooks.
URL State Hooks
Read/write component state in URL parameters.
URL-state pages are maintained separately in /hooks/url-state.