Core Functions

Animation

  • useInterval — reactive counter increases on every interval
  • useIntervalFn — wrapper for setInterval with controls
  • useNow — reactive current Date instance
  • useRafFn — call function on every requestAnimationFrame
  • useTimeout — update value after a given time with controls
  • useTimeoutFn — wrapper for setTimeout with controls
  • useTimestamp — reactive current timestamp
  • useTransition — transition between values

Browser

Component

Formatters

Misc

Sensors

State

Utilities

  • and — AND condition for refs
  • asyncComputed — computed for async functions
  • autoResetRef — a ref which will be reset to the default value after some time
  • biSyncRef — two-way refs synchronization
  • controlledComputed — explicitly define the deps of computed
  • controlledRef — fine-grained controls over ref and its reactivity
  • createEventHook — utility for creating event hooks
  • extendRef — add extra attributes to Ref
  • get — shorthand for accessing ref.value
  • makeDestructurable — make isomorphic destructurable for object and array at the same time
  • not — NOT condition for ref
  • or — OR conditions for refs
  • reactify — converts plain functions into reactive functions
  • reactifyObject — apply reactifyto an object
  • reactivePick — reactively pick fields from a reactive object
  • set — shorthand for ref.value = x
  • syncRef — keep target refs in sync with a source ref
  • toRefs — extended toRefs that also accepts refs of an object
  • useAsyncState — reactive async state
  • useCounter — basic counter with utility functions
  • useDebounce — debounce execution of a ref value
  • useDebounceFn — debounce execution of a function
  • useLastChanged — records the timestamp of the last change
  • useManualRefHistory — manually track the change history of a ref when the using calls commit()
  • useRefHistory — track the change history of a ref
  • useThrottle — throttle changing of a ref value
  • useThrottleFn — throttle execution of a function
  • useToggle — a boolean switcher with utility functions

Watch


More functions avaliable in Add-ons.