UNPKG

@kamrade/svelte-dynamic-button

Version:

A simple button template that supports a flexible set of themes, variants, sizes and shapes. You can find usage examples (MagicButton and SimpleButton components) in the repository.

38 lines (37 loc) 1.5 kB
import { SvelteComponent } from "svelte"; import type { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler } from "svelte/elements"; import type { TextInputType, TextInputVariant, TextInputSize } from "./TextInput.js"; declare const __propDef: { props: { variant?: TextInputVariant | undefined; size?: TextInputSize | undefined; value?: string | undefined; onKeydown?: KeyboardEventHandler<HTMLInputElement> | undefined; onKeyup?: KeyboardEventHandler<HTMLInputElement> | undefined; onFocus?: (() => void) | undefined; onBlur?: FocusEventHandler<HTMLInputElement> | undefined; onChange?: ChangeEventHandler<HTMLInputElement> | undefined; placeholder?: string | undefined; type?: TextInputType | undefined; disabled?: boolean | undefined; readonly?: boolean | undefined; label?: string | undefined; name?: string | null | undefined; id?: string | null | undefined; inputEl?: HTMLInputElement | null | undefined; isActive?: boolean | undefined; }; events: { [evt: string]: CustomEvent<any>; }; slots: { prefix: {}; suffix: {}; }; }; export type TextInputProps = typeof __propDef.props; export type TextInputEvents = typeof __propDef.events; export type TextInputSlots = typeof __propDef.slots; export default class TextInput extends SvelteComponent<TextInputProps, TextInputEvents, TextInputSlots> { } export {};