Utilities
Small standalone helpers used across the package. Each one is a single function with a focused responsibility.
Helpers
emptyNull— collapse empty / falsy strings tonullgenerateColorPalette— turn a base hex color into a CSS-variable shade scale via OKLCHguarded— wrap a function with global error handling for HTTP-aware exceptionsonError— partially-appliedguardedfactory that captures anonErrorcallback up frontpersistentRef—Ref<T>that mirrorslocalStoragewith a custom serializerpersistentStringRef— string-flavouredpersistentRefwith sane defaults for nullable text valuesrunBefore— decorator that runs a side effect before invoking the wrapped functionunrefAll— unref many dependencies at once and throwUnresolvedDependencyExceptionon falsy valuesunwrapElement— resolve a ref to either anHTMLElementornull, withComponentPublicInstancesupport
See also
- Errors — exceptions thrown by these utilities
- Composables — most of these utilities power the composables in the package