Download ant-design/components/input/utils.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/ant-design/components/input/utils.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/ant-design/components/input/utils.ts
-
curl -L -o utils.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/ant-design/components/input/utils.ts
339 Bytes
| import type { ReactNode } from 'react'; | |
| import type { InputProps } from './Input'; | |
| export function hasPrefixSuffix(props: { | |
| prefix?: ReactNode; | |
| suffix?: ReactNode; | |
| allowClear?: InputProps['allowClear']; | |
| showCount?: InputProps['showCount']; | |
| }) { | |
| return !!(props.prefix || props.suffix || props.allowClear || props.showCount); | |
| } | |