Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
tbh-buttons
Advanced tools
Install • Features • Usage/Example • Attributes • Contributing
Package is usable, but WIP.Demo and source will be available here,their is no preset style
//Using npm
npm install tbh-buttons
//Using yarn
yarn add tbh-buttons
//Using CDN
<script src="https://unpkg.com/tbh-buttons@1.0.0/dist/tbh-buttons.min.js"></script>
If you want more control while sharing, try the platform sdks,if available The examples here use share dialog (share url) for simplicity Not gauranteed to work on mobile/tablet devices
import { TbBrandFacebook } from "react-icons/tb";
import { Icon, IconButton, IconContainer } from "tbh-buttons";
import { FaWhatsapp } from "react-icons/fa";
import { fbShare, sendWAMessage } from "tbh-buttons";
function App() {
return (
<>
<IconContainer className="holder block my-4 space-x-1 space-y-1">
<p className="text-xl font-thin my-4">Rounded Button Style</p>
<IconButton
type="button"
className="fb"
title="fbbtn"
onClick={() => {
fbShare("https://github.com");
}}
>
<Icon iconComponent={TbBrandFacebook} className="fbicon" style={{ fontSize: "1rem" }} />
</IconButton>
<IconButton
type="button"
title="wabtn"
onClick={() => {
sendWAMessage("Check out this link at https://w3schools.com");
}}
className="bg-green-500 hover:bg-gray-100 transition duration-300 ease-in-out focus:outline-none border-none p-1 h-12 w-12 rounded-full group"
>
<Icon
iconComponent={FaWhatsapp}
className="text-white flex justify-center items-center transition-colors duration-300 ease group-hover:text-green-500"
/>
</IconButton>
</IconContainer>
</>
);
}
Component | Description | Attributes |
---|---|---|
Container | Returns div | See example (types file as well) |
Button | Returns button | See example (types file as well) |
Icon | Returns svg | See example (types file as well) |
DLButton | download attr | See example (types file as well) |
LoadingButton | See demo | See example (types file as well) |
IndicatorButton | See demo | See example (types file as well) |
PBButton | See demo | See example (types file as well) |
Visit above links for their license,as this project uses them.
Sponsor or star this project.For issues, use discussions or open a new issue.
Contributions are always welcome!
See Contributing.md for ways to get started.
Please adhere to this project's Code Of Conduct.
This project is licensed under the MIT License
FAQs
Button components for the web
The npm package tbh-buttons receives a total of 1 weekly downloads. As such, tbh-buttons popularity was classified as not popular.
We found that tbh-buttons 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.