tsimport {XDSLink} from '@xds/core/Link'
| Guidance | Practices |
|---|---|
| Do | Write descriptive, concise link text that clearly communicates the destination. |
| Do | Set `isStandalone` when the link appears outside of inline text, so it receives proper base font sizing. |
| Don't | Use Link for actions that do not navigate — use a Button instead. |
| Don't | Use generic text like "click here" or "read more" — describe the destination. |
| Don't | Use icon-only links without a visible text label. |
| Prop | Type | Description |
|---|---|---|
labelrequired | string | Accessible label |
childrenrequired | ReactNode | Link content |
as | XDSLinkComponentType | Custom component to render instead of <a> |
href | string | Link destination URL |
hasUnderline | boolean (default: false) | Always show underline |
isDisabled | boolean (default: false) | Disables the link |
isExternalLink | boolean (default: false) | Opens in new tab with external icon |
target | string | Where to open linked document |
onClick | MouseEventHandler | Click event handler |
tooltip | string | Tooltip text displayed on hover |
isStandalone | boolean (default: false) | Applies base font sizing |