# @bolttech/molecules-collapse-group

> The **Collapse Group** component is a React component that provides a way to group and manage a collection of collapsible elements. It helps to create sections of content that can be expanded or collapsed.

Latest version **0.22.3** (published 2026-06-08) · 0 weekly downloads

## Install

```sh
npm install @bolttech/molecules-collapse-group
pnpm add @bolttech/molecules-collapse-group
yarn add @bolttech/molecules-collapse-group
bun add @bolttech/molecules-collapse-group
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.22.3 |
| Published | 2026-06-08 |
| First published | 2023-05-23 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 62.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | andsfranbolt, danielkhalebbatista, pauloazevedo-ed, bruno.gomes, plinio.altoe, joaoteixeira20, esteve-cabrera, jabolttech, lucasvpaiva, herberts.fortuna, matheus.maciel.bolttech, silas.silva.bolttech |

## Links

- npm: https://www.npmjs.com/package/@bolttech/molecules-collapse-group
- npm.io page: https://npm.io/package/@bolttech/molecules-collapse-group

## Dependencies (5)

- [react](https://npm.io/package/react.md) 19.1.2
- [styled-components](https://npm.io/package/styled-components.md) 6.1.1
- [@bolttech/ui-utils](https://npm.io/package/@bolttech/ui-utils.md) 0.6.7
- [@bolttech/atoms-collapse](https://npm.io/package/@bolttech/atoms-collapse.md) 0.22.2
- [@bolttech/frontend-foundations](https://npm.io/package/@bolttech/frontend-foundations.md) 0.12.3

## Recent versions

- 0.22.3 (latest) — 2026-06-08
- 0.22.2 — 2026-05-29
- 0.22.0 — 2026-04-08
- 0.20.0 — 2026-03-06
- 0.19.1 — 2024-12-12
- 0.19.0 — 2024-12-05
- 0.18.0 — 2024-09-24
- 0.17.0 — 2024-09-04
- 0.16.0 — 2024-07-24
- 0.15.3 — 2024-06-07
- 0.15.2 — 2024-05-10
- 0.15.1 — 2024-02-29
- 0.0.1 — 2024-01-24
- 0.15.0 — 2023-11-21
- 0.14.1 — 2023-11-07
- … 16 more at https://npm.io/package/@bolttech/molecules-collapse-group/versions

## README

# Collapse Group Component

The **Collapse Group** component is a React component that provides a way to group and manage a collection of collapsible elements. It helps to create sections of content that can be expanded or collapsed.

## Installation

To use the **Collapse Group** component, you need to install the required dependencies:

```bash
npm install @bolttech/frontend-foundations @bolttech/molecules-collapse-group
```

or

```bash
yarn add @bolttech/frontend-foundations @bolttech/molecules-collapse-group
```

## Usage

You can utilize the **Collapse Group** component by importing it and wrapping the collapsible elements within it. Here's an example:

```jsx
import React from 'react';
import {CollapseGroup} from '@bolttech/molecules-collapse-group';
import {bolttechTheme, BolttechThemeProvider} from "@bolttech/frontend-foundations"; // Adjust the path to your component

function App() {
  return (
    <BolttechThemeProvider theme={bolttechTheme}>
      <CollapseGroup dataTestId="my-collapse-group">
        <Collapse title="Section 1">
          Content of section 1
        </Collapse>
        <Collapse title="Section 2">
          Content of section 2
        </Collapse>
        {/* Add more Collapse components here */}
      </CollapseGroup>
    </BolttechThemeProvider>
  );
}

export default App;
```

## Props

The **Collapse Group** component accepts the following props:

| Prop        | Type       | Description                                      |
| ----------- | ---------- | ------------------------------------------------ |
| `children`  | `ReactNode`| Child components to be wrapped by the Collapse Group. |
| `dataTestId`| `string`   | The data-testid attribute for testing purposes.  |

## Functionality

The **Collapse Group** component provides the following functionality:

- Grouping: It groups and manages a collection of collapsible elements (e.g., `Collapse` components).
- Accessibility: It ensures a proper accessibility structure for collapsible sections.

## Contribution

Contributions to the **Collapse Group** component are welcomed. If you encounter issues or have suggestions for improvements, feel free to open an issue or submit a pull request on the component's Bitbucket repository.

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