Gathering detailed insights and metrics for @chakra-ui/accordion
Gathering detailed insights and metrics for @chakra-ui/accordion
Gathering detailed insights and metrics for @chakra-ui/accordion
Gathering detailed insights and metrics for @chakra-ui/accordion
@zag-js/accordion
Core logic for the accordion widget implemented as a state machine
@chakra-ui/c-accordion
Chakra UI Vue | CAccordion component
@hackr/chakra-ui-accordion
A simple and accessible accordion component for React & Chakra UI
@teste-ui/accordion
A simple and accessible accordion component for React & Chakra UI
Chakra UI is a component system for building SaaS products with speed ⚡️
npm install @chakra-ui/accordion
Typescript
Module System
Node Version
NPM Version
@chakra-ui/cli@3.22.0
Updated on Jul 07, 2025
@chakra-ui/panda-preset@3.22.0
Updated on Jul 07, 2025
@chakra-ui/react@3.22.0
Updated on Jul 07, 2025
@chakra-ui/charts@3.22.0
Updated on Jul 07, 2025
@chakra-ui/panda-preset@3.21.1
Updated on Jun 28, 2025
@chakra-ui/charts@3.21.1
Updated on Jun 28, 2025
TypeScript (82.19%)
MDX (16.96%)
JavaScript (0.71%)
CSS (0.07%)
HTML (0.06%)
Dockerfile (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
39,340 Stars
10,957 Commits
3,442 Forks
201 Watchers
10 Branches
694 Contributors
Updated on Jul 10, 2025
Latest Version
2.3.1
Package Id
@chakra-ui/accordion@2.3.1
Unpacked Size
233.92 kB
Size
29.85 kB
File Count
73
NPM Version
9.6.7
Node Version
18.17.1
Published on
Sep 08, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
7
3
An accordion is a vertically stacked set of interactive headings that each contain a title or content snippet representing a section of content.
The headings function as controls that enable users to reveal or hide their associated sections of content.
1yarn add @chakra-ui/accordion 2 3# or 4 5npm i @chakra-ui/accordion
1import { 2 Accordion, 3 AccordionItem, 4 AccordionButton, 5 AccordionPanel, 6} from "@chakra-ui/accordion"
Accordion
: manages the global state of all opened accordion items via
context.AccordionItem
: manages the state for a single accordion item.AccordionButton
: the trigger to open/close an accordion item.AccordionPanel
: the main content area for the accordion item.By default, only one accordion can be visible at a time, and it can't be toggled.
Note 🚨: Each accordion button must be wrapped in a heading tag, that is appropriate for the information architecture of the page.
1<Accordion> 2 <AccordionItem> 3 <h2> 4 <AccordionButton>Section 1 title</AccordionButton> 5 </h2> 6 <AccordionPanel>Panel 1</AccordionPanel> 7 </AccordionItem> 8 9 <AccordionItem> 10 <h2> 11 <AccordionButton>Section 2 title</AccordionButton> 12 </h2> 13 <AccordionPanel>Panel 2</AccordionPanel> 14 </AccordionItem> 15</Accordion>
To make each accordion toggle (expand/collapse) on click, pass the allowToggle
prop.
1<Accordion allowToggle> 2 <AccordionItem> 3 <AccordionButton> 4 <chakra.div flex="1" textAlign="left"> 5 Section 1 title 6 </chakra.div> 7 <AccordionIcon /> 8 </AccordionButton> 9 <AccordionPanel pb={4}>Panel 1</AccordionPanel> 10 </AccordionItem> 11 12 <AccordionItem> 13 <AccordionButton> 14 <chakra.div flex="1" textAlign="left"> 15 Section 2 title 16 </chakra.div> 17 <AccordionIcon /> 18 </AccordionButton> 19 <AccordionPanel pb={4}>Panel 2</AccordionPanel> 20 </AccordionItem> 21</Accordion>
To allow multiple accordions to be visible at a time, pass the allowMultiple
prop.
1<Accordion allowMultiple> 2 <AccordionItem> 3 <AccordionButton> 4 <chakra.div flex="1" textAlign="left"> 5 Section 1 title 6 </chakra.div> 7 <AccordionIcon /> 8 </AccordionButton> 9 <AccordionPanel pb={4}>Panel 1</AccordionPanel> 10 </AccordionItem> 11 12 <AccordionItem> 13 <AccordionButton> 14 <chakra.div flex="1" textAlign="left"> 15 Section 2 title 16 </chakra.div> 17 <AccordionIcon /> 18 </AccordionButton> 19 <AccordionPanel pb={4}>Panel 2</AccordionPanel> 20 </AccordionItem> 21</Accordion>
https://www.w3.org/TR/wai-aria-practices/examples/accordion/accordion.html https://inclusive-components.design/collapsible-sections/ https://github.com/stereobooster/react-accessible-accordion https://jqueryui.com/accordion/
No vulnerabilities found.
Reason
30 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
7 existing vulnerabilities detected
Details
Reason
Found 5/25 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More