前端整合开源组件

This commit is contained in:
yoyuzh
2026-04-12 12:42:52 +08:00
parent 820e055d22
commit ee08d9bf85
17 changed files with 2186 additions and 494 deletions

View File

@@ -0,0 +1,21 @@
import { forwardRef, type InputHTMLAttributes } from 'react';
import { cn } from '@/src/lib/utils';
export type AdminInputProps = InputHTMLAttributes<HTMLInputElement>;
export const AdminInput = forwardRef<HTMLInputElement, AdminInputProps>(function AdminInput(
{ className, type = 'text', ...props },
ref,
) {
return (
<input
ref={ref}
type={type}
className={cn(
'w-full rounded-lg border border-white/10 bg-white/10 px-4 py-3 text-[11px] font-black tracking-widest outline-none transition-colors placeholder:opacity-40 focus:border-blue-500/50 focus:ring-4 focus:ring-blue-500/10 disabled:cursor-not-allowed disabled:opacity-60',
className,
)}
{...props}
/>
);
});