Skip to content
1 change: 1 addition & 0 deletions src/components/ui/Input.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const { type, error, class: className, ...props } = Astro.props

<input
{type}
aria-invalid={error ? "true" : undefined}
class={cn(
'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
error && 'border-destructive focus-visible:ring-destructive',
Expand Down
Loading