@zoop-svelte/svelte-components
Version:
Zoop UI component library built with Svelte 5, TypeScript, and Tailwind CSS
56 lines (55 loc) • 1.52 kB
TypeScript
import { type VariantProps } from 'tailwind-variants';
import type { Button as ButtonPrimitive } from 'bits-ui';
import Root from './button.svelte';
declare const buttonVariants: import("tailwind-variants").TVReturnType<{
variant: {
primary: string[];
destructive: string[];
secondary: string[];
ghost: string[];
link: string[];
icon: string[];
};
size: {
lg: string;
md: string;
sm: string;
};
}, undefined, string[], {
variant: {
primary: string[];
destructive: string[];
secondary: string[];
ghost: string[];
link: string[];
icon: string[];
};
size: {
lg: string;
md: string;
sm: string;
};
}, undefined, import("tailwind-variants").TVReturnType<{
variant: {
primary: string[];
destructive: string[];
secondary: string[];
ghost: string[];
link: string[];
icon: string[];
};
size: {
lg: string;
md: string;
sm: string;
};
}, undefined, string[], unknown, unknown, undefined>>;
type Variant = VariantProps<typeof buttonVariants>['variant'];
type Size = VariantProps<typeof buttonVariants>['size'];
type Props = ButtonPrimitive.Props & {
variant?: Variant;
size?: Size;
loading?: boolean;
};
type Events = ButtonPrimitive.Events;
export { Root, type Props, type Events, type Props as ButtonProps, type Events as ButtonEvents, buttonVariants };