DirectoryObjectExpandableCommentComposable

fun DirectoryObjectExpandableCommentComposable(text: String, textStyle: TextStyle, textColor: Color, buttonText: String, buttonStyle: TextStyle, buttonTextColor: Color)

Composable function that displays a text comment with expand/collapse functionality.

This component shows a preview of a long comment with a button to expand and view the full text. Useful for ratings, descriptions, or any lengthy text content where screen space is limited.

Parameters

text

The full comment text to display. Will be truncated in collapsed state.

textStyle

The style of the comment text.

textColor

The color of the comment text.

buttonText

The text for the expand/collapse button (e.g., "Expand", "More").

buttonStyle

The style of the button text.

buttonTextColor

The color of the button text.