UNPKG

@real-system/input

Version:
17 lines 773 B
import * as React from 'react'; import type { RealElementPrimitiveProps } from '@real-system/elements-primitive'; import type { AddonProps } from './Addon'; export type InputBoxTypes = 'text' | 'email' | 'hidden' | 'number' | 'password' | 'search' | 'tel' | 'date' | 'time'; export type InputBoxProps = { children: NonNullable<React.ReactNode>; disabled?: boolean; hasError?: boolean; readonly?: boolean; type: InputBoxTypes; prefix?: React.ReactNode; suffix?: React.ReactNode; addonProps?: Omit<AddonProps, 'children'>; } & RealElementPrimitiveProps<'div'>; declare const InputBox: React.ForwardRefExoticComponent<Omit<InputBoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>; export { InputBox }; //# sourceMappingURL=InputBox.d.ts.map