You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@bolttech/atoms-button

Package Overview
Dependencies
Maintainers
9
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bolttech/atoms-button

A customizable React button component.

0.28.0
latest
npmnpm
Version published
Maintainers
9
Created
Source

Button Component

A customizable React button component.

Installation

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

Props

The Button component accepts the following properties:

PropTypeDescription
dataTestIdstringThe data-testid attribute for testing.
disabledbooleanDisables the button when set to true.
titlestringThe text content of the button.
variantstringThe variant style of the button (e.g., 'primary', 'secondary', 'alternative').
sizestringThe size of the button (e.g., 'sm', 'md', 'lg').
iconRightstringThe name of the icon to be displayed on the right side of the button.
iconLeftstringThe name of the icon to be displayed on the left side of the button.
fullWidthbooleanSets the button width to 100% if true.
typestringThe type of the button (e.g., 'button', 'submit', 'reset').
onClickfunctionCallback function to handle the button click event.

Usage

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;

Contributing

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

Package last updated on 08 Jul 2025

Did you know?

Socket

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.

Install

Related posts