@grandlinex/react-components
Version:
20 lines (19 loc) • 621 B
TypeScript
import React from 'react';
import { BaseProps, IconNodeType } from '../lib';
export type SmartInputElement = {
key: string;
icon?: IconNodeType;
title: string;
detail?: string;
};
export type SmartInputInputProps = BaseProps & {
searchFC?: (s: string) => Promise<SmartInputElement | null>;
onChange?: (meta: SmartInputElement | null) => void;
onType?: (text: string) => void;
value?: SmartInputElement;
list?: SmartInputElement[];
max?: number;
placeholder?: string;
disabled?: boolean;
};
export declare function SmartInput(prop: SmartInputInputProps): React.JSX.Element;