
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
@commercetools-uikit/link
Advanced tools
Links are used either to link to other UI routes, or to link to external pages. This component is a very thin wrapper over either a React Router Link, or a normal HTML tag.
Links are used either to link to other UI routes, or to link to external pages. This component is a very thin wrapper over either a React Router Link, or a normal HTML <a> tag.
yarn add @commercetools-uikit/link
npm --save install @commercetools-uikit/link
Additionally install the peer dependencies (if not present)
yarn add react react-intl react-router-dom
npm --save install react react-intl react-router-dom
import Link from '@commercetools-uikit/link';
const Example = () => <Link to={'/foo/bar'}>Go to foo bar</Link>;
const ExampleWithExternal = () => (
<Link isExternal={true} to={'https://kanyetothe.com'}>
Go to external link
</Link>
);
export default Example;
Props | Type | Required | Default | Description |
---|---|---|---|---|
children | ReactNode | Value of the link.
Required if intlMessage is not provided. | ||
intlMessage | MessageDescriptor | An intl message object that will be rendered with FormattedMessage .
Required if children is not provided. | ||
isExternal | boolean | false | A flag to indicate if the Link points to an external source.
If true , a regular <a> is rendered instead of the default react-router s <Link /> | |
to | union Possible values: string , LocationDescriptor | ✅ | The URL that the Link should point to. | |
tone | union Possible values: 'primary' , 'inverted', 'secondary' | 'primary' | Color of the link | |
onClick | Function See signature. | Handler when the link is clicked. |
onClick
(
event: MouseEvent<HTMLLinkElement> | KeyboardEvent<HTMLLinkElement>
) => void
FAQs
Links are used either to link to other UI routes, or to link to external pages. This component is a very thin wrapper over either a React Router Link, or a normal HTML tag.
The npm package @commercetools-uikit/link receives a total of 4,709 weekly downloads. As such, @commercetools-uikit/link popularity was classified as popular.
We found that @commercetools-uikit/link demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.