UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

8 lines • 289 B
import { isPlainObject } from '../_util/is'; export function hasPrefixSuffix(props) { const { allowClear } = props; const clearEnabled = isPlainObject(allowClear) ? !allowClear.disabled : allowClear; return !!(props.prefix || props.suffix || clearEnabled || props.showCount); }