1.2.5 • Published 7 months ago

@shahrozfreelancer/basicbutton v1.2.5

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

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:

npm install @shahrozfreelancer/basicbutton

Usage

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

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 NameTypeDefaultDescription
labelstring"Button"The text displayed on the button.
onClickfunc() => {}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:
git clone <repository-url>
cd basicbutton
  1. Install dependencies and build:
npm install
npm run build

License

MIT License. See the LICENSE file for details.

1.2.5

7 months ago

1.2.4

7 months ago

1.2.3

7 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.2.0

7 months ago

1.1.0

7 months ago

1.0.0

7 months ago