Comments thread preview
Discuss one record with controlled replies, edits, deletion requests and resolved state.
pro · Blocks · composite
When to use
- Use it when a page needs discuss one record with controlled replies, edits, deletion requests and resolved state.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.
Alternatives
- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than comments thread.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/comments-threadImport components/ui/tidal.css, components/ui/comments-thread.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/comments-thread.css";
import{TidalCommentsThread}from"./components/ui/comments-thread";
export default()=><div className="tidal-scope"><TidalCommentsThread comments={[{id:"example",author:"value",content:"value"}]} draft={"value"} onDraftChange={() => {}} resolved={false} title={"Demo"}/></div>;API and props
TidalCommentsThread.comments (required)ReadonlyArray<TidalThreadComment>Required comments value accepted by this exported component.
TidalCommentsThread.draft (required)stringRequired draft value accepted by this exported component.
TidalCommentsThread.onDraftChange (required)(value: string, event: ChangeEvent<HTMLTextAreaElement>) => voidCallback invoked when the draft change interaction is proposed.
TidalCommentsThread.resolved (required)booleanRequired resolved value accepted by this exported component.
TidalCommentsThread.title (required)ReactNodeRequired title value accepted by this exported component.
TidalCommentsThread.cancelButtonPropsNativeButtonProps | undefinedOptional cancel button props value accepted by this exported component.
TidalCommentsThread.cancelButtonRefRef<HTMLButtonElement> | undefinedOptional cancel button ref value accepted by this exported component.
TidalCommentsThread.composerAttachmentsReactNodeOptional composer attachments value accepted by this exported component.
TidalCommentsThread.composerContextTidalCommentComposerContext | undefinedOptional composer context value accepted by this exported component.
TidalCommentsThread.composerErrorReactNodeOptional composer error value accepted by this exported component.
TidalCommentsThread.composerHintReactNodeOptional composer hint value accepted by this exported component.
TidalCommentsThread.descriptionReactNodeOptional description value accepted by this exported component.
TidalCommentsThread.emptyContentReactNodeOptional empty content value accepted by this exported component.
TidalCommentsThread.formProps(Omit<Omit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref">, "aria-disabled" | "children" | "dangerouslySetInnerHTML" | "onSubmit"> & { onSubmit?: (event: FormEvent<HTMLFormElement>) => void; }) | undefinedOptional form props value accepted by this exported component.
TidalCommentsThread.formRefRef<HTMLFormElement> | undefinedOptional form ref value accepted by this exported component.
TidalCommentsThread.headingLevel"h2" | "h3" | "h4" | "h5" | "h6" | undefinedOptional heading level value accepted by this exported component.
TidalCommentsThread.labelsPartial<{ open: string; resolved: string; resolve: string; reopen: string; reply: string; edit: string; delete: string; comment: string; replyComposer: string; editComposer: string; submit: string; replySubmit: string; saveChanges: string; saving: string; cancel: string; actions: string; }> | undefinedOptional labels value accepted by this exported component.
TidalCommentsThread.onCancelComposer((event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the cancel composer interaction is proposed.
TidalCommentsThread.onDeleteRequest((comment: TidalThreadComment, event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the delete request interaction is proposed.
TidalCommentsThread.onEditRequest((comment: TidalThreadComment, event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the edit request interaction is proposed.
TidalCommentsThread.onReplyRequest((comment: TidalThreadComment, event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the reply request interaction is proposed.
TidalCommentsThread.onResolvedChange((resolved: boolean, event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the resolved change interaction is proposed.
TidalCommentsThread.onSubmitComment((value: string, event: FormEvent<HTMLFormElement>) => void) | undefinedCallback invoked when the submit comment interaction is proposed.
TidalCommentsThread.pendingboolean | undefinedOptional pending value accepted by this exported component.
TidalCommentsThread.resolveButtonPropsOmit<NativeButtonProps, "aria-pressed"> | undefinedOptional resolve button props value accepted by this exported component.
TidalCommentsThread.resolveButtonRefRef<HTMLButtonElement> | undefinedOptional resolve button ref value accepted by this exported component.
TidalCommentsThread.submitButtonPropsNativeButtonProps | undefinedOptional submit button props value accepted by this exported component.
TidalCommentsThread.submitButtonRefRef<HTMLButtonElement> | undefinedOptional submit button ref value accepted by this exported component.
TidalCommentsThread.textareaPropsOmit<TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "defaultValue" | "id" | "aria-disabled" | "children" | "dangerouslySetInnerHTML"> | undefinedOptional textarea props value accepted by this exported component.
TidalCommentsThread.textareaRefRef<HTMLTextAreaElement> | undefinedOptional textarea ref value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.