
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-button-component
Advanced tools
A simple react button component based on styled-components with basic styles. Great when you want a quick button that looks neat enough and is yet, customizable to the heart!

yarn add react-button-component
To use the Button component, simply import it into your project, and use it just like any other component!
By default, the button has some base styles applied to make it look clean!
import React, { Component } from 'react';
import Button from 'react-button-component';
class App extends Component {
render() {
return (
<div className="App">
<Button onClick={() => alert('Welcome!')}>
Hop in!
</Button>
</div>
);
}
}
export default App;
Result:

The button component is styled using styled-components library, which means you the Button component is in fact, a Styled component! Now you can use Button.extend to extend the styles till your heart is content! For example, we can modify the default component in the above file to have a custom style matching a particular theme:
import React, { Component } from 'react';
import Button from 'react-button-component';
import logo from './logo.svg';
import './App.css';
const CustomizedButton = Button.extend`
color: #FFF;
border: none;
border-radius: 5px;
background: linear-gradient(70deg, #FF5686, #FF7B9E);
border-bottom: 5px solid #C44267;
`
class App extends Component {
render() {
return (
<div className="App">
<CustomizedButton onClick={() => alert('bonkers!')}>
Chearful!
</CustomizedButton>
</div>
);
}
}
export default App;
Result:

buoyantair
MIT
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.