Content Ellipsis

Collapse overflowing slot content to a measured height.

Content Ellipsis

Default

Use Content Ellipsis for structured content such as headings, tags, lists, or controls. For plain text that should end with an inline action, use Text Ellipsis.

collapsed-height limits the initial visible area. The action appears only when the slot is taller than that limit; changes to the slot or its width are measured automatically. Hidden controls reveal the full content when reached by keyboard focus.

API

PROPS

Property
Type
Values
Description
default
Example
More
collapsed-height
number | string
pixel number or CSS length such as 10rem
Maximum visible height while collapsed. Percentage heights require a sized parent.
160
v-model:expanded
Boolean
true | false
Control the expanded state; the component also works without v-model.
false
fade
Boolean
true | false
Fade the lower edge of clipped content.
true
expand-text
String
action label
Override the label shown while content is collapsed.
Show more
collapse-text
String
action label
Override the label shown while content is expanded.
Show less

EVENTS

Event
Type
Payload
Description
default
Example
More
update:expanded
Boolean
true | false
Emitted when the expanded state changes.
—
change
Boolean
true | false
Emitted after the expand action changes state.
—

SLOTS

Slot
Scope
Description
default
Example
More
default
any Vue content
Content to measure, clip, and reveal without unmounting it.
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied