agentskit.js

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>

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page