@bee-design/ui
Version:
Bee Design React UI Library.
30 lines (29 loc) • 928 B
TypeScript
import React, { CSSProperties, ReactNode } from 'react';
import { Dayjs } from 'dayjs';
export interface DateInputProps {
style?: CSSProperties;
className?: string | string[];
error?: boolean;
disabled?: boolean;
placeholder?: string;
value?: Dayjs;
inputValue?: string;
popupVisible?: boolean;
format?: string | ((value: Dayjs) => string);
prefixCls?: string;
size?: 'mini' | 'small' | 'default' | 'large';
allowClear?: boolean;
onClear?: (e: any) => void;
editable?: boolean;
onPressEnter?: () => void;
onChange?: (e: any) => void;
suffixIcon?: ReactNode;
isPlaceholder?: boolean;
prefix?: ReactNode;
}
declare type DateInputHandle = {
focus: () => void;
blur: () => void;
};
declare const _default: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<DateInputHandle>>;
export default _default;