Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

552 B
Raw Blame
import { forwardRef } from 'react';

import { cn } from '../../lib/cn';
import Input, { type InputProps } from './Input';

export interface TextFieldProps extends InputProps {
  mono?: boolean;
}

/** `Input` with an optional monospace treatment — for tokens, ids and paths. */
const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
  ({ mono, className, ...rest }, ref) => (
    <Input ref={ref} className={cn(mono && 'font-mono', className) || undefined} {...rest} />
  )
);
TextField.displayName = 'TextField';

export default TextField;