@szum-tech/design-system
Version:
Szum-Tech design system with tailwindcss support
22 lines (17 loc) • 868 B
text/typescript
import * as React from 'react';
import { VariantProps } from 'class-variance-authority';
import * as class_variance_authority_types from 'class-variance-authority/types';
declare const colorSwatchVariants: (props?: {
size?: "default" | "sm" | "lg";
} & class_variance_authority_types.ClassProp) => string;
type ColorSwatchVariantsProps = VariantProps<typeof colorSwatchVariants>;
type ColorSwatchSize = NonNullable<ColorSwatchVariantsProps["size"]>;
type ColorSwatchProps = React.ComponentProps<"div"> & {
size?: ColorSwatchSize;
color?: string;
asChild?: boolean;
disabled?: boolean;
withoutTransparency?: boolean;
};
declare function ColorSwatch({ color, size, asChild, disabled, withoutTransparency, className, style, ...props }: ColorSwatchProps): React.JSX.Element;
export { ColorSwatch, type ColorSwatchProps, type ColorSwatchSize };