All files / src/link/_example ExternalLinkExample.jsx

100% Statements 1/1
100% Branches 0/0
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19        1x                            
import React, { Fragment } from "react";
import { ExternalLink } from "@tencent/tea-component/lib/link";
 
export default function ExternalLinkExample() {
  return (
    <Fragment>
      <ExternalLink
        href="https://cloud.tencent.com"
        style={{ marginRight: 10 }}
      >
        官网
      </ExternalLink>
      <ExternalLink href="https://console.cloud.tencent.com" weak>
        控制台
      </ExternalLink>
    </Fragment>
  );
}