This is the basic expand/collapse widget. Click the header to expand or collapse the content below. The widget uses CSS transitions for smooth animations and JavaScript for toggling functionality.
| Feature | Description |
|---|---|
| Smooth Animation | CSS transitions provide fluid expand/collapse motion |
| Accessible | Keyboard and mouse interactions supported |
| Customizable | Easy to style and modify for different use cases |
This example demonstrates how the widget handles longer content. The max-height property in the CSS can be adjusted to accommodate different content lengths.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.