@zoop-svelte/svelte-components
Version:
Zoop UI component library built with Svelte 5, TypeScript, and Tailwind CSS
36 lines (35 loc) • 1.22 kB
TypeScript
import { Button as ButtonPrimitive } from "bits-ui";
import { type Props } from "./index.js";
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;
}
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
default: any;
} ? Props extends Record<string, never> ? any : {
children?: any;
} : {});
declare const Button: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
class?: string | undefined;
} & Props, {
default: {
loading: boolean;
};
}>, ButtonPrimitive.Events, {
default: {
loading: boolean;
};
}, {
class: string | undefined;
}, string>;
type Button = InstanceType<typeof Button>;
export default Button;