Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@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 3,251 weekly downloads. As such, @commercetools-uikit/link-button popularity was classified as 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.