@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
41 lines (40 loc) • 1.45 kB
TypeScript
export declare const SEARCHBOX_CLASSNAME = "k-searchbox";
declare const states: ("required" | "loading" | "focus" | "invalid" | "disabled" | "hover" | "valid")[];
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: {
(props: KendoSearchboxProps & KendoSearchboxState & React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
states: ("required" | "loading" | "focus" | "invalid" | "disabled" | "hover" | "valid")[];
options: {
size: ("small" | "medium" | "large")[];
rounded: ("small" | "medium" | "full" | "large")[];
fillMode: ("flat" | "outline" | "solid")[];
};
className: string;
defaultOptions: {
showIcon: boolean;
icon: string;
size: "medium";
rounded: "medium";
fillMode: "solid";
};
};
export default Searchbox;