
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@patternfly/pfe-accordion
Advanced tools
<pfe-accordion>
  <pfe-accordion-header>
    <h2>Why do wizards need money if they could just create it?</h2>
  </pfe-accordion-header>
  <pfe-accordion-panel>
    <p>There is legislation that decides what you can conjure and what you can not. Because things that you conjure out of thin air will not last, it is illegal in the wizarding world.</p>
  </pfe-accordion-panel>
  <pfe-accordion-header>
    <h2>Why doesn't Harry have a portrait of his parents?</h2>
  </pfe-accordion-header>
  <pfe-accordion-panel>
    <p>The characters in the portraits are not actually ghosts. They mainly are there just to repeat common phrases or serve as a general representation of the individual they depict. A portrait of his parents would not be of much help to Harry.</p>
  </pfe-accordion-panel>
</pfe-accordion>
Place the pfe-accordion-header and pfe-accordion-panel elements here.
We expect the light DOM of the pfe-accordion-header to be a heading level tag
(h1, h2, h3, h4, h5, h6)
Add the content for your accordion panel here.
pfe-theme
Changes the context of the accordion to one of 3 possible themes:
light (default)darksaturatedThis will override any context being passed from a parent component and will add a style attribute setting the --theme variable.
pfe-disclosure
If pfe-accordion has one pfe-accordion-header, it will get tagged with pfe-disclosure="true". This applies a slightly different set of styles: chevron appears on the left side, the header has a single border on all four sides. Applying pfe-disclosure="false" to a pfe-accordion element containing only one header/panel pairing will set the element to display as a standard accordion.
Fires when an pfe-accordion-header is activated. The detail object contains the following
detail: {
  expanded: Boolean
}
npm run test
npm run build
From the PFElements root directory, run:
npm start
Accordion (and all PFElements) use Prettier to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can integrate your editor with Prettier to have the style rules applied on every save.
FAQs
Accordion for PatternFly Elements
The npm package @patternfly/pfe-accordion receives a total of 843 weekly downloads. As such, @patternfly/pfe-accordion popularity was classified as not popular.
We found that @patternfly/pfe-accordion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.