ExpandableText component displays a text paragraph that can be truncated
to a maximum number of lines with an option to expand and collapse.
Shows a "Show More" / "Show Less" toggle button when the text exceeds the
specified number of lines.
- Description:
- ExpandableText component displays a text paragraph that can be truncated to a maximum number of lines with an option to expand and collapse. Shows a "Show More" / "Show Less" toggle button when the text exceeds the specified number of lines.
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object | Component props.
Properties
|
Returns:
A paragraph with expandable/collapsible text.
- Type
- JSX.Element