UNPKG

@szum-tech/design-system

Version:

Szum-Tech design system with tailwindcss support

23 lines (18 loc) 969 B
import * as react_jsx_runtime from 'react/jsx-runtime'; 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" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => 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_runtime.JSX.Element; export { ColorSwatch, type ColorSwatchProps, type ColorSwatchSize };