Search Docs
Loading...
Skip to content

Interface: PromptInputAttachmentsOptions

Represents options for the attachments of a prompt input.

The PromptInputAttachmentsOptions interface provides a set of properties that control the appearance and behavior of the attachment row below a prompt. These options include settings for the items, the list label, the add button and the maximum number of attachments.

Properties#

Property Type Description
items PromptInputAttachmentOptions[] -
label string string[]
addLabel string string[]
addIcon? CustomIcon The icon of the add button. Defaults to a generic image icon.
onAdd () => void -
maxCount? number The add button turns disabled once this many attachments are added. Leave it out for no limit.