API Reference / @gtkx/animated / ControllerProps
Interface: ControllerProps<State, Item>
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:836
Props for Controller methods and constructor.
Extends
AnimationProps<State>
Type Parameters
State
Item
Item = undefined
Properties
cancel?
optionalcancel?:MatchProp<State>
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:899
Cancel all animations by using true, or some animations by using a key or an array of keys.
Inherited from
config?
optionalconfig?:Partial<AnimationConfig> | ((key) =>SpringConfig)
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:886
Configure the spring behavior for each key.
Inherited from
default?
optionaldefault?:boolean|SpringProps<State>
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:916
Override the default props with this update.
Inherited from
delay?
optionaldelay?:number| ((key) =>number)
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:890
Milliseconds to wait before applying the other props.
Inherited from
from?
optionalfrom?:Falsy|GoalValues<State>
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:838
immediate?
optionalimmediate?:MatchProp<State>
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:894
When true, props jump to their goal values instead of animating.
Inherited from
loop?
optionalloop?:LoopProp<ControllerUpdate<Lookup<any>,undefined>>
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:839
onChange?
optionalonChange?:OnChange<SpringValue<State>,Controller<State>,Item> | { [P in string | number | symbol]?: OnChange<SpringValue<State[P]>, Controller<State>, Item> }
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:857
Called once per frame when animations are active
Also accepts an object for per-key events
onPause?
optionalonPause?:OnPause<SpringValue<State>,Controller<State>,Item> | { [P in string | number | symbol]?: OnPause<SpringValue<State[P]>, Controller<State>, Item> }
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:858
onProps?
optionalonProps?:OnProps<State> | { [P in string | number | symbol]?: OnProps<State[P]> }
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:866
Called after an animation is updated by new props. Useful for manipulation
Also accepts an object for per-key events
onResolve?
optionalonResolve?:OnResolve<SpringValue<State>,Controller<State>,Item>
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:870
Called when the promise for this update is resolved.
onRest?
optionalonRest?:OnRest<SpringValue<State>,Controller<State>,Item> | { [P in string | number | symbol]?: OnRest<SpringValue<State[P]>, Controller<State>, Item> }
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:851
Called when the # of animating values hits 0
Also accepts an object for per-key events
onResume?
optionalonResume?:OnResume<SpringValue<State>,Controller<State>,Item> | { [P in string | number | symbol]?: OnResume<SpringValue<State[P]>, Controller<State>, Item> }
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:859
onStart?
optionalonStart?:OnStart<SpringValue<State>,Controller<State>,Item> | { [P in string | number | symbol]?: OnStart<SpringValue<State[P]>, Controller<State>, Item> }
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:845
Called when the # of animating values exceeds 0
Also accepts an object for per-key events
pause?
optionalpause?:MatchProp<State>
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:904
Pause all animations by using true, or some animations by using a key or an array of keys.
Inherited from
ref?
optionalref?:SpringRef<State>
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:837
reset?
optionalreset?:MatchProp<State>
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:908
Start the next animations at their values in the from prop.
Inherited from
reverse?
optionalreverse?:boolean
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:912
Swap the to and from props.