WingoUI
Buttons & Actions
ButtonButton GroupCopy ButtonDelete ButtonTheme ToggleToggleToggle Group
Inputs
Avatar UploadCalendarCheckboxColor PickerComboboxCron PickerCurrency InputDate PickerDate Range PickerDate Time PickerDuration PickerFile UploadFilter BuilderInputInput GroupListboxMasked InputMention InputMonth PickerMulti SelectNumber InputOTP InputPassword InputPhone InputRadio GroupRatingSearch InputSegmented ControlSelectSignature PadSliderSwitchTag InputTextareaTime Picker
Forms
Address InputCSV ImportFieldForm WizardInline EditInvoice line itemsRich Text Editor
Navigation
Back To TopBounce SidebarBreadcrumbCommand MenuGlobal SearchGooey NavHook SidebarNav MenuNav TabsPaginationProximity SidebarScroll ProgressSidebarStepsTable Of ContentsTabsTopbarUser MenuWorkspace Switcher
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuFamily DrawerHover CardPopoverSheetShortcuts DialogTooltipTour
Feedback
AlertBannerCookie ConsentEmoji ReactionEmpty StateNotification BellNotification CenterProgressRoute ProgressSkeletonSpinnerToast
Data Display
Approval FlowAvatarBadgeCalendar ViewCode BlockComment ThreadContact cardCountdownDescription ListDiff ViewerFile ListFile managerFolderGanttJSON ViewerKbdLog ViewerMarkdownPresenceSchedulerTagTimelineTree View
Tables & Lists
Audit LogData TableDeal PipelineEditable GridKanbanListMembers tablePermissions MatrixTableTask ListVirtual List
Charts & Stats
Animated CounterArea chartBar chartDonut chartFunnel chartGaugeGitHub ActivityHeatmap calendarLeaderboardLine chartRadial barSparklineStat CardTrackerTrend badge
Layout
AccordionApp ShellCardCollapsibleDetail LayoutEntity HeaderPage HeaderScroll AreaSeparatorSettings LayoutSplit ViewToolbar
Media
Audio PlayerCarouselImage CropperImage LightboxLocation MapQR CodeStep PlayerVideo Player
AI Kit
Agent Status CardChat MessageChat ThreadConversation ListFluid OrbGrid RevealMatrix OrbModel PickerPrompt InputReasoning IndicatorRule BuilderSuggestion ChipsTool Call TimelineUsage MeterVoice InputWorkflow Canvas
Text & Effects
Gravity Letters
Mobile
Action SheetBottom Tab BarFABHaptic ButtonHero HeaderInstall PromptLarge Title HeaderNotification BannerOnboarding CarouselPicker WheelPull To RefreshSlide To ConfirmSticky CTA BarSwipe DeckSwipeable Tabs
Commerce
Cart drawerCategory pickerCheckout stepsCoupon inputFavorite buttonFilter panelListing cardListing gridOrder trackerPricePrice rangePricing tableProduct galleryQuantity stepperReviewsSeller card
Blocks
Admin Dashboard PageAdmin ShellAI Chat PageAutomation Builder PageCheckout PageCRM Contact PageCRM Pipeline PageError PagesInbox PageInvoice PageKPI DashboardListing Detail PageLogin PageMarketplace Home PageMarketplace Search PageMarketplace ShellMobile App HomeOnboarding FlowPost Listing WizardPricing PageRegister PageSettings PageUsers Admin Page
Hooks & Utilities
AI ChatChart kitCommerceDate utilsFile exportFile typesFiltersForm validationHapticsInvoicingMotion presetsNavigationNumber formatRelative timeRomanian locationsSpreadsheetText matchTonesUIProvideruseClipboarduseConsentuseControllableStateuseCooldownuseDebounceuseKeyboardInsetuseLocaleuseLongPressuseMediaControlsuseMediaQueryuseOverflowItemsusePersistedStateuseScrollEdgesuseScrollStateuseSelectionuseShortcutuseStickToBottom
GalleryThemeCredits

Data Display

Comment Thread

Data DisplayComment Thread
Code BlockContact card
Live props
Content
placeholder
Appearance
variant
size
tone
color
timeFormat
Layout
showHeader
composer
stickyComposer
State
sort
collapseRepliesAfter2
loading
skeletonCount3
Behavior
confirmDelete
sendOnEnter
locale
Code
import { CommentThread } from "@/components/ui/comment-thread"

<CommentThread />
Pro

v1.0.0·Added in 1.0.0

Discussions on a record: comments with replies, reactions, edit and delete, @mentions and a composer that sends optimistically with retry.

Write in the composer at the bottom and send with the arrow or Cmd/Ctrl+Enter (Enter adds a line; with sendOnEnter, Enter sends and Shift+Enter adds a line). The comment appears at once at 60% opacity with "Sending…", then fades to its time; if the request fails it shakes once and offers Retry and Discard. Type @ and a few letters for the people list: Up and Down move, Enter or Tab insert "@Anna Price ", Escape closes it. Press Up in the empty composer to edit your last comment. Reply opens an inline composer under the thread (Escape cancels, replying to a reply prefills the @name); Edit turns the text into a box with Save and Cancel (Cmd/Ctrl+Enter saves, Escape cancels, an empty text cannot be saved). Tap a reaction pill to toggle yours; the smiley opens the emoji row. The ⋯ menu has Edit, Copy text, Copy link and Delete, which asks first. "Show N more replies" unfolds older replies, the sort button flips oldest and newest first. On a phone every action is visible with a 44px target, the menu and the emoji row open as bottom sheets, and a long press on a comment opens its actions sheet.

Add to a project

npx wingo-ui@latest add comment-thread

Pro item: the CLI needs a Pro account. See plans

Dependencies

motionlucide-reactalert-dialogavatarbadgebuttondropdown-menuempty-statekbdlistboxpopoverskeletontextareause-clipboarduse-controllable-stateuse-localeuse-long-pressmotionrelative-timetext-matchtonesui-config

Files

  • components/ui/comment-thread.tsx

See also

TimelineTextareaAvatarEmoji ReactionRelative timelib
PreviousCode BlockNext Contact card
Quote #Q-2026-118Northwind Tech Inc.
Negotiating

Comments6

  1. Michael HayesAuthor09/24/2026, 2:05 PM
    Sent the revised quote with 5% off the annual plan. @Anna Price can you take a look?
    1. Ryan Martin09/24/2026, 2:35 PM
      Emma Carter confirmed on the phone, she signs tomorrow morning.
    2. Liam BrooksDirector09/24/2026, 2:42 PM
      Approved on my side. Net 30 payment terms, same as the last contract.
  2. Ryan Martin09/24/2026, 3:10 PM

    Comment deleted

    1. Michael HayesAuthor09/24/2026, 3:18 PM
      @Ryan Martin I fixed the amount in the CRM, it is $12,480.00.
  3. Jessica Dunn09/24/2026, 3:48 PM
    The proforma invoice is ready: PF-2026-044 It is also in the client folder: https://crm.summitcrm.com/clients/c01/documents
    PF-2026-044.pdfPDF · 184 KB
CtrlEnterControl Enterto send

Send a few comments: every third request fails, so you can see Retry. Type @ to mention, press Up in the empty box to edit your last comment.⌘/Ctrl+Enter sends · Delete asks first