Skip to content

API Reference / @gtkx/animated / OnProps

Type Alias: OnProps<T>

OnProps<T> = (props, spring) => void

Defined in: node_modules/.pnpm/@react-spring+core@10.1.2_react@19.2.8/node_modules/@react-spring/core/dist/react-spring_core.modern.d.mts:649

Called after an animation is updated by new props, even if the animation remains idle.

Type Parameters

T

T = unknown

Parameters

props

Readonly<SpringProps<T>>

spring

SpringValue<T>

Returns

void

Released under the MPL-2.0 License.