hermes-agent/apps/desktop/src/components/ui/textarea.tsx
2026-06-25 16:40:27 -05:00

23 lines
679 B
TypeScript

import * as React from 'react'
import { cn } from '@/lib/utils'
import { type ControlVariantProps, controlVariants } from './control'
function Textarea({ className, size, ...props }: React.ComponentProps<'textarea'> & ControlVariantProps) {
return (
<textarea
// Off by default for every consumer — these are code/config/prompt fields,
// not prose. Callers can re-enable per-instance by passing the prop.
autoCapitalize="off"
autoComplete="off"
autoCorrect="off"
className={cn(controlVariants({ size }), 'min-h-16', className)}
data-slot="textarea"
spellCheck={false}
{...props}
/>
)
}
export { Textarea }