UNPKG

@vela-ui/react

Version:

Vela UI React components

48 lines (45 loc) 1.47 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as tailwind_variants from 'tailwind-variants'; import { VariantProps } from 'tailwind-variants'; declare const badgeVariants: tailwind_variants.TVReturnType<{ variant: { neutral: string; primary: string; secondary: string; accent: string; destructive: string; outline: string; }; }, undefined, "inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] [&>svg]:pointer-events-none [&>svg]:size-3", { isFocusVisible: { true: string; }; isInvalid: { true: string; }; }, undefined, tailwind_variants.TVReturnType<{ isFocusVisible: { true: string; }; isInvalid: { true: string; }; }, undefined, "outline-hidden", { isFocusVisible: { true: string; }; isInvalid: { true: string; }; }, undefined, tailwind_variants.TVReturnType<{ isFocusVisible: { true: string; }; isInvalid: { true: string; }; }, undefined, "outline-hidden", unknown, unknown, undefined>>>; interface BadgeProps extends React.ComponentProps<"span">, VariantProps<typeof badgeVariants> { } declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element; export { Badge, type BadgeProps, badgeVariants };