Skip to content
agentskit.js

InputBar

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

Controlled input tied to a framework binding's chat state/actions. Submit on Enter, Shift+Enter for newline. Disabled whenever the chat is streaming. The props below describe the React-style DOM bindings; host bindings may use framework-specific props or event conventions. Emits data-ak-input-bar where the host supports DOM attributes.

#React props

PropTypeDefault
chatChatReturnβ€”
placeholderstring'Type a message...'
disabledbooleanfalse

React currently submits on Enter and uses Shift+Enter for a newline. There is no submitOn prop in the published component.

#Per-framework

FrameworkImport
Reactimport { InputBar } from '@agentskit/react'
Vueimport { InputBar } from '@agentskit/vue'
Svelteimport { InputBar } from '@agentskit/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

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.