Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@bolttech/atoms-collapse
Advanced tools
Certainly! Here's the README.md for the provided `Collapse` component:
Certainly! Here's the README.md for the provided Collapse
component:
A React component to create collapsible sections with headers and content.
Use the package manager npm or yarn to install the component.
npm install @edirect/frontend-foundations @bolttech/atoms-collapse
or
yarn add @edirect/frontend-foundations @bolttech/atoms-collapse
The Collapse
component accepts the following properties:
Prop | Type | Description |
---|---|---|
titleText | string | The text content of the collapse header. |
isOpen | boolean | Determines whether the collapse is open or closed. |
imgCollapse | string or element | An image URL or an element to be displayed as the collapse header icon. |
status | string | The status of the collapse (e.g., 'default' , 'error' , 'success' ). |
onClick | function | Callback function to handle the collapse header click event. |
children | node | The content to be displayed within the collapsed section. |
dataTestId | string | The data-testid attribute for testing. |
import React, {useState} from 'react';
import {Collapse} from '@bolttech/atoms-collapse';
import {bolttechTheme, BolttechThemeProvider} from "@edirect/frontend-foundations";
const ExampleComponent = () => {
const [isCollapseOpen, setIsCollapseOpen] = useState(false);
const handleCollapseClick = (isOpen) => {
setIsCollapseOpen(isOpen);
};
return (
<BolttechThemeProvider theme={bolttechTheme}>
<Collapse
titleText="Section Title"
isOpen={isCollapseOpen}
imgCollapse="https://example.com/collapse-icon.png"
status="default"
onClick={handleCollapseClick}
dataTestId="custom-collapse"
>
{/* Content to display within the collapsed section */}
</Collapse>
</BolttechThemeProvider>
);
};
export default ExampleComponent;
Contributions are welcome! For any bug fixes, improvements, or new features, please open an issue or submit a pull request.
Please make sure to follow the code standards and test your changes before submitting.
FAQs
Certainly! Here's the README.md for the provided `Collapse` component:
The npm package @bolttech/atoms-collapse receives a total of 1 weekly downloads. As such, @bolttech/atoms-collapse popularity was classified as not popular.
We found that @bolttech/atoms-collapse 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.