svelte-ux
Version:
A large collection of Svelte components, actions, stores and utils to simplify creating highly interactive and visual applications. Built using Tailwind with extensibility and customization in mind.
39 lines (38 loc) • 1.11 kB
TypeScript
import { SvelteComponentTyped } from "svelte";
import { type ThemeColors } from '@layerstack/tailwind';
declare const __propDef: {
props: {
[x: string]: any;
id?: string | undefined;
name?: string | undefined;
value?: any;
checked?: boolean | null | undefined;
required?: boolean | undefined;
disabled?: boolean | undefined;
size?: "sm" | "md" | "lg" | undefined;
color?: ThemeColors | undefined;
classes?: {
root?: string;
input?: string;
switch?: string;
toggle?: string;
} | undefined;
};
events: {
change: Event;
} & {
[evt: string]: CustomEvent<any>;
};
slots: {
default: {
checked: boolean | null;
value: any;
};
};
};
export type SwitchProps = typeof __propDef.props;
export type SwitchEvents = typeof __propDef.events;
export type SwitchSlots = typeof __propDef.slots;
export default class Switch extends SvelteComponentTyped<SwitchProps, SwitchEvents, SwitchSlots> {
}
export {};