mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
44 lines
1 KiB
TypeScript
44 lines
1 KiB
TypeScript
/// <reference types="svelte" />
|
|
|
|
export interface ToolbarSearchProps {
|
|
/**
|
|
* Specify the value of the search input
|
|
* @default ""
|
|
*/
|
|
value?: number | string;
|
|
|
|
/**
|
|
* Set to `true` to expand the search bar
|
|
* @default false
|
|
*/
|
|
expanded?: boolean;
|
|
|
|
/**
|
|
* Set to `true` to keep the search bar expanded
|
|
* @default false
|
|
*/
|
|
persistent?: boolean;
|
|
|
|
/**
|
|
* Specify the tabindex
|
|
* @default "0"
|
|
*/
|
|
tabindex?: string;
|
|
|
|
/**
|
|
* Obtain a reference to the input HTML element
|
|
* @default null
|
|
*/
|
|
ref?: null | HTMLInputElement;
|
|
}
|
|
|
|
export default class ToolbarSearch {
|
|
$$prop_def: ToolbarSearchProps;
|
|
$$slot_def: {};
|
|
|
|
$on(eventname: "change", cb: (event: WindowEventMap["change"]) => void): () => void;
|
|
$on(eventname: "input", cb: (event: WindowEventMap["input"]) => void): () => void;
|
|
$on(eventname: "focus", cb: (event: WindowEventMap["focus"]) => void): () => void;
|
|
$on(eventname: "blur", cb: (event: WindowEventMap["blur"]) => void): () => void;
|
|
$on(eventname: string, cb: (event: Event) => void): () => void;
|
|
}
|