---
title: "DetailsSummary extension"
description: "Use the DetailsSummary extension to enable the `` HTML tag for your `` content. Learn more in our docs!"
---

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

# DetailsSummary extension

Use the DetailsSummary extension to enable the `` HTML tag for your `` content. Learn more in our docs!

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-summary
```

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

## Settings

### HTMLAttributes

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

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