MCPcopy Create free account
hub / github.com/anomalyco/opencode / read

Function read

packages/ui/src/components/motion-spring.tsx:15–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14export function useSpring(target: () => number, options?: Opt | (() => Opt), snapKey?: () => unknown) {
15 const read = () => (typeof options === "function" ? options() : options)
16 const [value, setValue] = createSignal(target())
17 const source = motionValue(value())
18 const spring = motionValue(value())

Callers 1

useSpringFunction · 0.70

Calls 1

optionsFunction · 0.50

Tested by

no test coverage detected