mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-18 14:52:04 +00:00
23 lines
679 B
TypeScript
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 }
|