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
Read the privacy policy or visit percent.sa(opens in a new tab)
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>
);
}