CommandsButton
Renders the commands picker button inside MessageInput. This is the default component for the CommandsButton prop.
Best Practices
- Keep the button accessible and easy to discover.
- Avoid heavy logic in
handleOnPress; delegate to composer when possible. - Show the button only when commands are enabled.
- Keep icons consistent with other input actions.
- Use the
Channelprop to override instead of editing internals.
Props
handleOnPress
Press handler.
| Type |
|---|
| function |