Skip to content

Chat Send Button

@astryxdesign/core v0.7.1 · ChatSendButton

Props ​

PropTypeDefaultDescription
isStopShownbooleanComposer's valueShows stop instead of send. Leave it unset inside a composer and the shell decides.
isDisabledbooleanInverse of whether the draft can be sentDisables send. Does not disable stop. Leave it unset inside a composer to follow the shell's readiness.
size'sm' | 'md''md'Button size, forwarded to Button.

Events ​

EventPayloadDescription
send—Send was activated. Inside a composer without this listener the current draft is submitted for you.
stop—Stop was activated. Inside a composer without this listener the shell's stop action runs.
clickMouseEventFollows the send or stop action.

Slots ​

SlotDescription
sendIconReplaces the up arrow.
stopIconReplaces the stop square.