@lavin123/updapt-button-testing
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

newbuttonabc

A reusable button component for your JavaScript applications.

Installation

You can install the newbuttonabc package using npm:

Usage

To use the newbuttonabc component in your application, import it and include it in your JSX code:

import React from 'react';
import {Button} from 'newbuttonabc';

const App = () => {
  return (
    <div>
      <Button onClick={() => console.log('Button clicked!')}>
      {label}
      </Button>
    </div>
  );
};

export default App;
Props
The my-button component accepts the following props:

## Props

The `my-button` component accepts the following props:

| Prop           | Type       | Default     | Description                                |
|----------------|------------|-------------|--------------------------------------------|
| `label`        | string     | -           | The label or text to be displayed on the button. |
| `onClick`      | function   | -           | Callback function to be executed when the button is clicked. |
| `disabled`     | boolean    | `false`     | Determines whether the button is disabled or not. |
| `variant`      | string     | `'default'` | The visual style or variant of the button (e.g., `'primary'`, `'secondary'`). |


Contributing
Contributions are welcome! If you find any issues or want to add new features, please submit a pull request.

Before contributing, please read our contributing guidelines.

License
This project is licensed under the MIT License. See the LICENSE file for details.


Feel free to customize the content according to your project's requirements and specifications.

Keywords: input, form, component, JavaScript, React, reusable, UI, user interface, text input, form field, input field, validation, onChange, placeholder, value, disabled, npm, package, library

Readme

Keywords

none

Package Sidebar

Install

npm i @lavin123/updapt-button-testing

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

547 kB

Total Files

15

Last publish

Collaborators

  • lavin4742