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.
@devseed-ui/button
Advanced tools
import Button from '@devseed-ui/button';
<Button
theme={theme.main}
variation='base-raised-semidark'
size='medium'
className='button-class'
title='sample button'
onClick={(event) => {/* Something to handle the click event */}}
>
Click Me
</Button>
Output HTML
<button class="sc-bdVaJa rCuob button-class" title="sample button" type="button">
<span>
Click Me
</span>
</button>
Prop | Type | Description | Default |
---|---|---|---|
variant | 'default' , 'primary' , 'info' , 'danger' , 'dark' | Sets the style variant of the button. | 'default' |
size | 'xsmall' , 'small' , 'normal' , 'large' | Sets the size variant of the button. | 'normal' |
children | node | The content that will appear inside of the <Button /> component. | null |
onClick | function | The event handler function for the 'onclick' event. Receives the associated event object as the first argument. | |
className | string | Adds a className to the class attribute. | '' |
value | string | Sets the HTML value attribute. | |
disabled | boolean | Disabled the button | false |
as | HTML Tag or React Element | Determines the root element. For example, Link or a tags can be supplied to replace button from being the DOM element that wraps the component. | button |
href | string | If a href is supplied it willl change the as value, such that the component renders inside of an a tag instead of inside of a button tag. |
Any other properties will be spread on the input element.
FAQs
devseed UI Kit Button
The npm package @devseed-ui/button receives a total of 124 weekly downloads. As such, @devseed-ui/button popularity was classified as not popular.
We found that @devseed-ui/button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.