Urara-Blog/node_modules/.pnpm-store/v3/files/0a/0b340883a261ec152901c9a969f3b5f671ba71305b79eab14b34eee75e724b7d21f14899f002da4932542a7bfa9b86e8b4cfca56d8d17f6a762bb04d7833af
2022-08-14 01:14:53 +08:00

60 lines
1 KiB
Text

/// <reference types="svelte" />
import { SvelteComponentTyped } from "svelte";
export interface SearchProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["input"]> {
/**
* @default ""
*/
value?: string;
/**
* @default false
*/
autofocus?: boolean;
/**
* @default 0
*/
debounce?: number;
/**
* @default "Label"
*/
label?: string;
/**
* @default false
*/
hideLabel?: boolean;
/**
* @default "search" + Math.random().toString(36)
*/
id?: string;
/**
* @default null
*/
ref?: null | HTMLInputElement;
/**
* @default false
*/
removeFormAriaAttributes?: boolean;
}
export default class Search extends SvelteComponentTyped<
SearchProps,
{
type: CustomEvent<string>;
clear: CustomEvent<any>;
submit: WindowEventMap["submit"];
input: WindowEventMap["input"];
change: WindowEventMap["change"];
focus: WindowEventMap["focus"];
blur: WindowEventMap["blur"];
keydown: WindowEventMap["keydown"];
},
{ label: {} }
> {}