UNPKG

react-select

Version:

A Select control built with and for ReactJS

16 lines (11 loc) 471 B
// @flow import React, { type AbstractComponent } from 'react'; import { type SingleValueProps } from '../components/SingleValue'; import { Fade } from './transitions'; // instant fade; all transition-group children must be transitions const AnimatedSingleValue = ( WrappedComponent: AbstractComponent<SingleValueProps> ): AbstractComponent<SingleValueProps> => (props) => ( <Fade component={WrappedComponent} {...props} /> ); export default AnimatedSingleValue;