UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

28 lines (27 loc) 877 B
import type { InputProps } from 'antd'; import { type CSSProperties } from 'react'; export interface HotkeyInputProps { allowReset?: boolean; className?: string; defaultValue?: string; disabled?: boolean; hotkeyConflicts?: string[]; isApple?: boolean; onBlur?: InputProps['onBlur']; onChange?: (value: string) => void; onConflict?: (conflictKey: string) => void; onFocus?: InputProps['onFocus']; onReset?: (currentValue: string, resetValue: string) => void; placeholder?: string; resetValue?: string; style?: CSSProperties; texts?: { conflicts?: string; invalidCombination?: string; reset?: string; }; value?: string; variant?: 'default' | 'ghost' | 'block' | 'pure'; } declare const HotkeyInput: import("react").NamedExoticComponent<HotkeyInputProps>; export default HotkeyInput;