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 · 59 lines tsx
Raw Blame History
1/*2 * =============================================================================3 *  VibeQuant (vquant) — AI-Powered Financial Intelligence Platform4 * -----------------------------------------------------------------------------5 *  File:      client/src/components/ui/radio-group.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 * as RadioGroupPrimitive from "@radix-ui/react-radio-group"19import { Circle } from "lucide-react"2021import { cn } from "@/lib/utils"2223const RadioGroup = React.forwardRef<24  React.ElementRef<typeof RadioGroupPrimitive.Root>,25  React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>26>(({ className, ...props }, ref) => {27  return (28    <RadioGroupPrimitive.Root29      className={cn("grid gap-2", className)}30      {...props}31      ref={ref}32    />33  )34})35RadioGroup.displayName = RadioGroupPrimitive.Root.displayName3637const RadioGroupItem = React.forwardRef<38  React.ElementRef<typeof RadioGroupPrimitive.Item>,39  React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>40>(({ className, ...props }, ref) => {41  return (42    <RadioGroupPrimitive.Item43      ref={ref}44      className={cn(45        "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",46        className47      )}48      {...props}49    >50      <RadioGroupPrimitive.Indicator className="flex items-center justify-center">51        <Circle className="h-2.5 w-2.5 fill-current text-current" />52      </RadioGroupPrimitive.Indicator>53    </RadioGroupPrimitive.Item>54  )55})56RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName5758export { RadioGroup, RadioGroupItem }59