
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
Inspired by Bootstrap's 3.x buttons, react-btn is a
simple React component that allows you renders a pretty button element.
The easiest way to use react-btn is to install it from NPM and include it in your React build process (using Webpack, etc).
npm install react-btn --save
You can also use the standalone build by including dist/react-btn.js and dist/react-btn.css in your page. If you do this, make sure you already included the following dependencies:
CommonJS:
var Button = require('react-btn');
<Button btnStyle="info" size="xs">
Tiny button
</Button>
<Button size="sm">
Small, default button
</Button>
<Button btnStyle="primary" type="submit">
Submit button
</Button>
<Button btnStyle="warning" size="lg">
Warning button
</Button>
<Button btnStyle="danger">
Danger!
</Button>
Browser:
React.createElement(ReactBtn, {btnStyle: 'info', size: 'sm', type: 'submit'}, 'Small Submit Button');
I've built a default stylesheet, dist/react-btn.css, that you may include in your sites/projects.
You can customize the styles by modifying the stylesheet itself or by using less and modifying the less files in the /less directory.
FAQs
A React component that renders a pretty button element
We found that react-btn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.