mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-06 10:02:57 +08:00
29 lines
891 B
TypeScript
29 lines
891 B
TypeScript
import * as React from 'react'
|
|
|
|
import { cn } from '@/lib/utils'
|
|
|
|
import { type ControlVariantProps, controlVariants } from './control'
|
|
|
|
function Input({ className, type, size, ...props }: Omit<React.ComponentProps<'input'>, 'size'> & ControlVariantProps) {
|
|
return (
|
|
<input
|
|
// Off by default for every consumer — these are code/config/search fields,
|
|
// not prose. Callers can re-enable per-instance by passing the prop.
|
|
autoCapitalize="off"
|
|
autoComplete="off"
|
|
autoCorrect="off"
|
|
className={cn(
|
|
controlVariants({ size }),
|
|
'selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-xs file:font-medium file:text-foreground',
|
|
className
|
|
)}
|
|
data-slot="input"
|
|
spellCheck={false}
|
|
type={type}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { Input }
|