Repository URL to install this package:
|
Version:
3.12.2 ▾
|
var style = {
opacity: 1,
border: 0,
background: 'transparent',
padding: '5px 12px',
fontSize: 14
};
/**
* [TODO] We may remove this util when this feature implemented in Scaleflex UI
* @param {string} placeholder
* @param {value} string
* @param {value} Array
* @returns {Object} placeholder with styles
*/
export default function generateSelectInputPlaceholder(placeholder) {
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
if (value.length) return;
return {
placeholder: placeholder,
style: style
};
}