
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
react-collapsible-accordion
Advanced tools
A React collapsible and accordion wrapper with smooth transition.
A React Collapsible and Accordion Component. You can easily implement collapsible and accordion with smooth transitions.
You can try the demo Here.
Install using npm:
npm install --save react-collapsible-accordion
Install using yarn:
yarn add react-collapsible-accordion
// Import from the library
import {Collapsible,Accordion,AccordionItem} from 'react-collapsible-accordion';
// use collapsible in your component
<Collapsible Title="My Title">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto numquam temporibus beatae recusandae in quisquam ipsa aperiam natus libero, ad labore quod
a similique facilis non rerum dolor voluptatem odit eveniet repellendus deserunt? Minima, commodi odio. Nulla sint molestiae delectus debitis sed
reiciendis fugiat! Velit itaque quis enim dolore maxime!
</Collapsilble>
// or use Accordion
<Accordion allowMultipleOpen={true}>
<AccordionItem Title="one">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto numquam temporibus beatae recusandae in quisquam ipsa aperiam natus libero, ad labore quod
a similique facilis non rerum dolor voluptatem odit eveniet repellendus deserunt? Minima, commodi odio. Nulla sint molestiae delectus debitis sed
reiciendis fugiat! Velit itaque quis enim dolore maxime!
</AccordionItem>
<AccordionItem Title="two" >
Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugiat ratione laudantium quo, nobis dolorem, dicta eum doloribus sunt corporis illo numquam hic,
at totam id expedita debitis fugit saepe mollitia?
</AccordionItem>
<AccordionItem Title="three">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto numquam temporibus beatae recusandae in quisquam ipsa aperiam natus libero, ad labore quod
a similique facilis non rerum dolor voluptatem odit eveniet repellendus deserunt? Minima, commodi odio. Nulla sint molestiae delectus debitis sed
reiciendis fugiat! Velit itaque quis enim dolore maxime!
</AccordionItem>
</Accordion>
Below we have all the props that we can use with the <Collapsible>
component.
Name | Type | Default | Description |
---|---|---|---|
Title | string / ComponentType<{}> | title of the collapsible item. Title can be a string or you can provide a custom component. | |
Icon | string / ComponentType<{}> | Icon can be a font icon class name (string) or a component. if you don't provide it, there will be a default Icon | |
open | boolean | false | is the collapsible opened or closed by default. |
onClick | function | () => void | Optional click handler. |
className | string | Custom class name for the outer div. |
Below we have all the props that we can use with the <AccordionItem>
component.
Name | Type | Default | Description |
---|---|---|---|
Title | string / ComponentType<{}> | title of the collapsible item. Title can be a string or you can provide a custom component. | |
Icon | string / ComponentType<{}> | Icon can be a font icon class name (string) or a component. if you don't provide it, there will be a default Icon | |
open | boolean | false | is the collapsible opened or closed by default. |
className | string | Custom class name for the outer div. |
Below we have all the props that we can use with the <Accordion>
component.
Name | Type | Default | Description |
---|---|---|---|
allowMultipleOpen | boolean | false | set it to true if you want to be able to view multible items opened at the same time. |
className | string | Custom class name for the outer div. |
React Collapsible Accordion is licensed under MIT license, see LICENSE for the full license.
FAQs
A React collapsible and accordion wrapper with smooth transition.
The npm package react-collapsible-accordion receives a total of 0 weekly downloads. As such, react-collapsible-accordion popularity was classified as not popular.
We found that react-collapsible-accordion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.