- Fix Next.js build failure: remove duplicate route at (dashboard)/listings/[id] that conflicted with (public)/listings/[id] (same URL path in two route groups) - Fix 772 ESLint errors: auto-fix import ordering (import-x/order), remove unused imports/variables, convert empty interfaces to type aliases, replace require() with ESM imports, fix consistent-type-imports violations - Add CLAUDE.md for developer onboarding documentation - All checks pass: 0 lint errors, typecheck clean, 230 tests passing, build success Co-Authored-By: Paperclip <noreply@paperclip.ing>
21 lines
635 B
TypeScript
21 lines
635 B
TypeScript
'use client';
|
|
|
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
import * as React from 'react';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
const labelVariants = cva(
|
|
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
|
|
);
|
|
|
|
export interface LabelProps
|
|
extends React.LabelHTMLAttributes<HTMLLabelElement>,
|
|
VariantProps<typeof labelVariants> {}
|
|
|
|
const Label = React.forwardRef<HTMLLabelElement, LabelProps>(({ className, ...props }, ref) => {
|
|
return <label ref={ref} className={cn(labelVariants(), className)} {...props} />;
|
|
});
|
|
Label.displayName = 'Label';
|
|
|
|
export { Label };
|