OptionalcolorsColor overrides
Array of comments to display
OptionaldisabledWhether the entire panel is disabled
OptionalfileFile ID for context (useful for consumer-side logic)
OptionaliconsIcon overrides
OptionallabelsLabel overrides
Current user's ID for ownership detection
OptionalmaxMaximum height constraint
Called when the user submits a new comment
OptionalonCalled when the close button is clicked (header must be visible)
OptionalonCalled when the user deletes their own comment
OptionalonCalled when the user edits their own comment
OptionalonError callback for async operations
OptionalplaceholderInput placeholder text override
OptionalrenderRender prop overrides
OptionalshowWhether to show avatars
OptionalshowWhether to show the header bar
OptionalshowWhether to show timestamps
OptionalstylesStyle overrides
OptionalsxMUI sx prop
OptionaltitleHeader title override
Props for the FileCommentsPanel component.
The component is fully controlled — consumers provide comment data and handle persistence via callbacks.
Example