UNPKG

@jill64/svelte-input

Version:

➡️ Functional Input Component Set for Svelte

22 lines (21 loc) 736 B
import type { Snippet } from 'svelte'; import type { HTMLInputAttributes } from 'svelte/elements'; type $$ComponentProps = { height?: string; padGap?: string; padColor?: string; offColor?: string; onColor?: string; style?: string; value?: boolean; Class?: HTMLInputAttributes['class']; disabled?: HTMLInputAttributes['disabled']; required?: HTMLInputAttributes['required']; readonly?: HTMLInputAttributes['readonly']; attributes?: HTMLInputAttributes; onChange?: (s: boolean) => unknown; children?: Snippet; }; declare const ToggleSwitch: import("svelte").Component<$$ComponentProps, {}, "value">; type ToggleSwitch = ReturnType<typeof ToggleSwitch>; export default ToggleSwitch;