Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@commercetools-uikit/link-button
Advanced tools
Link buttons are similar to Flat buttons, however they are constructed as a
<Link>
and they do not have types. They also support an isExternal
prop. When passed,
the Link button is then constructed with a <a>
instead of the default <Link>
tag.
Requires
react-router
.
import LinkButton from '@commercetools-uikit/link-button';
<LinkButton
to={'/foo/bar'}
iconLeft={<AddIcon />}
label="A label text"
isDisabled={false}
/>
<LinkButton
to={'https://kanyetothe.com'}
iconLeft={<SupportIcon />}
label="A label text"
isDisabled={false}
isExternal={true}
/>
Props | Type | Required | Values | Default | Description |
---|---|---|---|---|---|
label | string | ✅ | - | - | Should describe what the button is for |
to | string or { pathname: String, search: String, query: Object } | ✅ | - | - | The URL that the Link should point to |
iconLeft | element | - | - | - | The icon of the button |
isDisabled | boolean | - | - | false | Tells when the button should present a disabled state |
isExternal | boolean | - | - | false | If true, a regular is rendered instead of the default React Router Link |
The component further forwards all remaining props to the underlying component.
Main Functions and use cases are:
FAQs
Link buttons are similar to Flat buttons but work as link elements.
The npm package @commercetools-uikit/link-button receives a total of 989 weekly downloads. As such, @commercetools-uikit/link-button popularity was classified as not popular.
We found that @commercetools-uikit/link-button demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.