1.0.3 • Published 8 months ago

custom-button-libtestingforus v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Custom Button Library

A modern, customizable React button library with multiple variants and sizes.

Installation

npm install custom-button-lib

Usage

import { Button } from 'custom-button-lib';

function App() {
  return (
    <div>
      {/* Primary Button */}
      <Button variant="primary" size="medium" onClick={() => console.log('Clicked!')}>
        Click Me
      </Button>

      {/* Secondary Button */}
      <Button variant="secondary" size="small">
        Secondary
      </Button>

      {/* Outline Button */}
      <Button variant="outline" size="large" disabled>
        Disabled
      </Button>
    </div>
  );
}

Props

PropTypeDefaultDescription
variant'primary' | 'secondary' | 'outline''primary'The style variant of the button
size'small' | 'medium' | 'large''medium'The size of the button
disabledbooleanfalseWhether the button is disabled
onClickfunctionundefinedClick handler function
classNamestring''Additional CSS class names

License

MIT

1.0.2

8 months ago

1.0.3

8 months ago

1.0.0-stage.2

8 months ago

1.0.0-stage.1

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago