# Feature DREAM-251 - Create a `BorderBox::CollapsibleHeader` component

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-251

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 16.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List | a11y report 2025 |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| DREAM-263 | Code maintenance | Update CollapsibleHeader to use slots for greater flexibility | closed |  | 16.0.0 |  |  |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Frontend components and Primer design system, Modules and project features / Meetings |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | Yes |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Henriette Darge |
| Product manager |  |
| Feature Lead |  |
| Developers | Mir Bhatia |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**Context**

Needed for <mention class="mention" data-id="54751" data-type="work_package" data-text="##54751">##54751</mention>.

**Acceptance criteria**

There is a component which can be used inside a Primer::Beta::BorderBox

  - It accepts
    
      - title (e.g. "Backlogs")
    
      - optionally a counter after the title (e.g. "Backlogs (6)")
    
      - optionally a description displayed below the title

  - Next to the counter (or title if there is no counter) there is a chevron

  - The component is clickable to extend/collapse the whole BorderBox
    
      - When collapsed, the bottom border is thicker (2px) to indicate there are items hidden
    
      - Click zone to expand/collapse is the label set, consisting of:
        
          - Label
        
          - Counter (optional)
        
          - Arrow

**Figma**

  - *To be designed*

**Technical notes**

  - Primer repo

**Out of scope**

  - A whole `CollapsibleBorderBox` component
    
      - to make it easier to re-use the collapsible meachnism later
    
      - to make it easier that all BorderBoxes on the page look the same (with additional elements in the header as dragDrop icon, ActionMenu, etc)
