Version 3 of the kit: - Radix UI replaced with Base UI (using the Shadcn UI patterns) - next-intl replaces react-i18next - enhanceAction deprecated; usage moved to next-safe-action - main layout now wrapped with [locale] path segment - Teams only mode - Layout updates - Zod v4 - Next.js 16.2 - Typescript 6 - All other dependencies updated - Removed deprecated Edge CSRF - Dynamic Github Action runner
21 lines
523 B
TypeScript
21 lines
523 B
TypeScript
'use client';
|
|
|
|
import * as React from 'react';
|
|
|
|
import { cn } from '#lib/utils';
|
|
|
|
function Label({ className, ...props }: React.ComponentProps<'label'>) {
|
|
return (
|
|
<label
|
|
data-slot="label"
|
|
className={cn(
|
|
'flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { Label };
|