UNPKG

@szum-tech/design-system

Version:

Szum-Tech design system with tailwindcss support

28 lines (21 loc) 1.2 kB
import * as React from 'react'; import React__default from 'react'; import { VariantProps } from 'class-variance-authority'; import * as class_variance_authority_types from 'class-variance-authority/types'; declare const badgeVariants: (props?: { variant?: "outline" | "secondary" | "error" | "primary" | "success" | "warning"; } & class_variance_authority_types.ClassProp) => string; type BadgeVariantsProps = VariantProps<typeof badgeVariants>; type BadgeVariant = NonNullable<BadgeVariantsProps["variant"]>; type BadgeProps = React.ComponentProps<"span"> & { variant?: BadgeVariant; asChild?: boolean; }; declare function Badge({ className, variant, asChild, ...props }: BadgeProps): React.JSX.Element; type BadgeButtonProps = React__default.ComponentProps<"button"> & { asChild?: boolean; }; declare function BadgeButton({ className, asChild, ...props }: BadgeButtonProps): React__default.JSX.Element; type BadgeDotProps = React.ComponentProps<"span">; declare function BadgeDot({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element; export { Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, type BadgeVariant };