Skip to content
satin

Prompt bar

Where people write to an agent: attachments, model, voice and send.

Type a message and press Enter.

API Reference

The PromptBar component is a form around a growing textarea. Enter submits, Shift+Enter adds a line.

PropTypeDefault
shape
"rectangle""rounded"
"rectangle"
placeholder
string
"Write a message"
model
ReactNode
"Model"
value
string
—
onSubmit
(message: string) => void
—
onAttach
() => void
—
onModelClick
() => void
—
onVoice
() => void
—