as | LinkComponentTypeCustom component to render instead of <a> |
|---|
label | stringAccessible label (aria-label). Only use when children are not self-descriptive (e.g. icon-only links). Omit for text links; the link text is the accessible name. |
|---|
href | stringLink destination URL. Astryx-owned links and clickable surfaces block javascript:, vbscript:, and data:text/html after control-character removal, outer-whitespace trimming, and case-insensitive scheme inspection. The same rule covers native anchors, custom routers, Markdown links, and every activation method. Relative paths, fragments, protocol-relative URLs, HTTP(S), mailto, tel, safe custom schemes, and accepted downloads keep their existing behavior. A rejected destination renders inertly without invoking a custom router. There is no bypass prop; exceptional behavior requires caller-owned custom rendering outside this guarantee. Images and other resource URLs have separate policies. |
|---|
hasUnderline | boolean · default falseAlways show underline |
|---|
isDisabled | boolean · default falseDisables the link |
|---|
isExternalLink | boolean · default falseOpens in new tab with external icon and safe rel tokens |
|---|
newTabLabel | string · default '(opens in new tab)'Screen-reader text announcing that an external link opens in a new tab. Override for localization. |
|---|
target | stringWhere to open linked document. target="_blank" automatically adds noopener noreferrer. |
|---|
rel | stringLink relationship tokens. noopener noreferrer are merged automatically for target="_blank". |
|---|
download | string | booleanCauses the browser to download the linked URL. A string specifies the suggested filename. |
|---|
referrerPolicy | HTMLAttributeReferrerPolicyReferrer policy for the link. |
|---|
onClick | MouseEventHandlerClick event handler |
|---|
tooltip | string |
|---|
isStandalone | boolean · default falseApplies base font sizing |
|---|
size | '4xs' | '3xs' | '2xs' | 'xsm' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'Explicit font size override forwarded to Text. |
|---|
weight | 'normal' | 'medium' | 'semibold' | 'bold'Font weight override forwarded to Text. |
|---|
color | 'primary' | 'secondary' | 'disabled' | 'placeholder' | 'accent' | 'inherit' · default 'accent' |
|---|
display | 'inline' | 'block' · default 'inline' |
|---|
maxLines | number · default 0Maximum lines before truncation. |
|---|
children | ReactNode · required |
|---|