terminal-kit/components/input.tsx
$
cat components/input.tsx
# input
Bottom prompt input with blinking cursor and status metadata.
──
examples
agent · always-approve
──
component api
Input
PropTypeDefaultDescription
valuestringControlled input value.
defaultValuestring""Initial value when uncontrolled.
onValueChange(value: string) => voidCalled when the input value changes.
onSubmit(value: string) => voidCalled on Enter without Shift.
promptstring"❯"Prompt symbol shown before the field.
statusReactNodeRight-side metadata — e.g. mode label.
placeholderstringPlaceholder text when empty.
disabledbooleanfalseDisable input interaction.
showCursorbooleanfalseKeep the blinking cursor visible even when unfocused.
classNamestringAdditional CSS classes.
──
install
npx shadcn@latest add "https://www.terminal-kit.com/r/input.json"