---
title: "DetailsContent extension"
description: "Show and hide content with the Details and DetailsContent extension in your Tiptap Editor. Great to… toggle hiding content!"
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/editor/extensions/nodes/details-content.md)

# DetailsContent extension

Show and hide content with the Details and DetailsContent extension in your Tiptap Editor. Great to… toggle hiding content!

The Details extension enables you to use the `<details>` HTML tag in the editor. This is great to show and hide content.

> **Interactive demo:** [Details](https://v2--tiptap-embed.netlify.app/preview/Nodes/Details)

## Install

```bash
npm install @tiptap/extension-details-content
```

This extension requires the [`Details`](https://tiptap.dev/docs/v2/editor/extensions/nodes/details.md) and [`DetailsSummary`](https://tiptap.dev/docs/v2/editor/extensions/nodes/details-summary.md) node.

## Settings

### HTMLAttributes

Custom HTML attributes that should be added to the rendered HTML tag.

```js
DetailsContent.configure({
  HTMLAttributes: {
    class: 'my-custom-class',
  },
})
```
