UNPKG

react-select-module

Version:
43 lines (39 loc) 840 B
/** @jsx jsx */ import * as emotionCore from '@emotion/core'; const { jsx } = emotionCore; export default function DummyInput({ in: inProp, out, onExited, appear, enter, exit, innerRef, emotion, ...props }) { return ( <input ref={innerRef} {...props} css={{ label: 'dummyInput', // get rid of any default styles background: 0, border: 0, fontSize: 'inherit', outline: 0, padding: 0, // important! without `width` browsers won't allow focus width: 1, // remove cursor on desktop color: 'transparent', // remove cursor on mobile whilst maintaining "scroll into view" behaviour left: -100, opacity: 0, position: 'relative', transform: 'scale(0)', }} /> ); }