[功能] 添加新的输入、文本区域、标签和开关组件,优化样式和功能

This commit is contained in:
ryan
2026-03-20 23:15:35 +08:00
parent 2c87254bb3
commit a6787ac30d
12 changed files with 5948 additions and 156 deletions
@@ -0,0 +1,21 @@
import * as React from 'react';
import { cn } from '@/lib/utils/cn';
const Label = React.forwardRef<
HTMLLabelElement,
React.ComponentProps<'label'>
>(({ className, ...props }, ref) => (
<label
ref={ref}
className={cn(
'text-sm font-medium leading-none text-[var(--foreground-primary)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
className,
)}
{...props}
/>
));
Label.displayName = 'Label';
export { Label };