aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/kitchen-sink/packages/ui/src/NewTabLink.tsx
blob: e8a00a0e5717b559786e4fe12340b3c264bd60e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import * as React from "react";
export const NewTabLink = ({
  children,
  href,
  ...other
}: {
  children: React.ReactNode;
  href: string;
}) => {
  return (
    <a target="_blank" rel="noreferrer" href={href} {...other}>
      {children}
    </a>
  );
};