Security News
Supply Chain Attack Detected in @solana/web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
abaabil.details
Advanced tools
The Details component is used to create expandable sections in your application. It's part of the abaabil.details
library.
npm install abaabil.details
You can import the Details component from the abaabil.details
package:
import Details from 'abaabil.details';
The Details component can be used in your JSX to create expandable sections. You can customize the component by setting its properties such as summary
, icon
, openIcon
, closeIcon
, and more.
<Details summary="Click to expand" icon="info-circle">
This is the content inside the Details component.
</Details>
<div className="space-y-4">
<Details summary="Apple Details Summary Text" icon="apple">
<div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
</div>
</Details>
<Details summary="Banana Details Summary Text" icon="cherry">
This is the content inside the Details component.
</Details>
</div>
You can customize the icons used in the Details component:
<Details
summary="Custom Icons Example"
icon="info-circle"
openIcon="chevron-up"
closeIcon="chevron-down"
>
This Details component has custom icons.
</Details>
You can set the Details component to be initially expanded:
<Details summary="Initially Expanded" expanded={true}>
This Details component is initially expanded.
</Details>
Property | Type | Description | Default | Required |
---|---|---|---|---|
summary | ReactNode | Content to display in the summary (header) | - | Yes |
children | ReactNode | Content to display when expanded | - | Yes |
icon | string | Icon ID to display next to the summary | - | No |
openIcon | string | Icon ID to display when open | 'chevron-down' | No |
closeIcon | string | Icon ID to display when closed | 'chevron-up' | No |
className | string | Additional CSS classes | - | No |
expanded | boolean | Whether initially expanded | false | No |
The Details component also supports all other default properties available to the HTML details element.
The Details component is designed with accessibility in mind:
The Details component comes with some default styling, but you can customize its appearance using the className
prop and your own CSS.
Icon
component from abaabil.temp.icon
. Ensure this dependency is available in your project.For more information or to report issues, please visit the abaabil.details GitHub repository.
FAQs
Unknown package
The npm package abaabil.details receives a total of 1 weekly downloads. As such, abaabil.details popularity was classified as not popular.
We found that abaabil.details demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.