CommandInput
CommandInput renders the command input UI when a command is active.
Best Practices
- Keep command UI minimal so it doesn’t block normal typing.
- Respect cooldown state to prevent invalid command sends.
- Pass stable
additionalTextInputPropsto avoid re-renders. - Use commands for known flows (Giphy, slash commands) instead of overloading input.
- Provide clear affordances to exit command mode.
Props
additionalTextInputProps
Extra props passed to the underlying TextInput in MessageInput.
| Type |
|---|
| object |
cooldownEndsAt
The time at which the active cool-down will end.
| Type |
|---|
| Date |