CommentsThread

Lists a record's comments and provides a box to post one through the data provider. resolvable adds a button to mark a comment resolved. Refreshes on comment events when the provider supports realtime.

Installation

pnpm dlx shadcn@latest add @chelone/comments-thread
Loading preview…

Lists a record's comments and provides a box to post one through the data provider. resolvable adds a button to mark a comment resolved. Refreshes on comment events when the provider supports realtime.

See the realtime guide for provider setup and usage.

Props

PropTypeDefaultDescription
classNamestring—
perPagenumber—How many comments to fetch. Default 100.
record{ id?: Identifier | null }—Defaults to the record context.
referencestring—The resource that holds the comments.
resolvableboolean—Adds a `Mark resolved` button to unresolved comments. Default false.
targetstring—The field on a comment that holds the id of its parent record.