Search Documentation

Search for components, guides, and more.

Thought

An input field that allows users to enter and submit text to an AI model.

Shiny Text

Examples

Source Basics

Installation

pnpm dlx shadcn@latest add https://chatcn.me/c/thought

Thought with Streaming

Thought when streaming



Props

Thought

PropTypeDefaultDescription
childrenReact.ReactNode-Thought trigger and content
classNamestring-Additional CSS classes

ThoughtTrigger

PropTypeDefaultDescription
childrenReact.ReactNode-Trigger content (e.g., thinking text)
classNamestring-Additional CSS classes

ThoughtContent

PropTypeDefaultDescription
childrenReact.ReactNode-Thought details content
classNamestring-Additional CSS classes