All blocks

Chat UI 01

A full conversational interface block with chat container, bubbles, input, typing indicator, and reactions.

Install with shadcn CLI
Adds the block files into your project. Run from an app that already has shadcn initialized.
bash
npx shadcn@latest add @tt-ui/chat-ui-01
Preview
Live demo of this block in the browser.

Chat UI Kit

A comprehensive, accessible, and customizable chat component library

AI

AI Assistant

Always here to help

AA

Hello! How can I help you today?

11:07 PM
Y

I need help understanding React hooks. Can you explain useState and useEffect?

11:08 PM
AA

Of course! Let me explain both hooks:

useState

useState is used to add state to functional components:

tsx
const [count, setCount] = useState(0);

useEffect

useEffect handles side effects in your components:

tsx
useEffect(() => {
document.title = `Count: ${count}`;
}, [count]);

Would you like more examples?

11:09 PM
Y

That's really helpful, thank you! Can you show me a real-world example combining both?

11:10 PM
Chat UI 01