Field formatter
Field Formatter settings
Display Summary Output

This module will provide output in details with summary tag.

The <summary> tag defines a visible heading for the <details>element. The heading can be clicked to view/hide the details.

The <summary> element should be the first child element of the <details> element.

Reference: https://www.w3schools.com/tags/tag_summary.asp

Usage:
This module would be good for a 'question and answer' or 'faq'...etc

Installation:
Install with Composer: $ composer require 'drupal/details_summary_field_formatter'

Note:
Clear the Drupal cache after saving the module configuration settings.

Supporting organizations: 

Project information

Releases