# @vaadin/details

> vaadin-details

Latest version **24.10.10** (published 2026-11-02) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @vaadin/details
pnpm add @vaadin/details
yarn add @vaadin/details
bun add @vaadin/details
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 24.10.10 |
| Published | 2026-11-02 |
| First published | 2021-10-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 584 |
| Author | Vaadin Ltd |
| Maintainers | web-padawan, platosha, jouni, manolo, yuriyyev, vaadin-owner, tomivirkki, artur-, sunzhewyq, sissbruecker |
| Keywords | Vaadin, vaadin-details, web-components, web-component |

## Links

- npm: https://www.npmjs.com/package/@vaadin/details
- Repository: https://github.com/vaadin/web-components
- Homepage: https://vaadin.com/components
- Issues: https://github.com/vaadin/web-components/issues
- npm.io page: https://npm.io/package/@vaadin/details

## Recent versions

- 24.10.10 (latest) — 2026-11-02
- 25.4.0-alpha5 (next) — 2026-10-30
- 25.4.0-dev.c9532cd333 (dev-table-theme) — 2026-09-30
- 25.3.0-dev.1fa5a51482 (dev-disable-dates) — 2026-07-25
- 24.4.0-dev.4b20a0c55.3 (canary) — 2024-03-22
- 24.9.22 — 2026-11-02
- 25.2.17 — 2026-10-29
- 25.3.5 — 2026-10-29
- 23.6.8 — 2026-10-29
- 24.9.21 — 2026-10-29
- 24.10.9 — 2026-10-29
- 24.4.21 — 2026-10-23
- 25.3.4 — 2026-10-22
- 25.4.0-alpha4 — 2026-10-21
- 25.2.16 — 2026-10-21
- … 667 more at https://npm.io/package/@vaadin/details/versions

## README

# @vaadin/details

A web component that provides an expandable panel for showing and hiding content.

[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/details)

[![npm version](https://badgen.net/npm/v/@vaadin/details)](https://www.npmjs.com/package/@vaadin/details)

```html
<vaadin-details opened>
  <vaadin-details-summary slot="summary">Expandable Details</vaadin-details-summary>
  <div>Toggle using mouse, Enter and Space keys.</div>
</vaadin-details>
```

[<img src="https://raw.githubusercontent.com/vaadin/web-components/main/packages/details/screenshot.png" alt="Screenshot of vaadin-details" width="320">](https://vaadin.com/docs/latest/components/details)

## Installation

Install the component:

```sh
npm i @vaadin/details
```

Once installed, import the component in your application:

```js
import '@vaadin/details';
```

## Themes

Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
The [main entrypoint](https://github.com/vaadin/web-components/blob/main/packages/details/vaadin-details.js) of the package uses the Lumo theme.

To use the Material theme, import the component from the `theme/material` folder:

```js
import '@vaadin/details/theme/material/vaadin-details.js';
```

You can also import the Lumo version of the component explicitly:

```js
import '@vaadin/details/theme/lumo/vaadin-details.js';
```

Finally, you can import the un-themed component from the `src` folder to get a minimal starting point:

```js
import '@vaadin/details/src/vaadin-details.js';
```

## Contributing

Read the [contributing guide](https://vaadin.com/docs/latest/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.

## License

Apache License 2.0

Vaadin collects usage statistics at development time to improve this product.
For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.

---
_Source: https://npm.io/package/@vaadin/details · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
