Expand & Collapse

Expand & collapse is used to show and hide portions of content.

expand/main

Resources

Intro & Anatomy

Expand and collapse components allow users to reveal or hide portions of content within existing text blocks, similar to accordion functionality but focused on text truncation rather than section organisation.

Use expand & collapse to manage lengthy content such as reviews, comments, or descriptions where users can choose to read more detail.

Unlike accordions that organise content below titles, expand & collapse truncates existing content and provides controls to reveal the full text.

expand/anatomy

 


 

Options & Styles

States

Closed state displays 2-5 lines of preview text with expand controls
Open state reveals the complete content with collapse controls

expand/states

 


 

Best Practice & Usage

Expand & collapse should manage secondary content length whilst ensuring primary information remains immediately accessible. Use this pattern to handle variable-length content without overwhelming the interface.

Ref to 336:15349
Ref to 336:15372
Ref to 336:15361
Ref to 336:15384
Ref to 336:15340
Ref to 336:15397

 


 

Theming

You can customize font styles and weights, colours, and spacings to match your design requirements.