import { InputHTMLAttributes, ReactElement, ReactNode, RefAttributes } from 'react'; /** * Props for the Input component. * * @author Malik Alimoekhamedov * @interface */ interface InputProps extends RefAttributes, InputHTMLAttributes { /** Error message to display underneath the field. */ readonly error?: string; /** If true, will not use neumorphic depth styling. Defaults to false. */ readonly flat?: boolean; readonly icon?: ReactElement; /** * Field label to display above the field. * Will be omitted if none is provided. */ readonly label?: string; /** Custom selector arrows component. */ readonly SelectorArrows?: ReactNode; } type NeumorphicTheme = 'light' | 'dark'; export type { InputProps, NeumorphicTheme };