1.0.0 • Published 6 months ago

button-tese-lib1 v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Button Component

The Button component is a customizable React button component that allows you to create buttons with different styles, types, and sizes in your React applications.

Table of Contents

Installation

To use the Button component in your React project, follow these steps:

  1. Install the component package via npm or yarn:

    npm install button-teseract-lib
    # or
    yarn add button-teseract-lib
    2.Import the Button component in your React application:
    import Button from 'your-button-component-package';

Usage

`import { Button } from "button-new-libtess2"; function App() {

return (

    <div>
		<h4>Buttons</h4>
		<Button type="primary" size="medium" action="some-action">
			Primary Button
		</Button>

		<Button type="secondary" size="small" action="another-action">
			Secondary Button
		</Button>

		<Button type="warning" size="small" action="another-action">
			Warning Button
		</Button>
		<Button type="ErrorButton" size="small" action="another-action">
			Error Button
		</Button>
		<Button type="SuccessButton" size="small" action="another-action">
			Success Button
		</Button>
		<Button type="LinkButton" size="medium" action="another-action">
			Link Button
		</Button>
		<Button type="disabled" size="small" action="another-action">
			Disabled Button
		</Button>
	</div>

) };

export default App;`