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/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/ant-design/components/input/utils.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/ant-design/components/input/utils.ts
-
curl -L -o utils.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/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); | |
| } | |