m3-svelte
Version:
M3 Svelte implements the Material 3 design system in Svelte. See the [website](https://ktibow.github.io/m3-svelte/) for demos and usage instructions.
35 lines (34 loc) • 1.28 kB
TypeScript
import type { IconifyIcon } from "@iconify/types";
import type { HTMLAttributes, HTMLInputAttributes } from "svelte/elements";
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
$$bindings?: Bindings;
} & Exports;
(internal: unknown, props: Props & {
$$events?: Events;
$$slots?: Slots;
}): Exports & {
$set?: any;
$on?: any;
};
z_$$bindings?: Bindings;
}
declare const TextField: $$__sveltets_2_IsomorphicComponent<{
display?: string;
extraWrapperOptions?: HTMLAttributes<HTMLDivElement>;
extraOptions?: HTMLInputAttributes;
name: string;
leadingIcon?: IconifyIcon | undefined;
trailingIcon?: IconifyIcon | undefined;
disabled?: boolean;
required?: boolean;
error?: boolean;
value?: string;
}, {
enter: CustomEvent<any>;
trailingClick: CustomEvent<any>;
} & {
[evt: string]: CustomEvent<any>;
}, {}, {}, string>;
type TextField = InstanceType<typeof TextField>;
export default TextField;