Input
Single-line field on the glass surface.
npx shadcn@latest add https://ui.thjsecurity.tech/r/input.jsonPulls the component into components/ui/input.tsx and its token dependencies. The app owns the copy from then on.
import * as React from "react"
import { cn } from "@/lib/utils"
export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}
/** The console's `.field`: glass, rounded, crimson border on focus. */
const Input = React.forwardRef<HTMLInputElement, InputProps>(
({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
"flex h-10 w-full rounded-xl border border-glass-border bg-glass-strong px-3 py-2 text-[13px] text-paper transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-paper-faint focus-visible:border-signal focus-visible:bg-glass-hover focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
className
)}
ref={ref}
{...props}
/>
)
}
)
Input.displayName = "Input"
export { Input }