agentskit.js
UI + hooks

InputBar

Text input + submit. Disabled while streaming. Keyboard shortcuts built in.

Controlled input tied to a ChatReturn. Submit on Enter, Shift+Enter for newline. Disabled whenever chat.status === 'streaming'. Emits data-ak-input-bar.

Props

PropTypeDefault
chatChatReturn
placeholderstring'Type a message...'
disabledbooleanfalse
submitOn'enter' | 'mod+enter''enter'

Per-framework

FrameworkImport
Reactimport { InputBar } from '@agentskit/react'
Vueimport { InputBar } from '@agentskit/vue'
Svelteimport InputBar from '@agentskit/svelte/InputBar.svelte'
Solidimport { InputBar } from '@agentskit/solid'
React Nativeimport { InputBar } from '@agentskit/react-native'TextInput-backed
Angular<ak-input-bar [chat]="chat">
Inkimport { InputBar } from '@agentskit/ink' — Ink <TextInput>
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page