Search Documentation

Search for components, guides, and more.

Source

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

Examples

Source Basics

Installation

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



Props

Source

PropTypeDefaultDescription
hrefstring-URL for the source link
labelstring | number-Label to display on the trigger
childrenReact.ReactNode-Source trigger and content

SourceTrigger

PropTypeDefaultDescription
showFaviconbooleantrueWhether to show the site favicon
classNamestring-Additional CSS classes
labelstring | number-Override the context label

SourceContent

PropTypeDefaultDescription
titlestring-Title text for the hover card
descriptionstring-Description text for the hover card
classNamestring-Additional CSS classes
childrenReact.ReactNode-Custom hover card content