# CommandInput

[`CommandInput`](https://github.com/GetStream/stream-chat-react-native/v8/blob/develop/package/src/components/MessageInput/components/CommandInput.tsx) 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 `additionalTextInputProps` to 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](https://reactnative.dev/docs/textinput#props) in [`MessageInput`](/chat/docs/sdk/react-native/v8/ui-components/message-input/).

| Type   |
| ------ |
| object |


### `cooldownEndsAt`

The time at which the active cool-down will end.

| Type |
| ---- |
| Date |


---

This page was last updated at 2026-04-17T17:33:44.738Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/v8/ui-components/command-input/](https://getstream.io/chat/docs/sdk/react-native/v8/ui-components/command-input/).