Skip to content

API Reference / @gtkx/animated / AnimatedStyle

Type Alias: AnimatedStyle<T>

AnimatedStyle<T> = { [K in keyof T]: T[K] extends string | number | undefined | null ? AnimatedProp<T[K]> : AnimatedProp<T[K]> | AnimatedStyle<NonNullable<T[K]>> }

Defined in: packages/animated/dist/types.d.ts:13

A style object whose declarations may each be a spring or an interpolation, nested blocks included, so the object a spring hook returns can be handed to style as it is.

Type Parameters

T

T

Released under the MPL-2.0 License.