Skip to content

API Reference / @gtkx/animated / AnimatedProps

Type Alias: AnimatedProps<Props> ​

AnimatedProps<Props> = { [P in keyof Props]: P extends "key" | "ref" | ConstructOnlyPropNames<Props> ? Props[P] : P extends "style" ? AnimatedProp<Props[P]> | AnimatedStyle<NonNullable<Props[P]>> : AnimatedProp<Props[P]> }

Defined in: packages/animated/src/types.ts:29

The props of an animated component: mutable props also accept a FluidValue, while construct-only props, ref, and key keep their original types.

Type Parameters ​

Props ​

Props extends object