1.2.5 • Published 10 months ago

@shahrozfreelancer/basicbutton v1.2.5

Weekly downloads
-
License
-
Repository
-
Last release
10 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

10 months ago

1.2.4

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago