SPB Git

spb/vquant Public MIT

VibeQuant — AI-powered institutional-grade financial intelligence platform.

TypeScript 84.3% Python 11.7% JavaScript 1.6% CSS 1.5% HTML 0.7%
2.0 KB · 57 lines tsx
Raw Blame History
1/*2 * =============================================================================3 *  VibeQuant (vquant) — AI-Powered Financial Intelligence Platform4 * -----------------------------------------------------------------------------5 *  File:      client/src/components/ui/badge.tsx6 *7 *  Author:    Simon-Pierre Boucher8 *  Contact:   contact@spboucher.ai9 *  Website:   https://www.spboucher.ai10 *  Demo:      https://www.vquant.ai11 *  License:   MIT (see LICENSE)12 *13 *  Copyright © 2026 Simon-Pierre Boucher. All rights reserved.14 * =============================================================================15 */1617import * as React from "react"18import { cva, type VariantProps } from "class-variance-authority"1920import { cn } from "@/lib/utils"2122const badgeVariants = cva(23  // Whitespace-nowrap: Badges should never wrap.24  "whitespace-nowrap inline-flex items-center rounded-full border px-3 py-1 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2" +25  " hover-elevate active-elevate-2" ,26  {27    variants: {28      variant: {29        default:30          "border-transparent bg-primary text-primary-foreground shadow-xs",31        secondary: "border-transparent bg-secondary text-secondary-foreground",32        destructive:33          "border-transparent bg-destructive text-destructive-foreground shadow-xs",34        success: "border-transparent bg-success/10 text-success",35        warning: "border-transparent bg-warning/10 text-warning",36        info: "border-transparent bg-info/10 text-info",37        outline: " border [border-color:var(--badge-outline)] shadow-xs",38      },39    },40    defaultVariants: {41      variant: "default",42    },43  },44)4546export interface BadgeProps47  extends React.HTMLAttributes<HTMLDivElement>,48    VariantProps<typeof badgeVariants> {}4950function Badge({ className, variant, ...props }: BadgeProps) {51  return (52    <div className={cn(badgeVariants({ variant }), className)} {...props} />53  );54}5556export { Badge, badgeVariants }57