claritykit-svelte
Version:
A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility
37 lines • 1.25 kB
TypeScript
interface Props {
checked?: boolean;
disabled?: boolean;
readonly?: boolean;
label?: string;
labelPosition?: 'left' | 'right';
size?: 'sm' | 'md' | 'lg';
variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
class?: string;
id?: string;
name?: string;
value?: string;
ariaLabel?: string;
ariaDescribedby?: string;
}
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 Switch: $$__sveltets_2_IsomorphicComponent<Props, {
change: CustomEvent<any>;
toggle: CustomEvent<any>;
} & {
[evt: string]: CustomEvent<any>;
}, {}, {}, "checked">;
type Switch = InstanceType<typeof Switch>;
export default Switch;
//# sourceMappingURL=Switch.svelte.d.ts.map