# Show maxLength and number of typed characters in the KendoReact Chat

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>7.3.0</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact Chat</td>
		</tr>
	</tbody>
</table>

## Description

How to show the number of characters as the user types and set a maxLength for the Chat component?

## Solution

To set a `maxLength` render a custom [`TextBox`](https://www.telerik.com/kendo-react-ui/components/inputs/textbox) component and set the value for the [`maxLength`](https://www.telerik.com/kendo-react-ui/components/inputs/api/input) prop to the preferred value. To see the character count as the user types, display the [`value`](https://www.telerik.com/kendo-react-ui/components/inputs/api/inputprops#value) variable in the custom component markup. For more information on how to customize the Chat component refer to the [`customization`](https://www.telerik.com/kendo-react-ui/components/conversationalui/chat/customization/message-templates)

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/conversational-ui/chat-maxlength-char-count/source.txt)
