@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
26 lines (25 loc) • 1.01 kB
TypeScript
import { KendoComponent } from '../_types/component';
export declare const SEARCHBOX_CLASSNAME = "k-searchbox";
declare const states: ("required" | "loading" | "focus" | "invalid" | "disabled" | "valid" | "hover")[];
declare const options: {
size: ("small" | "medium" | "large")[];
rounded: ("small" | "medium" | "full" | "large")[];
fillMode: ("flat" | "outline" | "solid")[];
};
export type KendoSearchboxOptions = {
size?: (typeof options.size)[number] | null;
rounded?: (typeof options.rounded)[number] | null;
fillMode?: (typeof options.fillMode)[number] | null;
};
export type KendoSearchboxProps = KendoSearchboxOptions & {
type?: string;
value?: string;
placeholder?: string;
showIcon?: boolean;
icon?: string;
};
export type KendoSearchboxState = {
[K in (typeof states)[number]]?: boolean;
};
export declare const Searchbox: KendoComponent<KendoSearchboxProps & KendoSearchboxState & React.HTMLAttributes<HTMLSpanElement>>;
export default Searchbox;