Files
librechat.ai/components/ui/label.tsx
Danny Avila eec560869e 🪙 feat: automatically add start balance (#168)
* Adding information about the starting balance

* Adding information about the starting balance

* chore: type fixes

* fix: MDX build errors

* chore: explicit typing

* chore: improve typing for author metadata socials

* chore: strict assertion

---------

Co-authored-by: MSITE.TOP <admin@msite.top>
2024-11-16 10:20:25 -05:00

23 lines
722 B
TypeScript

// @ts-nocheck
'use client'
import * as React from 'react'
import * as LabelPrimitive from '@radix-ui/react-label'
import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from '@/lib/utils'
const labelVariants = cva(
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
)
const Label = React.forwardRef<
React.ElementRef<typeof LabelPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>
>(({ className, ...props }, ref) => (
<LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />
))
Label.displayName = LabelPrimitive.Root.displayName
export { Label }