Skip to content
العربية
Text

Link

Text link. external opens a new tab safely and tells screen readers. Uses the router link from PercentProvider.

import { Link } from "@percentsa/ui";

Examples

Code
export function LinkExample() {
  const t = useT();
  return (
    <Text>
      {t("Read the ", "اقرأ ")}
      <Link href="#privacy">{t("privacy policy", "سياسة الخصوصية")}</Link>
      {t(" or visit ", " أو زُر ")}
      <Link href="https://percent.sa" external>
        percent.sa
      </Link>
    </Text>
  );
}