Text Ellipsis

Expandable text ellipsis.

Text Ellipsis

Default

Set line-clamp and expandable to truncate long text. The expand action stays beside the final visible line and moves below the text only when the container is too narrow.

API

PROPS

Property
Type
Values
Description
default
Example
More
expand-text
String
action labels
Override the action text shown while the text is collapsed.
Read more
collapse-text
String
action labels
Override the action text shown while the text is expanded.
Read less
content
String
text
Text to truncate when no default slot is supplied.
''
—
line-clamp
Number
lines
Number of visible lines when collapsed.
1
—
expandable
Boolean
true / false
Show expand and collapse action.
false
—

EVENTS

Event
Type
Description
default
Example
More
update:expanded
Boolean
Fire when the expanded state changes.
—
—
change
Boolean
Fire when the expanded state changes.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied