import type { InputHTMLAttributes, LabelHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from "react"; import { cn } from "@/lib/utils"; export function Label({ className, ...props }: LabelHTMLAttributes) { return ; } const baseField = "w-full rounded-[12px] border border-ink-300 bg-surface px-3 text-sm text-ink-900 placeholder:text-ink-500 transition-colors focus:border-brand-500 focus:outline-none focus:ring-[3px] focus:ring-brand-500/25 disabled:bg-ink-100"; export function Input({ className, ...props }: InputHTMLAttributes) { return ; } export function Textarea({ className, ...props }: TextareaHTMLAttributes) { return ; } export function Select({ className, children, ...props }: SelectHTMLAttributes) { return ( {children} ); } export function Field({ label, required, hint, error, children, className, }: { label?: string; required?: boolean; hint?: string; error?: string; children: React.ReactNode; className?: string; }) { return ( {label ? ( {label} {required ? * : null} ) : null} {children} {error ? ( {error} ) : hint ? ( {hint} ) : null} ); }
{error}
{hint}