UNPKG

react-select

Version:

A Select control built with and for ReactJS

25 lines (22 loc) 481 B
// @flow import React from 'react'; // Assistive text to describe visual elements. Hidden for sighted users. const A11yText = (props: any) => ( <span css={{ zIndex: 9999, border: 0, clip: 'rect(1px, 1px, 1px, 1px)', height: 1, width: 1, position: 'absolute', overflow: 'hidden', padding: 0, whiteSpace: 'nowrap', backgroundColor: 'red', color: 'blue', }} {...props} /> ); export default A11yText;