open-index/open-npm huggingface dataset:
npm package: @shahrozfreelancer/basicbutton
Description: **BasicButton** is a simple React button component that allows you to quickly add customizable buttons to your React projects.
Author: Shahroz Freelancer
Latest version: 1.2.5

# BasicButton

**BasicButton** is a simple React button component that allows you to quickly add customizable buttons to your React projects.

## Installation

Install the package via npm:

```bash
npm install @shahrozfreelancer/basicbutton
```

## Usage

Here's a basic example of how to use the `BasicButton` component in your project:

```jsx
import React from 'react';
import Button from '@shahrozfreelancer/basicbutton';

function App() {
  return (
    <div>
      <h1>Welcome to BasicButton!</h1>
      <Button 
        label="Click Me!" 
        onClick={() => console.log('Button Clicked!')} 
      />
    </div>
  );
}

export default App;
```

## Props

The `BasicButton` component accepts the following props:

| Prop Name | Type     | Default   | Description                     |
|-----------|----------|-----------|---------------------------------|
| `label`   | `string` | `"Button"`| The text displayed on the button. |
| `onClick` | `func`   | `() => {}`| Function to be executed on button click. |

## Features

- Customizable label text
- Easy-to-use click handler

## Development

### Building the Package Locally

If you want to test or modify this package locally:

1. Clone the repository:
```bash
git clone <repository-url>
cd basicbutton
```

2. Install dependencies and build:
```bash
npm install
npm run build
```

## License

MIT License. See the [LICENSE](./LICENSE) file for details.