diff --git a/docs/content/docs/plugins/comments.mdx b/docs/content/docs/plugins/comments.mdx index 2152e626..58eaff82 100644 --- a/docs/content/docs/plugins/comments.mdx +++ b/docs/content/docs/plugins/comments.mdx @@ -274,6 +274,7 @@ import { CommentThread } from "@btst/stack/plugins/comments/client/components" | `currentUserId` | `string` | — | Authenticated user ID — enables edit/delete/pending badge | | `loginHref` | `string` | — | Login page URL shown to unauthenticated users | | `pageSize` | `number` | — | Comments per page. Falls back to `defaultCommentPageSize` from overrides, then 100. A "Load more" button appears when there are additional pages. | +| `sort` | `"asc" \| "desc"` | — | Sort direction for top-level comments by `createdAt`. Defaults to `defaultCommentSort` from overrides, then `"desc"` (newest first). Replies inside each thread always render chronologically and are unaffected. | | `components.Input` | `ComponentType` | — | Custom input component (default: `