Chat Send Button
@astryxdesign/core v0.7.1 · ChatSendButton
Props
| Prop | Type | Default | Description |
|---|---|---|---|
isStopShown | boolean | Composer's value | Shows stop instead of send. Leave it unset inside a composer and the shell decides. |
isDisabled | boolean | Inverse of whether the draft can be sent | Disables 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
| Event | Payload | Description |
|---|---|---|
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. |
click | MouseEvent | Follows the send or stop action. |
Slots
| Slot | Description |
|---|---|
sendIcon | Replaces the up arrow. |
stopIcon | Replaces the stop square. |