Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@bolttech/atoms-button
Advanced tools
A customizable React button component.
Use the package manager npm or yarn to install the component.
npm install @bolttech/frontend-foundations @bolttech/atoms-button
or
yarn add @bolttech/frontend-foundations @bolttech/atoms-button
The Button
component accepts the following properties:
Prop | Type | Description |
---|---|---|
dataTestId | string | The data-testid attribute for testing. |
disabled | boolean | Disables the button when set to true . |
title | string | The text content of the button. |
variant | string | The variant style of the button (e.g., 'primary' , 'secondary' , 'alternative' ). |
size | string | The size of the button (e.g., 'sm' , 'md' , 'lg' ). |
iconRight | string | The name of the icon to be displayed on the right side of the button. |
iconLeft | string | The name of the icon to be displayed on the left side of the button. |
fullWidth | boolean | Sets the button width to 100% if true . |
type | string | The type of the button (e.g., 'button' , 'submit' , 'reset' ). |
onClick | function | Callback function to handle the button click event. |
import React from 'react';
import {Button} from '@bolttech/atoms-button';
import {bolttechTheme, BolttechThemeProvider} from "@bolttech/frontend-foundations";
const ExampleComponent = () => {
const handleButtonClick = () => {
// Logic to handle the button click event
};
return (
<BolttechThemeProvider theme={bolttechTheme}>
<Button
dataTestId="custom-button"
disabled={false}
title="Click Me"
variant="primary"
size="md"
iconRight="arrow_forward"
fullWidth={false}
type="button"
onClick={handleButtonClick}
/>
</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
A customizable React button component.
The npm package @bolttech/atoms-button receives a total of 589 weekly downloads. As such, @bolttech/atoms-button popularity was classified as not popular.
We found that @bolttech/atoms-button 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.