npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@veeyaainnovatives/button

v1.0.4

Published

A reusable Button component for React applications with configurable styles

Readme

@veeyaainnovatives/button

A reusable Button component for React applications with fully configurable styles. Default white/grey colors, all customizable via props.

Installation

npm install @veeyaainnovatives/button --save

Peer Dependencies

This package requires the following peer dependencies:

  • react (^16.8.0 || ^17.0.0 || ^18.0.0)
  • react-dom (^16.8.0 || ^17.0.0 || ^18.0.0)

Usage

Basic Usage

import { Button } from '@veeyaainnovatives/button';

function App() {
  return (
    <Button onClick={() => console.log('Clicked')}>
      Click Me
    </Button>
  );
}

With Custom Colors

<Button
  backgroundColor="#4a90e2"
  color="#ffffff"
  hoverBackgroundColor="#357abd"
  hoverColor="#ffffff"
>
  Custom Button
</Button>

Outline Button

<Button
  variant="outline"
  borderColor="#4a90e2"
  color="#4a90e2"
  hoverBackgroundColor="#4a90e2"
  hoverColor="#ffffff"
>
  Outline Button
</Button>

With Custom Width and Size

<Button
  width="200px"
  height="56px"
  padding="12px 30px"
  fontSize="18px"
>
  Custom Size
</Button>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | Required | Button content | | onClick | function | undefined | Click handler | | type | string | 'button' | Button type (button, submit, reset) | | disabled | boolean | false | Disabled state | | className | string | '' | Additional CSS classes (allows external CSS override) | | variant | string | 'default' | Button variant ('default', 'outline', 'text') | | backgroundColor | string | '#ffffff' | Background color | | color | string | '#333333' | Text color | | borderColor | string | backgroundColor | Border color | | hoverBackgroundColor | string | '#e9ecef' | Hover background color | | hoverColor | string | color | Hover text color | | hoverBorderColor | string | borderColor | Hover border color | | width | string | 'auto' | Button width | | minWidth | string | 'auto' | Minimum width | | height | string | '44px' | Button height | | padding | string | '10px 24px' | Button padding | | borderRadius | string | '100px' | Border radius | | borderWidth | string | '0px' | Border width | | fontSize | string | '16px' | Font size | | fontWeight | string | '500' | Font weight | | icon | string\|ReactNode | undefined | Icon (FontAwesome class string or React node) | | iconPosition | string | 'left' | Icon position ('left' or 'right') | | defaultText | string | undefined | Default text (for hover text change) | | hoverText | string | undefined | Text to show on hover (requires defaultText) | | customStyles | object | {} | Additional inline styles |

Examples

Default Button (White/Grey)

<Button onClick={handleClick}>
  Default Button
</Button>

Custom Styled Button

<Button
  backgroundColor="#4a90e2"
  color="#ffffff"
  hoverBackgroundColor="#357abd"
  borderRadius="100px"
  padding="13px 40px"
  fontSize="16px"
  fontWeight="500"
>
  Custom Button
</Button>

Full Width Button

<Button
  width="100%"
  height="56px"
  backgroundColor="#4a90e2"
  color="#ffffff"
>
  Full Width Button
</Button>

Outline Button

<Button
  variant="outline"
  borderColor="#4a90e2"
  color="#4a90e2"
  hoverBackgroundColor="#4a90e2"
  hoverColor="#ffffff"
  borderWidth="3px"
  borderRadius="100px"
>
  Outline Button
</Button>

Text Button

<Button
  variant="text"
  color="#4a90e2"
  hoverBackgroundColor="transparent"
  hoverColor="#357abd"
>
  Text Button
</Button>

With Icon

<Button
  icon="fa fa-download"
  iconPosition="left"
  onClick={handleDownload}
>
  Download
</Button>

With Hover Text Change

<Button
  icon="fa fa-phone"
  defaultText="Contact Us"
  hoverText="+1 234 567 8900"
  backgroundColor="#4a90e2"
  color="#ffffff"
  hoverBackgroundColor="#357abd"
>
</Button>

With Icon and Hover Text

<Button
  icon="fa fa-envelope me-2"
  iconPosition="left"
  defaultText="Send Message"
  hoverText="[email protected]"
  variant="outline"
  borderColor="#4a90e2"
  color="#4a90e2"
  hoverBackgroundColor="#4a90e2"
  hoverColor="#ffffff"
>
</Button>

With External CSS Override

// Your external CSS
.my-custom-button {
  background: linear-gradient(90deg, #4a90e2, #357abd);
}

// Component
<Button
  className="my-custom-button"
  backgroundColor="#4a90e2"
>
  Custom Styled
</Button>

CSS Classes

The component uses these base classes that can be overridden:

  • .veeyaa-button - Base button class
  • .veeyaa-button-default - Default variant
  • .veeyaa-button-outline - Outline variant
  • .veeyaa-button-text - Text variant
  • .veeyaa-button-disabled - Disabled state

You can override any styles using external CSS by targeting these classes or adding your own classes via the className prop.

Importing Styles

The CSS is automatically imported when you import the component. If you need to import it separately:

import '@veeyaainnovatives/button/styles.css';

License

MIT