import { cn } from '#/lib/utils.js'; /** * The classes every text field shares, so an input and a textarea take the * same border, the same surface and the same focus ring as a button. */ export const fieldClassName = 'w-full rounded-lg border border-input bg-background px-3 text-[13.5px] text-foreground shadow-xs outline-none transition-[border-color,box-shadow] placeholder:text-faint focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/30'; /** A single-line text field. */ export function Input({ className, type = 'text', ...props }) { return ( ); }