diff --git a/apps/www/registry/default/example/cards/chat.tsx b/apps/www/registry/default/example/cards/chat.tsx
index dd2e11e78a1..c45dcd6bd17 100644
--- a/apps/www/registry/default/example/cards/chat.tsx
+++ b/apps/www/registry/default/example/cards/chat.tsx
@@ -90,6 +90,8 @@ export function CardsChat() {
content: "I can't log in.",
},
])
+ const [input, setInput] = React.useState("")
+ const inputLength = input.trim().length
return (
<>
@@ -115,6 +117,7 @@ export function CardsChat() {
onClick={() => setOpen(true)}
>