components/ui/expandableText/ExpandableText

ExpandableText component Displays a text block limited to a maximum number of lines, with the ability to expand or collapse.
Description:
  • ExpandableText component Displays a text block limited to a maximum number of lines, with the ability to expand or collapse.
Source:
Parameters:
Name Type Description
props Object Component props
Properties
Name Type Attributes Default Description
value string The text content to display.
maxLines number <optional>
3 Maximum number of visible lines when collapsed.
className string <optional>
Additional CSS classes for styling.
Returns:
An expandable text block with a toggle button.
Type
JSX.Element