Files
kai 06a0cb9cf4
release / which version (push) Successful in 2s
release / olares chart · sanity (push) Successful in 4s
release / app (push) Successful in 1m14s
release / tag and release (push) Successful in 3s
26.11.51: Fehlendes am Feld markiert (#52)
2026-11-08 18:20:01 +00:00

20 lines
836 B
TypeScript

import * as React from "react";
import { cn } from "@/lib/utils";
// shadcn/ui Input, 44 px hoch, Schrift 16 px (iOS zoomt sonst beim Tippen).
export const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
({ className, ...props }, ref) => (
<input
ref={ref}
className={cn(
"flex min-h-11 w-full rounded-xl border border-border bg-background px-4 py-2 text-base text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
// Fehlt etwas, sieht man es (26.11.51): rote, breitere Kante — dazu immer ein Satz am Feld.
"aria-[invalid=true]:border-2 aria-[invalid=true]:border-over",
className,
)}
{...props}
/>
),
);
Input.displayName = "Input";