import { SvelteComponent, Snippet } from 'svelte'; import { HTMLAttributes } from 'svelte/elements'; export interface Props { class?: string; /** * Component's HTML Element * * @default 'div' */ component?: string | typeof SvelteComponent; /** * Object with Tailwind CSS colors classes * */ colors?: { /** * * @default '' */ inputBgIos?: string; /** * * @default 'bg-md-light-secondary-container dark:bg-md-dark-secondary-container' */ inputBgMaterial?: string; /** * * @default '' */ placeholderIos?: string; /** * * @default 'placeholder-md-light-on-surface-variant dark:placeholder-md-dark-on-surface-variant' */ placeholderMaterial?: string; }; /** * Searchbar placeholder * * @default 'Search' */ placeholder?: string | number; /** * Searchbar value */ value?: any; /** * Input id attribute */ inputId?: string; /** * Additional input classes */ inputStyle?: React.CSSProperties; /** * Adds button for cancel search and set its initial state * * @default false */ disableButton?: boolean; /** * Adds input clear button * * @default true */ clearButton?: boolean; /** * `input` event handler */ onInput?: (e: any) => void; /** * `change` event handler */ onChange?: (e: any) => void; /** * `focus` event handler */ onFocus?: (e: any) => void; /** * `blur` event handler */ onBlur?: (e: any) => void; /** * Fired on clear button click */ onClear?: (e: any) => void; /** * Fired on searchbar disable */ onDisable?: (e: any) => void; } interface SearchbarProps {} interface SearchbarProps extends Props {} interface SearchbarEvents extends Record<'',{}>{} declare class Searchbar extends SvelteComponent< SearchbarProps & Omit, keyof Props>, SearchbarEvents, { } > {} export default Searchbar;