Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Expand

Expand wraps long content, shows it at a limited height with a fade, and lets the user reveal the full content with a “show more” style button.

Use it for long descriptions, comments, changelog entries, release notes, activity text, terms snippets, card descriptions, and compact summaries where the page should stay scannable. Do not use it for independent collapsible sections, trees, navigation to another page, tabs, steppers, or as a generic container.

Key features:
  • Collapsed preview: Limits long projected content to a controlled height.
  • Fade edge: Uses a visual fade to show that more content is available.
  • Controlled state: Supports expanded and expandedChange.
  • Custom labels: Supports custom expand and collapse button labels.
PropTypeDefault
expanded
Show/Hide block content
booleanfalse
color
Color of a fade
string''
expandLabel
Label of the expand button if block collapsed
stringShow more
collapseLabel
Label of the expand button if block expanded
stringShow less
showButtonIfExpanded
Show button by hover if block is expanded
booleanfalse
height
Height of a block
string''
EventOutput typeDescription
expandedChangebooleanExecuted when an expand button clicked