Skip to content

API Reference / @gtkx/animated / AnimatedProps

Type Alias: AnimatedProps<Props>

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

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

The props of an animated component: every prop of the wrapped component, each also accepting a FluidValue such as a SpringValue or an Interpolation, while ref and key keep their original types.

Type Parameters

Props

Props extends object

Released under the MPL-2.0 License.